Reputation: 11
I'm making some small Android app using augmented reality. I'm trying to display graphic by using OpenGL ES 2.0. The scene I'm tying to display is very simple, there !no! textures only a few triangles. On the emulators it's workong fine and also on my tablet 10.1' with Android 4.0.4 it is working good. But on the mobile phones graphic is didn't display at all... I have tried Galaxy S3 with Android 4.1.2 and Xperia Sola with 4.0.4. I have read about some problems with using textures on real devices but not with really sipmle scenes. I am really confused. My question is: are there differences using OpenGL ES 2.0 between tablets and smartphones? Maybe it's because of the default screen orientation but I don't know to figure it out...
Thank you for your answers!
Upvotes: 0
Views: 1217
Reputation: 178
I once had a similar issue:
On the Emulator (not the SDK Emulator) everything worked fine, but on a "Note 2" and the SDK-Emulator nothing was displayed. In my case I just had to call super.setEGLConfigChooser(8,8,8,8,16,0);
before setRenderer( ),
within the GLSurfaceView. Then everything worked fine on the "Note 2" as well. I hope it'll be useful for you too.
Upvotes: 2