GOOC - Game Oriented Object C

GOOC - Game Oriented Object C

Next: Sprite Animations, Up: Animations
[Contents]

12.1. Vertex (3D) Animations

12.1. Vertex (3D) Animations

Vertex animations are animations that use a 3D model, made up polygons connected by vertices, with the vertices being stored in animation entries. These are type 1 animations, and also the simplest to define, although their format is different in each game.

Crash 1

Crash 1

The format for a vertex animation is as follows: #anim anim-name anim-eid frame-count anim-name is an identifier for the animation's name. anim-eid is the EID for the animation entry that contains the vertex animation, this can be either a shaded vertex animation (SVTX) or colored vertex animation (CVTX). frame-count is the amount of frames of animation present in that entry.

Crash 2

Crash 2

The format for a vertex animation is as follows: #anim anim-name anim-eid frame-count interpolate anim-name is an identifier for the animation's name. anim-eid is the EID for the animation entry that contains the vertex animation. frame-count is the amount of frames in total in the animation. interpolate determines whether the animation uses interpolation or not. If enabled, the game can generate an extra frame of animation that is averaged from two stored frames, turning an animation that only has 5 frames stored in it, for example, to have 9 unique frames. In this case, frame-count must also include these interpolated frames.