Hi,

I have seen in osgChina these lines of code ...


Code:
osg::ref_ptr<osg::Node> node = osgDB::readNodeFile("walk.bvh");
skelroot->setDefaultUpdateCallback();
skelroot->addChild(node.get());

osg::ref_ptr<osgAnimation::Animation> anim = new osgAnimation::Animation;
anim->setPlaymode(osgAnimation::Animation::PPONG);

osg::ref_ptr<osgAnimation::BasicAnimationManager> manager = new 
osgAnimation::BasicAnimationManager;
manager->registerAnimation(anim.get());
root->addChild(skelroot.get());
root->setUpdateCallback(manager.get());



I need to access the skeleto bones (to get its matrix) to link them to a shader 
to do hardware skinning ... any ideas?

Thank you!

Cheers,
Aitor

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





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

Reply via email to