Jump to content
  • Advertisement
Sign in to follow this  
suez

OpenGL face culling problem in opengl

This topic is 4821 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

if i have doing back face culling in my engine,how to tell opengl to only draw front face of the polygon

Share this post


Link to post
Share on other sites
Advertisement
i don't mean ask ogl to do the culling, i mean i've known which face of the polygon should be drawn before sending it down to the rendering pipeline, but how to tell ogl this information

Share this post


Link to post
Share on other sites
1. Unless you've got a really good reason, then let opengl do the culling for you, it'll be much faster.

2. If you know something isn't visible, don't draw it. :P

3. If you're really insistant, you could just turn off culling and opengl will draw everything you pass it.

Share this post


Link to post
Share on other sites
Oh.

Well then simply don’t send the culled faces to OpenGL. It can't draw them if you don't send them.



How are you rendering? Immediate mode, Vertex arrays, VBO's ?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!