Thank you very much PP!
I have already made ​​it work.I did not need to do all you said... I just 
needed to connect the new geometry to modify, with the rigid geometry:

Code:

OSGRigGeometryFinder rigGeometryFinder ;
                        morphNode->accept( rigGeometryFinder ) ;
                        osg::ref_ptr<osgAnimation::RigGeometry> morphGeom = 
rigGeometryFinder.getRigGeometry();
                        osg::ref_ptr<osg::Geometry> geometry;
                        if(morphGeom.valid())
                                geometry = new 
osg::Geometry(*morphGeom->getSourceGeometry());
                        else
                                geometry = new 
osg::Geometry(*morphNode->asGeode()->getDrawable(0)->asGeometry());
                        
                        morphGeom->setSourceGeometry(geometry);



Now modifying "geometry" I can see the morphs together with bones animations!

Thank you!

Cheers,
Aitor

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43592#43592





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

Reply via email to