G1 OpenGL ES Texture problem - Please Help - G1 Android Development

Hi,
I'm trying to make a game using OpenGL ES, but came across a problem.
When using textures on my 3d shapes in the emulator everything works fine. The scene displays the way it is suppose to display.
But when I run it using my G1 phone I get blank shapes without any texture. This also happens to all the official and professional example textured Cube Demos and stuff.
http://www.pragprog.com/titles/eband/source_code
When I downloaded that app in the zip from above I saw a 2d textured cube on the Android Emulator, but when I used my phone to test the app all I saw was a 3d spinning white cube without any texture.
If anyone can check their G1 phone to see if this is also happening to them it'd be great.
Does anyone else have this happen to them? I searched for hours but cannot find 1 question regarding this issue. I don't know if it's just my phone, a glitch or perhaps the phone can't handle texture mapping or something.
I really am confused here and any help would be appreciated.
Thanks,
TariqM

Confirmed
TariqM,
I just experienced the same thing on my phone. Textures may be something that the G-1 doesn't support, but this is just my initial hunch.

I can't quite remember the exact solution, but I found out that my textures were not size correctly.
Read the OpenGL ES specification at:
http://www.khronos.org/registry/gles/specs/1.1/es_full_spec.1.1.12.pdf
page 74
It has to be of a 2^n value for width and 2^m for height.
For example 64 by 64.
There might also be a minimum and maximum value that the width and height can be. Don't quite remember.
I changed my image and it worked .
This was a while ago for me, so I hope this was the solution.
-TariqM

Related

Can you make claunch run in high res?

It pixel doubles on my Universl. I know I could use ilaunch or pocketplus, but claunch works well, and has quite a low overhead compared to these, but I hate the pixelated icons on a VGA display
Can't find anything on doing this after hunting around a bit, but I assume this was covered with either a yes or no quite a while back considering the age of the app and how long VGA displays have been out.
Ah, I found this http://park6.wakwak.com/cgi-bin/sbo...B3%AB%A5%A2%A5%D7%A5%EA%2FcLaunch%B2%FE%C2%A4
Can't read a damn thing on there, but I did guess at copying the dll file into the Windows folder.
Works in high res now, but still doesn't render the icons very nicely.
32 pixels are about the normal size compared to PocketPlus icons, but doubling to 64 only increases the box size, not the icon size. Trying anything other than multiples gives you the horrible pixelated icons again.
Getting there though....
Try this:
Get resource hacker and add a resource to the DLL.
Resource type should be "CEUX".
Resource name "HI_RES_AWARE"
and content 01 00 (hex, not that it matters)
This will turn off pixel doubling for the app. Whether this will help or make things worth (display everything 1/4 size) I don't know.
Worth a shot, just make sure to keep a copy of the original file, just in case.
I'll give that a go tonight thanks
For now I am experimenting with Device State to display my memory, and battery, and using it's own task manager, but claunch with small icons under that for the launcher with some tabs.
I could probably get away with using it for a launcher AND task manager since there's only really 5 or 6 apps I would use a lot, the rest could live on the start menu, and then I could free up some more resources.
I think I need to sit down and play with a few things out there, because having used PocketPlus for a very long time now, I am bored with the interface, and new devices don't feel new, because I end up using the same old apps every time.
OK after 4 hard resets, I think it's safe to say Device Status stops my system soft reseting, and it just hangs on the splash screen.
I hard reset, and installed claunch and the vga patch, worked, installed Device Status, and it hung. Hard reset and just installed Device Status, and it's hung again.
Need something else nice to display my memory, battery, and a task manager.
I don't want to use vbar or magic button. I like HTC X button, but that doesn't display running apps.
The close button on PocketPlus is the one I like best, or something like Wisbar Advanced or Magic button that display icons on the start bar.

Morphgear DPad with Visible Buttons in Landscape!!! (For HD2)

