Hi Felipe. On Wed, Oct 28, 2009 at 9:39 AM, Felipe Lemus <[email protected]> wrote: > first of all, thank you very much for your answer. But there is something > that I do not understand, for example if I load a .3DS model in a osg Node, > how I can transform it to a DOF Node to translate or rotate in real time? I > thought that with a dynamic cast I could get it.
The osgSim::DOFTransform node is a specialist node used to support OpenFlight databases, it's not used by any other loaders, so a .3ds model won't have any DOFTransform nodes in them, so you certainly won't be able to use dyanmic_cast<> to magically transform nodes loaded from anything other than an OpenFlight database, even then you'll need to go a search the loaded scene graph, using a custom NodeVisitor, for the DOFTransform nodes. What you most likely require is to simply decorate your loaded scene graph with a osg::MatrixTransform or osg::PositionAttitudeTransform node to place it where you want. See the osganimation example for an illustrtation of this. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

