Members - Reputation: 100
Posted 24 February 2012 - 06:40 AM
I wrote some opengl code with C on windows, fully compatible with OpenGL ES. So without any changes (except a couple of context creation code) it worked on ios perfectly in terms of compilation, but has some problems with the result produced.
I can say the code has no problem because it works as it should on windows but it looks weird on ios.
It is like the polygons on the side that is close to camera are like not drawn. They appear as I rotate the object and another set vanishes. Here is a comparison image;
Members - Reputation: 1767
Posted 24 February 2012 - 10:31 AM
Only thing that makes sense might be a depth precision issue. Do you have GL_CULL_FACE on? That might not be a tranparent/undrawn face, but the back face behind the triangle that is rendering a different color. What if you glScalef(2,2,2); so that it pushes the verts further apart in depth?
Follow my RTS game ICBM