Original Post
This is from DirectX Help:
Quote:I worked a lot with matrix compositions, but what is that interpolation stuff? (I'm no ace in math...) How exactly can I achieve that smooth transition (e.g. very useful in moving a ship). Can somebody give me an example? Please don't send me to read some math book :)
Using quaternion interpolation, an application can calculate a smooth and reasonable path from one axis and orientation to another. Therefore, interpolation between q1 and q2 provides a simple way to animate from one orientation to another. When you use composition and interpolation together, they provide you with a simple way to manipulate a geometry in a manner that appears complex. For example, imagine that you have a geometry that you want to rotate to a given orientation. You know that you want to rotate it r2 degrees around axis2, then rotate it r1 degrees around axis1, but you don't know the final quaternion. By using composition, you could combine the two rotations on the geometry to get a single quaternion that is the result. Then, you could interpolate from the original to the composed quaternion to achieve a smooth transition from one to the other.