PDA

View Full Version : Number of Polygons...?



golbenge
04-03-2001, 01:06 AM
Can I know the number of polygons that are actually rendered by OpenGL?

For example, If I try to render 100 polygons and 10 polygons of them are clipped by view frustrum culling, then the number of polygons that are actually rendered by OpenGL is 90. Is this right? Then How can I know the number of actually rendered polygons?

Bob
04-03-2001, 03:16 AM
There's no way to get this number from OpenGL.

Relic
04-03-2001, 04:52 AM
I disagree. This is what the selection buffer can deliver along with other informations. Look up examples on glSelectBuffer() and glRenderMode().
If you ask this with performance enhancements in mind, than better don't use selection.

Bob
04-03-2001, 05:12 AM
Oops, forgot about them, but as you say, you better not use them if you care about performance http://www.opengl.org/discussion_boards/ubb/smile.gif