Enabling OpenGL ES 2.0

1,402 views
Skip to first unread message

John Villar

unread,
Aug 25, 2011, 12:07:54 AM8/25/11
to android...@googlegroups.com
Hi all, first time in this group. I have recently bought a chinese tablet which has some pretty decent horsepower (PowerVR SGX 530, dual core CPU, 4 GB Internal memory plus 512 MB RAM, and 4-6 hours battery with game use) and it did come with Froyo. However, whenever i try to run an application that uses OpenGL ES 2 it fails telling me that my device doesn't support it.

I checked the binaries and they all are there on /system/lib and the  OGLES 1 extensions indicate the existance of some OGLES 2 characteristics (like ETC1_RGB8 compression and VBOs) but i can't seem to figure out how to enable it on the low level to make it work.

I would be very grateful if anyone can point me in the right direction to enable it system-wide.

Nice porting everyone :)

Amit Pundir

unread,
Aug 26, 2011, 2:38:03 AM8/26/11
to johnvill...@gmail.com, android...@googlegroups.com

Hi John,

PowerVR SGX 530 does support OpenGL ES-2.0

Some of the Android applications use Android APIs to query the OpenGL ES version(s) supported by the target platform. As far as I know, this information is mainly present as a system property in /system/build.prop file. If this is the case with your application then add this property "ro.opengles.version=131072" in /system/build.prop file and see if that application can detect OpenGL ES 2.0 profile.

Hope that helps. Let us know how it goes.

Regards,
Amit Pundir
http://arowboat.org


Nice porting everyone :)

--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

John Villar

unread,
Aug 26, 2011, 9:35:21 AM8/26/11
to android...@googlegroups.com, johnvill...@gmail.com
Thanks for your answer Amit, will try that tonight and will report back.

The SGX 530 does support OGL ES 2.0 (it is the GPU on the Motorola Droid/Milestone and a less powerful variation of the iPhone 3GS GPU) check these:
That's why i was surprised that my tablet didn't support it although it has the power to do so.

John Villar

unread,
Aug 26, 2011, 9:36:53 AM8/26/11
to android...@googlegroups.com, johnvill...@gmail.com
Sorry about my last post, misread Amit's comment and i tought he was saying that the SGX doesn't support OGL ES 2.0

Sorry, my bad :(

John Villar

unread,
Aug 27, 2011, 9:08:46 PM8/27/11
to android...@googlegroups.com, johnvill...@gmail.com
Worked like a charm!! Now i have my proper OGL ES 2.0 development platform :) thank you Amit.
Reply all
Reply to author
Forward
0 new messages