Hi Anthony,

On Thu, Jan 21, 2010 at 9:41 AM, Anthony Face <[email protected]> wrote:
> I would like to know if there is a way to know "how many vertex are show on 
> the screen" does someone know how to do simply.?

The osg::Stats support allows you to get various stats from the scene
graph traversals.  The stats handler in src/osgViewer/StatsHander.cpp
is a good tool to use if you want an onscreen report - just press 's'
a couple of times in osgviewer to see them.  You can also use this
code as a guide of how to enable stats collection in your own app
without the stats handler being used.

I must add that the number of vertices shown by the stats handler is
the total number of vertices in the geometeries that are sent to
OpenGL, it will be an upper bound on how much vertices are on screen.
It would be a perfect match to the number of vertices on screen as
geometries may be partially offscreen or occluded.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to