If you are only interested in knowing whether something is inside or outside the view volume, you could use a polytope intersector for that. But if you need to know if it's culled because of, say, small feature culling, or occlusion culling, than you'll need something more complex. I don't think CullVisitor is your answer, as it does much more than just cull. It computes LODs, sets up the render graph, etc.
   -Paul

James Buckthorpe wrote:
Hi,

I am using CullCallback to work out whether a node has been culled or not. I'd like a way of doing this without rendering the scene if possible as it is part of a calculation routine  for a visualization application.
I was hoping that passing a CullVisitor to my root node might do the trick - something like:

osgUtil::CullVisitor *cv = osgUtil::CullVisitor::create();
sceneNode->accept(*cv);

but this gives me memory errors so clearly this isn't valid.

Does anyone know the right way to go about this? I have tried looking in the example source code and on the forums but am still none the wiser.

Any suggestions welcome.

Cheers,
James

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13912#13912





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


  


--
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

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

Reply via email to