Skip to main content
gamedev.net
🔒 Locked

culling problem

Started by rpg_code_master 2 replies 450+ views
Original Post
rpg_code_master
rpg_code_master
Hey, I''m rendering a few random polygons like a torus. When i turn on glEnable( GL_CULL_FACE ) and glEnable( GL_CW ) the inside of the torus seems to be visable. So I though, ok, ill cull the counter clock wise triangles, ie. glEnable( GL_CCW ), but the inside of the torus is still visable but the outside isn''t. The result is the same with either CW or CCW. If i don''t cull the faces using that method, the outside of the torus if visable. I''ll post a screen shot soon.
Chupacabra
Chupacabra
And you are doing glEnable(GL_CW) before you do glEnable(GL_CULL_FACE)? I think it has to be done in that order for it to work if I remember correctly.
Chupacabra
Chupacabra
That''s right, thanks for correcting me AP.

Topic Locked

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

Sign in to reply to this topic.