Tom Pearce wrote:
1)  Does the update traversal visitor visit "off" children of switches, so that 
the accumulated matrix would be accurate even if the object was not shown?

Yes. From UpdateVisitor.cpp:

UpdateVisitor::UpdateVisitor():NodeVisitor(UPDATE_VISITOR,TRAVERSE_ALL_CHILDREN)
{
}

2)  Is there an easy way for an update callback to find out if its node is on 
or off - similar to how a callback can use ComputeWorldToLocal, for example, to 
get the accumulated transforms.

Typecast the parent as a Switch, then ask the Switch if 'this' is on or off...?

--
  -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