Wow, big response.  Thanks for all the help. I'll let you all know how it goes.
 
Thanks,
Brad
 
---
Brad Colbert
Renaissance Sciences Corporation
W: 480 290-3997
F: 425 675-8044

________________________________

From: [EMAIL PROTECTED] on behalf of Paul Speed
Sent: Wed 4/4/2007 2:25 PM
To: osg users
Subject: Re: [osg-users] How do I retrieve the Heading, Pitch, and Roll froma 
quat?



A google of "quaternion to euler" yielded this as the first link:

http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToEuler/index.htm

Looks right to me on first inspection.

I think from OSG's perspective the issue is that yaw/pitch/roll aren't
particular useful in the context of a quaternion.  They are ambiguous at
best and misleading at worst since it is very order dependent, ie: is it
yaw+pitch+roll or is it roll+pitch+yaw.

It is very useful information to display to the user but not very useful
otherwise.

-Paul

Gordon Tomlinson wrote:
> Sadly OSG for some reason does not provide this:(  thats a win for Vega
> Prime it does provide it :)
> 
> You have to extract it either from a matrix or the Quat which is not
> that straight forward to do
> 
> One trick that  helps is to make sure your Quat's and matrices are
> always created the same way
> 
> But it is doable to extract the info in a reliable method
> 
> I have a solution that works pretty well at work but unfortunately I'm
> not at liberty to distribute it publicly (sorry)
> 
> If your search the net you can find solutions that will help get you
> there with some tweaking
> 
> 
>
> /Best Regards /
>
> //
>
> /Gordon/
>
> __________________________________________________________
> /Gordon Tomlinson
> //Email / : gordon.tomlinson @ overwatch.com/
> YIM/AIM/: Gordon3dBrit
> /MSN IM /: Gordon3dBrit @ 3dSceneGraph.com
>
> __________________________________________________________
> //Telephone (Cell)//:/ (+1) 214-477-8914
> Telephone (Work)//:/ //(+1) 703-437-7651//
>
> "Self defence is not a function of learning tricks
> but is a function of how quickly and intensely one
> can arouse one's instinct for survival"
> - */Master Tambo Tetsura/*
>
>     -----Original Message-----
>     *From:* [EMAIL PROTECTED]
>     [mailto:[EMAIL PROTECTED] Behalf Of *Brad Colbert
>     *Sent:* Wednesday, April 04, 2007 5:02 PM
>     *To:* [email protected]
>     *Subject:* [osg-users] How do I retrieve the Heading, Pitch,and Roll
>     from a quat?
>
>     Hi folks,
>     
>     I polked around and couldn't find the answer for this.  How does one
>     retrieve the heading, pitch, and roll angle from a quat for display?
>     
>     Thanks,
>     Brad
>     
>     ---
>     Brad Colbert
>     Renaissance Sciences Corporation
>     W: 480 290-3997
>     F: 425 675-8044
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


<<winmail.dat>>

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to