I suspect you use an 'old' version of osgAnimation, osgAnimation has been changed about that since OpenSceneGraph 2.8.3. I recommand you to update to the last version.
Cheers, Cedric On Wed, 2010-05-05 at 11:22 +0000, Aitor Ardanza wrote: > Hi, > > I'm having problems with this issue. I build the skeleton as follows: > > Code: > osg::ref_ptr<osgAnimation::Skeleton> skelroot = new osgAnimation::Skeleton; > skelroot->setDefaultUpdateCallback(); > root = new osgAnimation::Bone; > { > root->setBindMatrixInBoneSpace(osg::Matrix::identity()); > root->setBindMatrixInBoneSpace(osg::Matrix::translate(0,0,0)); > root->setName("root"); > boneMatrices[0] = root->getMatrixInBoneSpace(); > // root->setDefaultUpdateCallback(); > } > > bone0 = new osgAnimation::Bone; > bone0->setBindMatrixInBoneSpace(osg::Matrix::identity()); > bone0->setTranslation(osg::Vec3(0,3,0)); > bone0->setName("right0"); > // right0->setDefaultUpdateCallback("right0"); > boneMatrices[1] = bone0->getMatrixInBoneSpace(); > > bone1 = new osgAnimation::Bone; > bone1->setBindMatrixInBoneSpace(osg::Matrix::identity()); > bone1->setTranslation(osg::Vec3(0,3,0)); > bone1->setName("right1"); > // right1->setDefaultUpdateCallback("right1"); > boneMatrices[2] = bone1->getMatrixInBoneSpace(); > > root->addChild(bone0.get()); > bone0->addChild(bone1.get()); > skelroot->addChild(root.get()); > > > > I supposed that bon0-> getMatrixInBoneSpace () return the array without > translations, but it is not. > 1 0 0 0 > 0 1 0 3 > 0 0 1 0 > 0 0 0 1 > > What am I doing wrong? > > Thank you! > > Cheers, > Aitor > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=27563#27563 > > > > > > _______________________________________________ > 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