Animation baking is a technique used to convert animations from avatars, to generic animations. Currently, Luna does not support avatar animations, and so they must be baked in order to be used with the Luna Engine.
In order to bake your avatar animations, we recommend animation baker.
Animation baker is a free plugin, downloadable from the Unity asset store - use this link
To begin using this plugin to convert your Avatar-based animation into animations that are supported by Luna, there are a few steps that are required for you to take:
- Open Window > Animation baker
- Select the avatar character and click inside the baker window to add it to the character list
- Select the Animation and click in animation list inside the baker window to add it in
- Start recording animation
Open up the Animation baker window and start adding in the character and animation.
In the example below both the character and animation clips are added inside the Animation baker window from the asset folder. Once you have the characters and animations you can click
Start recording to begin the capture.
Upon completion of the recording process a new animation clip will be present inside the
AnimationBaker > UnityAnimations.
Once recording is complete you are happy with the newly created animation, you can add it to the character like a normal animation, using Animation controller and setting up the new animation which can now be used in your Luna builds.
Recording the animation with keyframes can also bloat the size of the animation, due to the number of keyframes required.
There are some things to consider in order to help reduce its size:
- In the Animation baker window,
Recording optionsyou can incrementally reduce the
Depending on how low you go it will reduce the amount of keyframes used in the animation clip. In turn this will also reduce its size.
- Options Checked for root constraints and baked options can also inflate the size of the animation clip.