O'Reilly logo

Character Animation with Direct3D® by Carl Granberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Animation Callback Events

Animation callbacks are events that are synchronized with your animations. One example might be playing the sound of a footstep. Imagine that you have a walk animation like the one earlier in this chapter. Remember that you can play this animation with different speeds. If you had to connect the sound of a footstep to the animation manually, you would have to go through all kinds of worry to calculate the times where you need to play the sound. This is where animation callbacks come into the picture. You create a Callback key and add it to the animation set. Every time the animation passes this Callback key, it generates an event where the sound is played. You can also customize this event—for example, to play different ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required