Re: [info-performer] removing roll from camera without resorting to the use of euler angles

New Message Reply Date view Thread view Subject view Author view

From: Serge Kourdakov (serge++at++sat-sim.org)
Date: 09/24/2002 10:32:54


Hi Bram

>Note: I try to avoid the obvious approach of >using Euler angles,
>as Euler angles are evil, as pointed out by >Steven Baker (and quite
>rightly so):
>http://www.sjbaker.org/steve/omniv/eulers_are_evil.html

so use quaternions if you'd prefer them ;-).

get a quaternion from desired rotation (for ex a rotation from one vector
to another ).

then get a rotational matrix.

See man pfQuat.

If you would like to find quaternion implementaion I would suggest

to take a look at

http://plib.sourceforge.net/download.html

see sg.h sg.cxx

and http://math3d.sourceforge.net

Serge
http://www.vrtainment.de


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Sep 24 2002 - 10:27:35 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.