Quaternions...

New Message Reply Date view Thread view Subject view Author view

Guy (silicon-worlds++at++calva.net)
Thu, 08 Jan 1998 11:45:02 +0100


Hi,

This must be a trivial question, but here it is.

I've just decided to give a try to quaternions to interpolate between
rotations. In my tests, I've noticed that I cannot get pfQuat:slerp to
give me a correct answer... ( BTW, I'm using Performer 2.0.2 on IRIX
5.3).

When I do this:

pfQuat zero,one,result;
zero.makeRot( 10, axis0[PF_X], axis0[PF_Y], axis0[PF_Z] );
one.makeRot( 50, axis1[PF_X], axis1[PF_Y], axis1[PF_Z] );

result.slerp( 0.5, zero, one);

The pfQuat result gives me a rotation of 0.5 around axis1. pfQuat::slerp
seems to set the rotation angle and nothing else.

Is it a bug (unlikely) or is there something I don't understand
(likely)?

Thanks for the answer,

Guy Premont

-- 
===========================================
          Silicon Worlds S.A.  
12, rue de Chatillon    75014 Paris  France
       Tel: +33 (01) 53.90.11.11
       Fax: +33 (01) 53.90.11.12
===========================================
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:32 PDT

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