Animations are started in layers:
We have a total of 16 animation layers available.
Layer 0 is special as it is considered the base layer. Layer 0 supports blend spaces and motion extraction.
Animations are mixed by running them on different layers concurrently. Layers that have no animations have no effect (eg. it is possible to only have animations in layer 0 and layer 6).
The base layer will usually contain full body animation (affecting most joints and containing motion), while higher layers usually play override or additive partial body animations (affecting only a subset of joints).
Additive animations allow you to create animations that can be added as layers on top of a base animation. The additive animation is usually a partial body animation, so it can be applied to a base full-body animation without interfering with the important parts of the base animation.
To create an additive animation, you start with a typical base pose, and then animate only the parts you want to be included in the additive animation.
- 1st frame of the animation is the Base Pose
- this will be subtracted by the resource compiler upon export and not be part of the final animation
- The rest of the animation becomes the 'delta' from this base pose
- Only animate bones that need to be animated
- Bones that do not differ from the base pose (frame 0) will not be used
For users of 3ds Max, be sure to follow the Creating Additive Animations tutorial sub-page.
The Resource compiler will process the file as an additive if:
1. The animsettings of the animations .i_caf has:
<AnimationSettings> <AdditiveAnimation value="1"/> </AnimationSettings>
Additive animations preserve the underlying animation and style, which is good for adding poses and animations to the upperbody.
Testing Additives in the Character Tool
Open the Character Tool and load the sdk_player.cdf (if it does not load on default).
Check that your new animations show up on the left side of the Character Tool. If you test the additive animation, don't be scared about any deforming that you see. As it is an additive animation, you are not supposed to play it on the Primary layer.
Make sure the Layer is set to Primary, Animation Driven is on, and all the IKs are off.
Click on the relaxed_run_forward_fast animation in the Animation panel on the left.
Now, change the Layer to Secondary .1:
Click the additive animation additive_walk_forward_fast_CF_01 in the Animation panel on the left.
Notice how the additive animation is basically added on to the existing run animation. The character cowers while running.
Change the Layer now to Secondary .2 and click on the arms_coverFire_01 in the Animation panel on the left.
You can now see how you get a new cower animation by using additives and upperbody animation. And the end result is what you were previewing in Max already.
Keep a check on your mesh's deformation when creating additive animations.
You can actually adjust the weights of the Additive Animation. If you go back to Layer Secondary .1, you can see the Additive Anim Weights. 1 is the default value.