From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 04/04/2002 15:29:01
On Thu, 4 Apr 2002, Kenneth Holmlund wrote:
> You probably want to do SLERP, i.e. Spherical Linear intERPolation.
> Search for slerp and animation i Google and you will find tons of
> lecture notes going through the algorithm, and probably also several
> free software packages.
> I'm not much of a Performer expert so I can't tell if native Performer
> can help you with this, but I'm sure someone else can.
> /Kenneth
>
Performer has SLERP implemented in the pfQuat class. You can use this
to interpolate between two orientations. You'll have to convert your
rotation matrixes to quaternions (there is a pfQuat constructor for this).
For interpolating the positions, look at pfVec3::combine (or pfCombineVec3).
--"J"
"I'm a castaway stranded in a desolate land,
I can see the footprints in the virtual sand."
--Neil Peart
This archive was generated by hypermail 2b29 : Thu Apr 04 2002 - 15:29:25 PST