Hi,

Maybe you can have a look on osg sources, on osgViewer and statistics...
If you make a new viewer, press 's' and see the statistics... it can gives
you an idea of what you can obtain.

An other way can be to do it manually : with a nodecallback or a
cullcallback, you can check if a node is in the frutum or not. After that,
just count the visible node polygons...

Vincent.

2008/12/3 oren david <[EMAIL PROTECTED]>

> Hello all,I'm a new around here. So far I've managed to get around but I'm
> stuck on a simple task. How many polygon do I have on screen right now.
> I saw the post
> http://groups.google.com/group/osg-users/browse_thread/thread/6e2894a28daa2f68/435314f8a1ffafc3?hl=en&lnk=gst&q=number+polygon#435314f8a1ffafc3
> But I just can't make it work.
> I did some thing like that:
>
> osg::viewer viewer;
> .
> .
> .
> .
> .
> RenderStage *rs = new RenderStage;
> rs->setCamera(viewer.getCamera());
>
> but nothing updates
> any 1???
> thank YoU.
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to