pfQuat::squad()

New Message Reply Date view Thread view Subject view Author view

From: Bram Stolk (bram++at++sara.nl)
Date: 08/17/2000 01:16:48


Hello Performers,

Something I haven't been able to find in the Performer manuals is
the explanation of the args for pfQuat::squad(), which is the
function to do quadratic interpolation of quaternions with.

pfQuat::squad(float t, const pfQuat &q1, const pfQuat &q2,
                     const pfQuat &a, const pfQuat &b);

This function interpolates between q1 and q2, but what are 'a' and 'b'?

My first guess would be that a is the predecessor and b the successor
of the two quaternions q1 and q2 in the interpolation series.

Thus, if I've keyframed a quaternion at keyframe k1,..., kn and
let us say I would like to have a value halfway between k5 and k6,
I would call the squad func as:

result.squad(0.5, k5, k6, k4, k7);

Is this correct?

Many thanks,

    Bram Stolk

-- 
------------------------------------------------------------------------------
 Bram Stolk, VR Specialist.
 SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP  AMSTERDAM
 email: bram++at++sara.nl   Phone +31-20-5923059  Fax +31-20-6683167

"I heard if you play the NT-4.0-CD backwards, you get a satanic message." "Thats nothing, if you play it forward, it installs NT-4.0" ------------------------------------------------------------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Aug 17 2000 - 01:17:01 PDT

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