Skip to main content
gamedev.net
🔒 Locked

Rendering problem

Started by yilatil Feb 24, 2012 at 12:40 PM 0 replies 1.3k views
Original Post
yilatil
yilatil
I'm not very sure if this is the right forum or should I post it to mobile development forum but I believe it's an OpenGL based problem.

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;

mrUiE.png
dpadam450
dpadam450
[indent=1]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?
NBA2K, Madden, Maneater, Killing Floor, Sims 

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.