Excerpt: Coordinate Interpolation in Skeletal Animation
Contents
Excerpted from: Advanced.Animation.with.DirectX
Here’s where using key frames comes in handy. Suppose you want to calculate the orientation of the bones at a specific time say, at 648 milliseconds. That time just so happens to fall between the second and third keys (148 milliseconds past the second key). Now, assume that the two transformation matrices represent the orientations of each bone in the animation.
|
|
By taking each key and interpolating the values between them, you can come up with a transformation to use at any time between the keys. In this example, at 648 milliseconds in the animation, you can interpolate the transformations as follows:
|
|