Steven Saunderson wrote:
----- From: Paul Melis at 2008-10-30 21:10-----
You've hit upon a phenomenon called 'gimbal lock'.
See
http://web.archive.org/web/20041029003853/http:/www.j3d.org/matrix_faq/matrfaq_latest.html#Q34
for an explanation (and possibly some different ways of controling your
camera).
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.
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."
What exactly are you trying to achieve? Where do the pitch, rol, yaw
values come from, are they user-specified?
Paul
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org