Show
Ignore:
Timestamp:
11/05/08 16:45:57 (6 years ago)
Author:
cedricpinson
Message:

remove old timer
update example without initTimer
update the UpdateCallback? of AnimationManager? to use the FrameStamp?
split osganimationnode example in two piece
fix the -DOSGANIMATION_LIBRARY in the CMakeLists.txt of osgAnimation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/branches/OpenSceneGraph-osgWidget-dev/examples/osganimationsolid/osganimationsolid.cpp

    r9097 r9104  
    9999    osgAnimation::Vec3LinearChannel* channelAnimation2 = new osgAnimation::Vec3LinearChannel; 
    100100    channelAnimation2->setTargetName("AnimatedCallback"); 
    101     channelAnimation2->setName("rotation"); 
     101    channelAnimation2->setName("euler"); 
    102102    channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(0, osg::Vec3(0,0,0))); 
    103103    channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(1.5, osg::Vec3(2*osg::PI,0,0))); 
     
    111111    mng->registerAnimation(anim2); 
    112112 
    113     // let's start ! 
    114     mng->initTimer(); 
    115  
    116113    mng->playAnimation(anim1); 
    117114    mng->playAnimation(anim2);