On 12/14/2010 9:03 AM, Frank Sullivan wrote:
Hello,

I can tell that my OSG-based app is doing some sort of frustum culling, because 
if I take the camera to the edge of the scene, and I turn it such that it isn't 
looking at anything, the frame rate jumps to 500fps. However, when I turn back 
around to look at my scene, the frame rate drops to about 60fps.

Yes, that's what a scene graph does. :-)

One thing I found interesting, though, is that this doesn't seem to work for 
the far plane. If I aim my camera towards the scene, and I pull back until the 
entire scene disappears beyond the far plane, my frame rate remains at about 
50-60fps.

Does anyone know why this is happening, and if there is a way to fix it?

First, frame rate is a lousy indication of how hard your system is working. Better would be to look at the actual cull and draw times per frame as displayed with the stats handler.

As Robert mentioned, OSG doesn't cull against the far plane by default. I imagine your scene is disappearing due to small feature culling. Small feature culling may or may not decrease your cull time, depending on distance between viewer and scene elements. But it should certainly reduce your draw time.

--
  -Paul Martz      Skew Matrix Software
                   http://www.skew-matrix.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to