Re: [osg-users] quaternion to euler

2009-07-01 Thread Cedric Pinson
Hi Rabbi, You can start from osgAnimation::UpdateTransform callback, change the euler to quaternion or ineherit to add quaternion then adjust the method needLink, link, update to use your new quaternion. Then set your new UpdateTransformQuaternion callback to your Transform The code are in

Re: [osg-users] quaternion to euler

2009-06-30 Thread Vincent Bourdier
Hi, Maybe http://jeux.developpez.com/faq/matquat/?page=transformations#Q37 can help you. Regards, Vincent. 2009/6/30 Guy Volckaert guy.volcka...@meggitt.com I think there is a constructor in osg::Ang() that takes a quaternion as well. -- Read this topic online here:

Re: [osg-users] quaternion to euler

2009-06-30 Thread Cedric Pinson
Hi Rabbi, Which animation are talking about ? do you refer to osgAnimation::UpdateTransform callback ? If you need quaternion instead of euler, it's very easy to add a new UpdateTransform that could manage quaternion. Cheers, Cedric On Mon, 2009-06-29 at 21:47 +, Rabbi Robinson wrote: Hi,

Re: [osg-users] quaternion to euler

2009-06-30 Thread Rabbi Robinson
Hi, Yes, I am using that. I will give it a try. Strangely there is euler in the animation but not more useful quaternion. Can you show me how to add it? Thank you! Cheers, Rabbi -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=14721#14721

[osg-users] quaternion to euler

2009-06-29 Thread Rabbi Robinson
Hi, The animation supports euler but not quaternion. Is there any easy way to convert quaternion to euler? Thank you! Cheers, Rabbi -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=14664#14664 ___

Re: [osg-users] quaternion to euler

2009-06-29 Thread Michael Bosse'
http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles On Mon, Jun 29, 2009 at 5:47 PM, Rabbi Robinsonlonga...@gmail.com wrote: Hi, The animation supports euler but not quaternion. Is there any easy way to convert quaternion to euler? Thank you! Cheers, Rabbi

Re: [osg-users] quaternion to euler

2009-06-29 Thread Gordon Tomlinson
29, 2009 6:17 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] quaternion to euler http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles On Mon, Jun 29, 2009 at 5:47 PM, Rabbi Robinsonlonga...@gmail.com wrote: Hi, The animation supports euler