Hi Gianni,
As far as I can see the euler animation is not working at all: no
rotation. The euler animation is not 'routed', so to say. There are no
'pre-defined' words or so, the words have to match for correct routing
(like the 'position').
regards
Raymond
On 7/7/2010 6:31 PM, Gianni Ambrosio wrote:
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org