Hi All,
I tried to look at the osganimationsolid example but I'm not sure to understand 
it correctly. Is seems to me that the way a channel is conected to an animation 
is string diven.

Example (from osganimationsolid):

    osgAnimation::Vec3LinearChannel* channelAnimation2 = new 
osgAnimation::Vec3LinearChannel;
    channelAnimation2->setTargetName("AnimatedCallback");
    channelAnimation2->setName("euler");
    
channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(0,
 osg::Vec3(0,0,0)));
    
channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(1.5,
 osg::Vec3(2*osg::PI,0,0)));
    osgAnimation::Animation* anim2 = new osgAnimation::Animation;
    anim2->addChannel(channelAnimation2);
    anim2->setPlaymode(osgAnimation::Animation::LOOP); 

So the name "euler" is the only way I see that states the channel values are 
related to a rotation. Is it correct? If so, where can I find the list of all 
strings available?

Regards
Gianni

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





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

Reply via email to