Did you remember to specify a depth buffer when you initialized?
If you are using glut, you need GLUT_DEPTH in glutInitDisplayMode()
-Blackstream
Will you, won''t you, will you, won''t you, won''t you take my virus?
-The Mad Hacker
Blackstream''s Webpage
Model space vs. world space
Call me crazy but it actually sounds to me like an incomplete model.
If the front shows through with culling disabled, and you see nothing with culling enabled then it is not a depth buffer issue. The front of the model would be completely ignored with culling enabled as far as the depth buffer is concerned.
Well. The only other thing that I can think of is maybe it is a clipping issue. How far away is your model when you view it?
It is possible that when you rotate it you are bringing the model closer than your near clipping plane and it is simply shearing off the back polygons.
Try setting your near clipping distance to 0.001 or something like that. Or try translating your model a little ways along the depth axis.
Seeya
Krippy
If the front shows through with culling disabled, and you see nothing with culling enabled then it is not a depth buffer issue. The front of the model would be completely ignored with culling enabled as far as the depth buffer is concerned.
Well. The only other thing that I can think of is maybe it is a clipping issue. How far away is your model when you view it?
It is possible that when you rotate it you are bringing the model closer than your near clipping plane and it is simply shearing off the back polygons.
Try setting your near clipping distance to 0.001 or something like that. Or try translating your model a little ways along the depth axis.
Seeya
Krippy
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement