User Tools

Site Tools


This is an old revision of the document!



Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/18/d28239263/htdocs/cafu/docs/inc/parser/handler.php on line 1552

Animations

For many models, animations are the most noticeable and most important feature: Animation sequences define how a model moves, behaves or transforms over a period of time.

Animation sequences, like the model itself, are typically created by the model artist before the model is imported into the Model Editor.

The animations list

The Animations pane lists all animation sequences in the model.

For each animation sequence,

  • its name and
  • the sequence number

is shown.

A single click on an animation sequence selects it, a double click opens the Animation Inspector pane as well.

Pressing the F2 key or a single-click on an already selected animation sequence allows you to rename the sequence in place.

The “+” button imports a new animation sequence (e.g. from a .md5anim file) and adds it to the list. The “-” button deletes the currently selected animation sequences.

Context menu

An RMB click in the Animations pane opens the context menu:

  • Inspect/Edit opens the Animation Inspector pane.
  • Rename allows to rename the animation sequence.
  • Import…, like the “+” button, imports a new animation sequence (e.g. from a .md5anim file) and adds it to the list.


The animation inspector

The Animation Inspector pane shows the details of the currently selected animation sequence.

Name

Shows the name of the currently selected animation sequence. The name can be edited in order to rename the sequence.

FPS

The speed in frames-per-second with which this animation sequence is played.

Num Frames

The number of key frames that the sequence consists of. The key frames are created by the model artist and cannot be changed here.

Next sequence

This is the number of the animation sequence to play after the current sequence.

Normally, this value is -1 to indicate “no” next sequence, which is used for animations that should just stop when they've reached their last key frame. For example, a player model dropping to the ground after it was hit by a bullet typically have a next sequence value of -1, indicating that this is a “non-looping” sequence.

Setting the value to the same number as the number of this sequence means “play this sequence again when its end has been reached”. It's another way of saying that this is a looping sequence, such as walking or running.

Setting the value to a number other than -1 (“non-looping”) or the own sequence number (“looping”) can be useful to indicate logically consecutive sequences. For example, if a player model has a sequence for holstering its weapon, the “next sequence” value might be the number of an idle sequence – whatever the player does after he has the hands free.

In summary, note that the “next sequence” setting is mostly used to indicate looping vs. non-looping sequences, and that often the game script or C++ code will override whatever has been entered here: The model artists and the game programmers will have to communicate regarding the purpose of the animation sequences in order to make best use of this feature.

modeleditor/animations.1333012614.txt.gz · Last modified: 2013-01-07 12:07 (external edit)