• Advertisement

Archived

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

triangle count?

This topic is 5235 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 wanna make sure my octree is working, how can i obtain the number of triangles being drawn each frame?

Share this post


Link to post
Share on other sites
Advertisement
Count them. Seriously, there''s no automatic mechanism for this. You''ve just gotta keep track of it yourself. I set a static variable in my octree node class, setting it to zero when I start rendering the octree and incrememting it every time a triangle is drawn.

Share this post


Link to post
Share on other sites
does your octree class draw things? if so, do you make classes that inherit it as a parent in order to use it, like maybe for instance, your terrain class, overriding the draw function?

[edited by - fireking on October 21, 2003 9:21:52 PM]

Share this post


Link to post
Share on other sites

  • Advertisement