Robert Osfield wrote:
Hi Francesco,

You just need to write a NodeVisitor that traverses through the scene
and detects the osg::Switch and osgSim::DOFTransform.  The NodeVisitor
has an apply(osg::Switch&) method, but not a DOFTransform one so
you'll need to implement and apply(osg::Transform&) and then
dynamic_cast this to a DOFTransform to find out whether the transform
is a DOFTransform.

Just a heads-up...

The flt loader uses osgSim::MultiSwitch (instead of osg::Switch) for its switch nodes, so you'll need to write the apply() for that as well. I checked to be sure, and this was the case even in version 1.2.

--"J"

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to