-
slerp - Quaternion Interpolation
Hallo,
I'm on slerp Funktion and Quaternion Interpolation.My Problem is how I get the two Quaternions q1 and q2 from two Points p1 and p2?
What i'm looking for is the two Quaternions for the slerp Funktion?
Can anyone show my, the way for the Quaternions with my Points p1 = (1,0,0) and p2 = (0,1,0)?
Thank you!
-
Junior Member
Regular Contributor
Re: slerp - Quaternion Interpolation
Quaternions are used for rotations interpolations, so they cannot handle directly positions interpolations
http://en.wikipedia.org/wiki/Quaternion
A very simple position interpolation (cf. linear interpolation) between two 3D positions A and B is
linearinterpolation(A, B, t) = A + (B-A)*t
where 0 <= t <= 1
(this return A where t=0 and B where t=1)
Of course, more complex positions interpolations schemes can be used such as explained at http://paulbourke.net/miscellaneous/interpolation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules