- Timestamp:
- 12/16/08 21:29:00 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osganimationskinning/osganimationskinning.cpp
r9104 r9370 26 26 #include <osgAnimation/RigGeometry> 27 27 #include <osgAnimation/Skinning> 28 #include <osgAnimation/BasicAnimationManager> 28 29 29 30 osg::Geode* createAxis() … … 179 180 skelroot->addChild(root.get()); 180 181 181 osg::ref_ptr<osgAnimation::AnimationManager> manager = new osgAnimation::AnimationManager; 182 osg::Group* scene = new osg::Group; 183 osg::ref_ptr<osgAnimation::BasicAnimationManager> manager = new osgAnimation::BasicAnimationManager; 184 scene->setUpdateCallback(manager.get()); 182 185 183 186 osgAnimation::Animation* anim = new osgAnimation::Animation; … … 224 227 225 228 // we will use local data from the skeleton 226 osg::Group* scene = new osg::Group;227 229 osg::MatrixTransform* rootTransform = new osg::MatrixTransform; 228 230 rootTransform->setMatrix(osg::Matrix::rotate(osg::PI_2,osg::Vec3(1,0,0))); … … 235 237 trueroot->addChild(createAxis()); 236 238 trueroot->setDataVariance(osg::Object::DYNAMIC); 237 rootTransform->addChild(manager.get());239 // rootTransform->addChild(scene.get()); 238 240 scene->addChild(rootTransform); 239 manager->addChild(skelroot.get());241 // manager->addChild(skelroot.get()); 240 242 241 243 osgAnimation::RigGeometry* geom = createTesselatedBox(4, 4.0);
