IFXMotionTrack

The IFXMotionTrack interface is used to access animation data for a bones-based character animation. The animation data is stored in separate tracks, with each track corresponding to the animation of one bone.

Interface Methods

Description

InsertKeyFrames

Inserts a set of new keyframes to a track

GetKeyFrameCount

Gets the number of keyframes from a track

GetKeyFrames

Gets an array of all the keyframes in a track

GetFrame

Gets a frame from a track


IFXMotionTrack::InsertKeyFrames(U32 uKeyFrameCount, IFXKeyFrame *pKeyFrameArray)

This method inserts an array of new keyframes to a track.

Parameters:

uKeyFrameCount

The size of the array

*pKeyFrameArray

Pointer to the KeyFrame array

Return Values


IFXMotionTrack::GetKeyFrameCount(U32 *puKeyFrameCount)

Get the number of keyframes from a track.

Parameters:

*puKeyFrameCount

Pointer to the number of Keyframes

Return Values


IFXMotionTrack::GetKeyFrames(U32 uKeyFrameCount, IFXKeyFrame *pKeyFrameArray)

Get an array of all the keyframes in a track.

Parameters:

uKeyFrameCount

The size of the array

*pKeyFrameArray

A pointer to the IFXKeyFrame array

Return Values


IFXMotionTrack::GetFrame(F32 fTime, IFXKeyFrame *pKeyFrame)

Get frame from track (not necessarily a keyframe). The frame which is returned will have an interpolated rotation and displacement if there is no keyframe for the input time.

Parameters:

fTime

Amount of time the track runs

*pKeyFrame

Pointer to the IFXKeyFrame that is retrieved

Return Values

 

§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.