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 Sets

Animation sets are simply collections of animations, where an animation is a collection of keyframes. Now that you know the theory behind keyframe animation, it is time to turn to the practical side of things. In this section you’ll get familiar with the ID3DXKeyframedAnimationSet interface. This interface contains a lot of different functions, some of which will be used in this chapter. Others will be used later on when things like animation callbacks are covered. Check the DirectX documentation for the complete list of functions. To create an ID3DXKeyframedAnimationSet object, the following function is used:

HRESULT D3DXCreateKeyframedAnimationSet( LPCSTR pName, //Animation set name DOUBLE TicksPerSecond, //Ticks per second ...

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