Arma 3 Scripting

Arma 3: Key Frame Animation

  • Also known as Arma 3 Key Frame Animation, Arma 3 Key Frame Animation: Tutorial - 3DEN, Arma 3: Key Frame Animation: Tutorial - 3DEN

Topic · Markdown · JSON · original wiki page

Arma 3 v1.78

Key Frame Animation is an animation system introduced in Arma 3 v1.78 with real time preview with 3DEN integration. A Key Frame is a location on a timeline which marks the beginning or end of a transition. It holds special information that defines where a transition should start or stop. The intermediate frames are interpolated over time between those definitions to create the illusion of motion. This interpolation is performed mathematically by the CPU.

Keyframing is the simplest form of animating an object (be it 2D or 3D). Based on the notion that an object has a beginning state or condition and will be changing over time, in position, form, color, luminosity, or any other property, to some different final form. Keyframing takes the stance that we only need to show the "key" frames, or conditions, that describe the transformation of this object, and that all other intermediate positions can be figured out from these.

This system is all about interpolation and can be used for the following:

Note

The low level system also includes a library of Non-Linear Interpolation methods that can be used independently from the rest.

Interpolation Algorithm

Note

Both Float and Vector versions of above methods exist.

Math

Eden Editor Tutorial

For the 3DEN Keyframe Animation tutorial we will animate a UAV on a spline.

3DEN Object Setup

Placing the Timeline

Placing the Curve

Placing the start and end keys

First Key Setup

Last Key Setup

First Animation

Note

In order for things to be drawn, at least one object part of the animation needs to be selected in 3DEN.

Adding an Animated Object

Turning the animation into a spline (Bezier Cubic)

Adding Control Points to manipulate Tangents

Understanding 3DEN controls

When working on an Animation in 3DEN there are a few specific controls:

Note

For Keyframe Animation controls to work, one or more animation must be highlighted in 3DEN; selecting an object that is part of the animation (Timeline, Curve, Key or Control Point) does that.

Adding a Key onto the Animation

Keys can be directly placed onto the animation by using the keyboard combination Left Shift (Highlight) + Space (Spawn Key). This is a fast and straightforward way to add keys to an animation, since even properties like Time will automatically be computed, same with the registration done with the Curve. The created Keys using this method are set to Cubic and Control Points are created with them and registered. In future this could be a 3DEN setting.

Note

For Keyframe Animation controls to work, one or more animation must be highlighted in 3DEN; selecting an object that is part of the animation (Timeline, Curve, Key or Control Point) does that.

Lockable Control Points (Bezier Cubic)

When control points are locked it is possible to have mathematically accurate and smooth transition between key frames. The lock mode can be set in each key.

Note

Always make sure Control Points are configured correctly: a key can have only one Arrive and one Leave control point.

Play

Now that everything is ready, preview the mission and observe the UAV moving.

Tutorial Videos

<youtube height="169" width="300"> hoL_pc7309c </youtube>

German tutorial