Animation data
The following sections describe how animation data is represented in Simplygon. Animation data can be used in bone setting to bake a pose from an animation sequence using the first frame of the animation.
AnimationTable
The AnimationTable is a collection of animations. Each animation is identified by its name or index. The AnimationTable can be used to find an animation by its name or index
Animation
Animations are created using the Simplygon API. These are fully baked animations. They are identified by their name or index and the names are set with SetName. They have a frame rate and a number of frames. Frame rate is mainly for future use. The animation contains a number of tracks, each track is associated with a node in the scene. Each track contains a number of keyframes. Each keyframe contains a frame number and a transformation matrix.
- CreateTrackForNode
Creates a track for a specific node in the scene. - FindFrameForNode
Finds the keyframe for a specific node in the scene given a frame number.
AnimationTrack
An animation track is associated with a specific node in the scene. The track contains a number of keyframes. Each keyframe contains a frame number and a transformation matrix.
- CreateTransformKeyFrame
Creates a keyframe for a specific track in the animation.
AnimationTrackKeyFrame
The base class for keyframes. Contains a frame number.
AnimationTrackTransformKeyFrame
A specialized keyframe that contains a frame number and a transformation matrix. This is a non-interpolated keyframe and meant to store absolute transformations for a node at a specific frame in the animation.
