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 src/osgAnimation/UpdateCallback.cpp

Cheers,
Cedric

On Tue, 2009-06-30 at 20:22 +, Rabbi Robinson wrote:
> 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 mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-- 
+33 (0) 6 63 20 03 56  Cedric Pinson mailto:cedric.pin...@plopbyte.net
http://www.plopbyte.net



signature.asc
Description: This is a digitally signed message part
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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,
> 
> 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
> 
> 
> 
> 
> 
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-- 
+33 (0) 6 63 20 03 56  Cedric Pinson mailto:cedric.pin...@plopbyte.net
http://www.plopbyte.net



signature.asc
Description: This is a digitally signed message part
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] quaternion to euler

2009-06-29 Thread Vincent Bourdier
Hi,

Maybe http://jeux.developpez.com/faq/matquat/?page=transformations#Q37 can
help you.

Regards,
   Vincent.

2009/6/30 Guy Volckaert 

> I think there is a constructor in osg::Ang() that takes a quaternion as
> well.
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=14671#14671
>
>
>
>
>
> ___
> 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


Re: [osg-users] quaternion to euler

2009-06-29 Thread Guy Volckaert
I think there is a constructor in osg::Ang() that takes a quaternion as well.

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] quaternion to euler

2009-06-29 Thread Gordon Tomlinson
Also I would recommend searching the OSG mailing archives this topics has
come up many times with several different solutions being offered


__
Gordon Tomlinson 

gor...@gordontomlinson.com
IM: gordon3db...@3dscenegraph.com
www.vis-sim.com www.gordontomlinson.com 

__

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Michael
Bosse'
Sent: Monday, June 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 Robinson wrote:
> 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
>
>
>
>
>
> ___
> 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

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 Robinson wrote:
> 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
>
>
>
>
>
> ___
> 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


[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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org