Hi, I can't help more without other details, i can just tell you to check the osganimationskinning example. My First advise should be to make it work with software implementation.
I could help but i would need to have a small example i could run and debug to have a quick overview what's wong. Cheers, Cedric On Thu, 2010-05-06 at 08:04 +0000, Aitor Ardanza wrote: > Hi, > > Well, I managed to position the nodes to start, but I dont know how can I > update them, for viewing, each time step. > > > Code: > bone0 = new osgAnimation::Bone; > > bone0->setInvBindMatrixInSkeletonSpace(osg::Matrix::inverse(osg::Matrix::translate(0,0,0))); > bone0->setName("right0"); > pBone0Update = new osgAnimation::UpdateBone("right0"); > pBone0Update->getStackedTransforms().push_back(new > osgAnimation::StackedTranslateElement(osg::Vec3(0,3,0))); > bone0->setUpdateCallback(pBone0Update); > > > > at each time step: > > > Code: > bone0->setMatrix(osg::Matrix::rotate(bone0Rot)); > bone1->setMatrix(osg::Matrix::rotate(bone1Rot)); > boneMatrices[1] = bone0->getMatrixInBoneSpace(); > boneMatrices[2] = bone1->getMatrixInBoneSpace(); > > > > Now the cylinder is transformed correctly, but the nodes dont moves ... I > guess I'll have to call in some way to osgAnimation:: UpdateBone... > > [Image: http://img132.imageshack.us/img132/7231/osgskinning1.jpg ] > > Thank you! > > Cheers, > Aitor > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=27601#27601 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Provide OpenGL services around OpenSceneGraph and more +33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net http://www.plopbyte.net
signature.asc
Description: This is a digitally signed message part
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org