Ok so I posted some bit's of this already but I have refined the original "Proof of concept" design to something a bit more useable.
It annoyed me that I could not see the buttons in Landscape mode but I could see the sides of the screen when it is set to Autoscale. This set me to try and make a pad that would fit into the tiny slivers of screen left in landscape mode with "Autoscale" set.
This pad needs to be used in "AutoScale" mode on a WVGA screen such as an HD or HD2 This setting leaves a slither of screen each side of the screen that I have used to show the button placement. Don't get me wrong, you can't fit a Dpad in that area BUT you can easily mark top and bottom left of it and that's a start.
I find that my thumb is a bit lazy and I struggle a bit to use a square DPad, because of this I have squished it a bit to a more suitable rectangular shape, have a go and tell me if it's no good - If you imagine that the visible "strip" at the side is 1/4 of the DPads width then you should get it pretty easily. Please take a look at the attached picture though, I have made this pad a slightly odd shape because I find that I use left and right a cack load more than I use up and down. It may not be great for all games but I have found that it suits my thumb better than a standard equal layout. If you hate it then try using my original pad found here: http://forum.xda-developers.com/showthread.php?p=6339454#post6339454
Other than this the Start (ST) Select (SE), A, B, R1 and R2 buttons are all visible at the edge of the screen!
Currently the GBA pad is the only one I have done but I could easily modify this concept to cover all of the different systems - The only reason I haven't is that I only really play GBA games on my phone.
There is a readme included but I'd like some feedback so please bring it on!
Hey man, good job. I like the v1 rather than this, i find it harder to hit the up arrow with the new one, but it's not the reason why i'm wiriting this.
Both your pads makes the game laggy when i tap the white (unassigned) space. Other pads I've tried never did that. Any idea how to selve this? Or am i the only one experiencing this lag?
is multitouch available for morphgear?
Phenomenon said:
is multitouch available for morphgear?
Click to expand...
Click to collapse
It sure is you just need to download the tweaked version by blutz
xZdenis said:
Hey man, good job. I like the v1 rather than this, i find it harder to hit the up arrow with the new one, but it's not the reason why i'm wiriting this.
Both your pads makes the game laggy when i tap the white (unassigned) space. Other pads I've tried never did that. Any idea how to selve this? Or am i the only one experiencing this lag?
Click to expand...
Click to collapse
Hi I find that they all lag a bit, it seems to be the way that the Multitouch is implemented (I don't think it's Blutz, rather the original Morphgear crew), I find that when I have 2 buttons pressed all is fine but if I press NE and A (so 3 buttons reported to Morphgear) it lags until I release all buttons. This is just my laymans observation.
I could try producing an ultra light version to see if that helps... I think my skin is >2mb
Could you give me some examples of ones that don't cause it and I'll have a look, I wouldn't be overly surprised to find it was something I had done wrong. What we really need is the capacity to set white = NULL!

[Q] Issues with running wargus on non-standard resolution

