Jump to content



Rendering problem

  • You cannot reply to this topic
1 reply to this topic

#1 yilatil   Members   -  Reputation: 100

Like
0Likes
Like

Posted 24 February 2012 - 06:40 AM

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;

Posted Image

Ad:

#2 dpadam450   Members   -  Reputation: 185

Like
0Likes
Like

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?


http://www.ultimategamedevelopment.com - My game development DVD tutorials. Learn to make complete 2D/3D games step by step.

http://www.youtube.c...ev?feature=mhee - Follow my video blog on making a 3D flight sim game.






We are working on generating results for this topic
PARTNERS