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

Started by
5 comments, last by Daywalker313 22 years, 12 months ago
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.?
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.
"
Yes, but do these funtions speed up displaying, can I see a difference in speed?

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.
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.
Thx for your posts .

YES it speeds things up!!!!! Especially when your showing high polycount scene.

This topic is closed to new replies.

Advertisement