Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Daywalker313

glCullFace( GL_BACK ); Does this funtion what it says?

This topic is 6365 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

I found this functions in gl.h; glCullFace( GL_BACK ); glEnable( GL_CULL_FACE ); Do these funtions really what they mean (culling backfaces)? Do they speed up displaying TRIANGLE STRIPS etc.?

Share this post


Link to post
Share on other sites
Advertisement
Quote from the MSDN :

"
The glCullFace function specifies whether front- or back-facing facets are culled (as specified by mode) when facet culling is enabled. You enable and disable facet culling using glEnable and glDisable with the argument GL_CULL_FACE. Facets include triangles, quadrilaterals, polygons, and rectangles.
"

Share this post


Link to post
Share on other sites
I''m not an OpenGL expert but I don''t think these functions involve any speed increase. It''s just a way to call OpenGL what order you use when you give it vertices.

Share this post


Link to post
Share on other sites
With back faces culling enabled, only one half (on average) of the faces of a standard scene will be displayed, so if your application is limited by the fill rate of your 3D card you should get a noticeable fps increase.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
YES it speeds things up!!!!! Especially when your showing high polycount scene.

Share this post


Link to post
Share on other sites

  • 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!