Figure 2.9 A 2D representation of what SLERP and LERP do. SLERP interpolates along the arc of the circle, whereas LERP interpolates along a straight line from start to finish. |
Linear interpolation is by far the easier of the two methods. Figure 2.10 shows the formula to linearly interpolate two quaternions, called q and p, using an interpolation value of t, which is between zero and one. After performing the operations, you must be sure to convert the resulting quaternion back to a unit quaternion, or the end result will not be what you expect.
Figure 2.10 The equation to linearly interpolate (LERP) between two quaternions. The path between the two quaternions will be a straight line.
Category: Focus On 3D Models