Skip to content Skip to sidebar Skip to footer

Glortho Opengl Es 2.0 Variant How Fix Blank Screen?

I try to remake a OpenGL ES 2.0 example for Android http://developer.android.com/resources/tutorials/opengl/opengl-es20.html to Android NDK OpenGL ES 2.0 example. I succeded in all

Solution 1:

For one thing your triangle appears to be clipped by the near plane. Your default view is at 0,0,0 looking down the -z axis, and your triangle is on the z axis at position 0, and you have a near plane of 1.

Either move your triangle down the negative z axis (try -5 for all vertices), or move your near plane backwards (you can make it negative if you want as well, try -10 to 10).

Post a Comment for "Glortho Opengl Es 2.0 Variant How Fix Blank Screen?"