Well, I've got a LG GM750 (Layla) that happens to have a screen size close to the standard QVGA.
Sadly, 400x240 (landscape) doesn't seem to be a resolution that n0p's QVGA port of wargus likes.
The lower end of the screen appears on top and the rightmost part of the screen is blank.
Now this wouldn't be a big issue if not for the fact that "what you touch is not what you select".
I don't expect a working port, or that a fix exists somewhere, but if someone could tell me how to change the program's resolution to a custom one (as in my phone's resolution), that would be great.
I've got some knowledge of C++ and have taken a glance at SDL, so if I'll have to recompile the whole damn thing, no problem.
I just wouldn't like to be left in the dark.
Thanks in advance !

Backlight / brightness app control

Hi guys,
Sense UI won't let me add a brightness control to the main screen. Can anyone suggest a decent and simple app to manually control screen brightness please?
I would have loved to have used the LUMOS auto back light app but that needs HTC drivers I believe :-( D'oh.
Try MVBklight 1.4.3
It's quite old but I've never found something better. I just use it also on my HD2 when I want to override the sensor. For the TG01 I think it's perfect.
I'll check it out. Thanks for that EDIT: Could only find 1.4.2 on XDA.. so googled it and got 1.4.3.
UPDATE: Can't get it to work. Maybe I need to edit the english config file to add in the TG01 or something?
ok, I'll give you all settings for TG01. But please hold on. I got to retrieve from my archive. My TG01 is under repair and I don't have settings close at hand. Please come back later.
Fab, really appreciate that
Here you are.
Attached you find screenshots of configuration for TG01.
As you can see minimum brightness value is 57, maximum is 255. You got to take it in account if you want also to use links to control brightness via command parameters.
I remember I had problem with links (I dont remember exactly what). So I also attached (syntactically) corrected links. But you have to localize the name of your program folder inside them.
MVBklight provides even a today plug-in. I am afraid it doesn't work. But I think it would not be so usefull, especially if you use Sense.
In the configuration you can see the use of a vga skin. Be sure to provide it (one is included in the package you downloaded). I tried to custominze the skin with other images but I didn't success, probably due to a wrong image format. I accualty spent few minutes on this, so if you get it right and achieve a nicer skin, let me know!
So, add a link to Popup.exe in your Sense UI and enjoy your brightness slider.
Please, ask if you need more.
P.S.
Ehi, remember that with MVBklight you get a torch too.
Thanks for that I'll download and try these tomorrow Odd that minimum is 57! (or is that the minimum YOU want it to ever be?)
It's not me.
On TG01 values below 57 have no effect. As for values over 255. It depends on device.
On HD2 minimum is 1 and maximum is 10. So on HD2 you can just change brightness by steps of 10% while on TG01 variation is much more smooth.
Again, it depends on hardware of device.
Fantastic. Finally got it working with those settings I will have a go at some other skins perhaps Now have brightness control on the screen.
The big mistake was me not swapping to 'manual', so it never saved my changes.
UPDATE: just playing around with the icon/images for better one's. Strangely, not every icon seems to work even if it's in the same size and format, it's really odd. Trying to change the bar's.. let's see what happens.
UPDATE2: Really struggling with these images. Even if I only edit them and save as the original type.. they won't show up. Bizarre. It's a little bit annoying actually. I'll have to keep trying as I want it to fit more into the them of black/white Sense UI.
I played right now with Resco Photo Manager.
Just doodled on left.bmp and saved.
It works.
Can't do more tests. I am at work...
Let's keep on trying. It's a long time I'd like to change the skin!
Lyrus said:
I played right now with Resco Photo Manager.
Just doodled on left.bmp and saved.
It works.
Can't do more tests. I am at work...
Let's keep on trying. It's a long time I'd like to change the skin!
Click to expand...
Click to collapse
Could you share some pictures or a video? It sounds interesting! I'm using an free program called Metrix from http://www.apoxsoft.com/products/metrix/ and it works perfectly. But it's a Today plug-in, so it doesn't work on Sense.
Although it seems a little dated, it can be fully configurated. If any interested I can give you the TG01 parameters for brightness control
Best Regards
I am trying the following files. (THe 'RIGHTOLD.BMP' should be right.bmp btw) The only one that actually displays is the SLDR one :-( Annoying.
Trying to mess with them some more to see if I can make them work.
@Pere
Here you are a screenshot.
It's the easiest way to control brightness. I have the link in the bulb on the left of the screen but on TG01 also double tapping the zoom bar so the slider will pop up on whatever application is running in that moment.
Metrix is nice. But it's only a plugin for the today. I really need a popup instead.
@Scougar
Yes, your sldr.bmp works. Not the others. I tried to resave them from Resco Photo Manager but with no success.
The strange thing is that the left.bmp attached is the original with some doodling and saved from RPM. It works but the doodling results in a trasparency as you can see in attached screenshot where I changed the color of the background to make it clear.
I think that there is something to understand regarding how trasparency is handled. Could be that our images are treated for some reason as totally trasparent?

[Touchpad] SNES Emulator - Need more skins

So the SNES emulator in the marketplace is fantastic. It runs super smooth, and will register more than one button press at a time!
But all the button skins are landscape, which makes them way spread out across your Touchpad. The odd thing is that there are options for portrait mode, but none of the skins work in portrait mode.
I was wondering if someone knows how we can get more skins added to this, or suitable alternatives. I can create a png overlay, but I'm sure there is a little more involved in this.
smooth?
not really
Don't know what you're running but mine is running without any frame-dip issues. Buttery smooth. Maybe that is because you haven't done all the patches/hacks?
tiny17 said:
So the SNES emulator in the marketplace is fantastic. It runs super smooth, and will register more than one button press at a time!
But all the button skins are landscape, which makes them way spread out across your Touchpad. The odd thing is that there are options for portrait mode, but none of the skins work in portrait mode.
I was wondering if someone knows how we can get more skins added to this, or suitable alternatives. I can create a png overlay, but I'm sure there is a little more involved in this.
Click to expand...
Click to collapse
agreed, preferably a skin with smaller buttons. it feels like the aspect ratio of the skins are ideal for a phone (when shrunk down) but on a tablet it is WAY too big (try doing a running jump in mario, ridiculously hard)
Mine runs just fine without hacks except those damn skins! I can't wait until they port android to this thing.
Agree with the comment that the buttons are sized/spaced for a phone. On the touchpad, they are way too far apart.
Anyone come up with a good touchpad skin yet?
Oh, and mine is buttery smooth as well. No hacks... just installed right from the catalog.

Categories

Resources