Re: [osg-users] Rotating With Quaternions

2010-10-12 Thread J.P. Delport
Hi, On 11/10/10 18:23, Matt Caron wrote: How can I get and set a rotation about a specific axis from a qauternion? I have a quaternion rotated arbitrarily in 3D space, but I would like to inspect its rotation about the global z-axis, then after inspection I would like to be able to set that

Re: [osg-users] Rotating With Quaternions

2010-10-12 Thread Matt Caron
If I can split up a quaternion to rotations about arbitrary axes then thats fine - I just need to know how to make that split. For example if I have a quaternion with some rotation about some axis, I might need to grab the rotation around (0,0,1) from that quaternion. But I don't see how to

Re: [osg-users] Rotating With Quaternions

2010-10-12 Thread Jason Daly
Matt Caron wrote: If I can split up a quaternion to rotations about arbitrary axes then thats fine - I just need to know how to make that split. For example if I have a quaternion with some rotation about some axis, I might need to grab the rotation around (0,0,1) from that quaternion. But I

[osg-users] Rotating With Quaternions

2010-10-11 Thread Matt Caron
How can I get and set a rotation about a specific axis from a qauternion? I have a quaternion rotated arbitrarily in 3D space, but I would like to inspect its rotation about the global z-axis, then after inspection I would like to be able to set that rotation. I suppose to set it I could just