Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RtAnimAnimation Struct Reference
[RtAnim]

Collaboration diagram for RtAnimAnimation:
Collaboration graph

Data Fields

RtAnimInterpolatorInfo interpInfo
RwInt32  numFrames
RwInt32  flags
RwReal  duration
void *  pFrames
void *  customData

Detailed Description

A keyframed animation consists of an array of keyframe structures, along with some flags and a duration.

The keyframes should be presented in the order they are needed to animate forwards through time. That is, the next keyframe at some point in the sequence should correspond to the node whose previous two keyframes are next to expire as an interpolation pair.

Put another way, the correct ordering can be achieved by sorting an unordered keyframe array using the following primary and secondary sort keys:-

An example is shown in the following diagram, where each vertical bar indicates a keyframe point in time. The position of the keyframe within the animation sequence is shown by an index to the left of each bar.

                t=0                               t=duration
  node 0    kf0..|  kf3.......|  kf8....|  kf10....|
  node 1    kf1..|  kf4...|  kf6........|  kf11....|
  node 2    kf2..|  kf5.....|  kf7..|  kf9.........|

   

Each node MUST have an initial keyframe at time = 0.0, and a terminal keyframe at time = duration of the animation.

Pointers link all of the keyframes for a particular node backwards through time in a list.

See also:
RtAnimAnimationCreate

Field Documentation

void* customData
 

Pointer to custom data for this animation

RwReal duration
 

Duration of animation in seconds

RwInt32 flags
 

Specifies details about animation, relative translation modes etc.

RtAnimInterpolatorInfo* interpInfo
 

Pointer to interpolation scheme information

RwInt32 numFrames
 

Number of keyframes in the animation

void* pFrames
 

Pointer to the animation keyframes


Criterion Software © 1993-2003 Criterion Software Limited. All rights reserved. Built Tue Apr 22 12:46:08 2003. Send Feedback
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)