Have you tried the "dofAnimation" option, or at least looked at the code that supports this option to see how it works?
(FYI, other OpenFlight options are documented here: http://www.openscenegraph.org/projects/osg/wiki/Support/KnowledgeBase/OpenFl ight) Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Francesco Argese Sent: Wednesday, January 14, 2009 9:53 AM To: OpenSceneGraph Users Subject: [osg-users] is there an automatic method to enable dof? Hi guys, i begin thanking you: I have resolved the problem regarding the research of dof and switch nodes in my flt models: now I have a vector containing all the pointers to switches and dof and i need to activate them. Following the OSG FAQ [1], I have found that a method to enable DOF nodes is to use method setAnimationOn( true ) on my DOFTransform. I have tried this but it give no effect to the scene. I have tried also the function animate() but it doesn't produce any result. What these two functions do? At the moment I'm enabling the dof node towards setCurrentHPR(osg::Vec3(...)) and it works well, but i like to reduce the amount of code if there is another method to do so already integrated in OpenSceneGraph. Another thing: what is the function to change osg::MultiSwitch value? Thanks in advance Francesco Argese [1]http://www.3drealtimesimulation.com/osg/osg_faq_2.htm#f73 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

