> So does this mean that current cull state is maintained in 
> the scene graph, or does isCulled() do the calculation over, 
> or is it just temporarily available in the CullVistor/Callback?
> 
> In a previous recent post I was hoping that LOD nodes 
> maintained some state (i.e. which is the currently selected 
> LOD child), but found that this potentially useful state info 
> was not maintained.  Could a cull callback on an LOD node 
> give me current selected LOD child info, or callbacks on the 
> child nodes to see which one isn't culled?

I'm not sure I understand what info you're after with those questions...
isCulled() is a method in the CullVisitor that compares your bounding box
against the view volume and returns true if any part of your bounding box is
in the view volume.

If you attach a cull callback to the LOD Node, then it's called if its
parent is in view. Your cull callback then gets to determine whether your
LOD Node is in view or not. CullVisitor::isCulled() is a utility function
that your cull callback can use for this purpose (or you can determine cull
status using some other method).

If you attach a cull callback to each of the LOD children, then the callback
is only called if the LOD is in view, and the child is active.

The LOD Node determines the active child based on distance to the eye; I
imagine this is orthogonal to culling but would need to look at the code to
know for certain how that decision is made.

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



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

Reply via email to