A Reference on an article on Sony Ericsson Developer world. --- Question ---- Hi, i wanted to report some bugs in the implementation of some OGL extensions i've been experiencing on the Xperia X10, here they are:
Out of the two OpenGL extensions I tried including the widely used draw_texture OpenGL extension, and the framebuffer objects, both aren't using the correct screen resolution and are either scaled or cropped to fit a 800x480 screen resolution. You can easily reproduce this by trying to draw a 2D texture on screen using glDrawTexfOES() you'll see that the texture looks scaled and the coordinates are wrong because it's trying to fit a 800x480 screen but the X10 is using a 854x480 resolution... so the 54 remaining pixels are out of coordinates and the texture is scaled to fit the screen, and that sucks badly since you can't trust the reported screen resolution of 854x480 and you have to hack a path for the X10 to use 800x480 instead of the real resolution in case you want to use this extension. The same thing happens if you try to use the GL_OES_framebuffer_object extension, when you bind a buffer you'll only only get 800x480 pixels out of it... and the worse part is that it's not even scaled to fit the screen, so it actually crops the 54 remaining pixels and don't render anything there, so this one is definitely unusable since you get a big black bar on the right of your screen. So these are the issues I found when trying to write an OpenGL 3D game on the Xperia X10 (draw_texture works as expected using the Android emulator) IMHO, the first issue is critical, since a lot of games uses this extension such as Google's Replica Island, in this game you can see that there's quite a few glitches due to the incorrect coordinates, for example the character can get out of the screen if you get it to the far right of the level, and of course goes through walls. The second issue on the other hand is "less important" since this is an advanced extension, also you need to use the NDK to use it and so far i can't name a game using it. Maybe you're already aware of these issues, well as far as i'm concerned, the first issue should be fixed as soon as possible, as for the second one if not as soon as possible, it should at the very least be fixed when the Android 2.1 updates comes up (with OpenGL 2.0 stuff ?) : : ---- Answer--- This is a fault in the X10 OpenGL drivers, and it has been fixed. An update will be distrubuted to customers, hopefully within short. Best regards /Sony Ericsson Developer Support Kind regards /Johan Sony Ericsson Developer Support #SEDW -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

