----- From: Paul Melis at 2008-10-30 23:45-----
Steven Saunderson wrote:
> Hi Paul,
>
> Thanks for you quick answer.  I've tried loading the matrix manually
> but I still get stuck when both x-axis and y-axis are PI/2.
I'm not sure what you mean here. It sounds like you're building your
matrix from Euler angles manually, but this will still not solve your
gimbal lock problem.

You're quite right here. I'm now reading the entire FAQ especially about quaternions.

To quote Q39 in the link above: "Don't let the spectre of Gimbal Lock
fool you: Euler angles are still a complete representation of any
rotation in 3D space; it's just that the actual Euler angles needed to
achieve some particular desired rotation may be rather unintuitive."

Does this mean that instead of rotating both x and y 90 degrees I should find another axis and rotate around this ?

What exactly are you trying to achieve? Where do the pitch, rol, yaw
values come from, are they user-specified?

It is a flight simulator. The pitch, roll, and yaw values come from an external source so any combination is possible.

Thanks for the FAQ link; it is a great resource.

-- Steven

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

Reply via email to