Archived

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

Daywalker313

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

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