Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: slerp - Quaternion Interpolation

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2011
    Posts
    2

    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!

  2. #2
    Junior Member Regular Contributor
    Join Date
    Jan 2011
    Location
    Paris, France
    Posts
    233

    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
    @+
    Yannoo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •