# Animation Retargeting

Describes how retargeted animations can be used with multiple Skeletal Meshes, allowing you to share animations.

Animation Retargeting is a feature that allows animations to be reused between characters that use the same Skeleton asset but may have vastly different proportions. Through retargeting, you can prevent your animated skeletons from losing their proportions or becoming unnecessarily deformed when using animations from differently shaped characters. With Animation Retargeting it is also possible to share animations between characters that use different Skeleton assets as long as they share a similar Bone Hierarchy and use a shared asset called a Rig to pass animation data from one Skeleton to the other.

## Why Use Retargeting?

Suppose you have multiple characters that you would like to share animations between A base character, a short stocky character, and a tall skinny character.

Base Character | Short Stocky Character | Tall Skinny Character

### Results Before Retargeting

Before retargeting is applied, you can already use animations between any Skeletal Meshes that share the same Skeleton asset. However, when you have differing proportions, as shown above, you can get some unsightly results. Notice how the short character gets unnecessarily stretched and the tall character gets compacted, both so that they can fit onto the Base Character's skeletal proportions.

Base Character | Short Stocky Character | Tall Skinny Character

### Results After Retargeting

Once retargeting is applied to the characters, the differences in their proportions are taken out of the equation and the animation plays properly on each character. You can also go to Show > Non-Retargeted Animation from the Viewport options and see the difference in the original skeleton (shown in beige) and the current skeleton (white). Notice how on the Base Character, the beige non-retargeted bones perfectly match the skeleton.

Base Character | Short Stocky Character | Tall Skinny Character

## How Does Retargeting Work?

Animations are bound to a Skeleton asset. The Skeleton asset is really just a list of bone names and hierarchy data, but it also stores the initial proportions from the original Skeletal Mesh used to define the Skeleton asset. This data is stored as bone translation data. It is important to note that the retargeting system only retargets the bone's translation component. The bone's rotation always comes from the animation data.

Because the original Skeletal Mesh is used to define the proportions of the Skeleton asset, any other Skeletal Meshes using that Skeleton asset that have different proportions (such as a mesh that is much shorter than the original one) will require retargeting to work properly. Without it, the Skeletal Meshes of varied proportions would try to use the translation data of the original mesh, leading to the types of errors seen at the beginning of this document.

To solve this problem, the Skeleton Tree within the Skeleton Editor offers a few settings to change how translation retargeting between bones is handled. There are 3 different settings for Bone Translation Retargeting:

- Animation - Bone Translation comes from the animation data, unchanged.
- Skeleton - Bone Translation comes from the Target Skeleton's bind pose.
- AnimationScaled - Bone translation comes from the animation data, but is scaled by the Skeleton's proportions. This is the ratio between the bone length of the Target Skeleton (the skeleton the animation is being played on), and the Source Skeleton (the skeleton the animation was authored for).

Also with Animation Retargeting, there is no significant difference in performance between using retargeted and non-retargeted animations. The benefit of using animation retargeting is increasing the number of unique characters without having to create an entirely new set of matching animations which could seriously cut down on your animation memory budget.

### Retargeting Animations for Different Skeletons

The process in which Animation Retargeting is handled for characters that do not share the same Skeleton asset involves assigning a special asset called a Rig that processes animation data from one Skeleton to another. The Skeleton assets associated with each character communicate with the shared Rig asset to properly pass transform data from a source to its intended target.

The Rig can be assigned inside the Skeleton Editor under the Retarget Manager and the same Rig will need to be assigned to both Skeleton assets.

Please see Using Retargeted Animations for a step-by-step guide.

## How Are End Effectors Handled With Retargeting?

Do tall characters run faster, can they still hold the same props - these are questions that may arise when working with retargeting. In short, there is no automatic work happening and it is up to the user to decide what they want it to do.

One method that can be taken regarding the holding of props is to create a separate chain of bones that follow the hands in the original animation, called "Hand IK Bones". Then retarget the body and arms, but not the "Hand IK Bones", so they remain identical after retargeting. This will allow you to have characters of different proportions manipulating the same props (for example, reloading a rifle).

Having a separate chain of bones allows you to switch smoothly between FK and IK easily when you want to (for example, you would want the Hand IK ON when reloading the weapon, and OFF when reaching for a magazine in a pocket).

The system is very flexible and can be customized to fit your needs. Perhaps you only want the left hand to be IK and the right hand to use its FK position, but IK rotation. Feet are sometimes handled this way, sometimes not. When stepping on a very precise prop, you would want to turn on IK; when you are just running around, you would want to use the FK, so you do not end up with a bow-legged character (or the opposite).

## Setting Up Retargeting

As mentioned above under How Retargeting Works, the first thing you will want to do is set up the Bone Translation Retargeting mode for the Bones within the Skeleton.

Typically, you will want to use these settings for bipeds:

- Root Bone, IK Bones, weapon bones, and any kind of markers will use the Animation mode.
- The pelvis will use AnimationScaled so it sits at the right height and is still animated.
  - Any other bone you want translation to be animated and retargeted should also use AnimationScaled.
- All other bones will use Skeleton. They will use the static translation from the target skeleton.

This means that a fast workflow would be:

1. Right-click on your root bone and Recursively Set Translation Retargeting Skeleton so all bones are set to Skeleton.
2. Find the Pelvis or equivalent bone and set that to AnimationScaled.
3. Find the Root bone, any IK bones, any weapon bones, or other marker-style bones and set them to use Animation.

If you are retargeting animations for characters that share the same Skeleton asset, those animations will now be affected by animation retargeting. If you want to retarget animations for characters that do not share the same Skeleton asset, there a couple extra steps you will need to take to ensure the animations are properly retargeted. Please see Using Retargeted Animations for more information.

## Using the Retarget Manager

Another tool you can use as part of your Animation Retargeting efforts is the Retarget Manager which allows you to:

- Manage Retarget Source assets - useful for when you have different proportional meshes per skeleton, you can use this setting to indicate if a particular animation is from a different source.
- Set up Rig - which allows you to retarget animations to different skeletons that use the same rig.
- Manage Retarget Base Pose - which is used when retargeting assets to a different skeleton and allows you to alter the base pose of the target so it lines up with the source's base pose and provides a more accurate retargeted animation.

Please see the Retarget Manager page for more information.

##

- animation
- animation features
- animation retargeting

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library

On this page

- Why Use Retargeting?
- Results Before Retargeting
- Results After Retargeting
- How Does Retargeting Work?
- Retargeting Animations for Different Skeletons
- How Are End Effectors Handled With Retargeting?
- Setting Up Retargeting
- Using the Retarget Manager

## Privacy Preference Center

### Your Privacy

When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer. More information

- ### Strictly Necessary Cookies

  Always Active
  Strictly Necessary Cookies

  These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.

  Cookies Details‎

- ### Performance Cookies

  Performance Cookies

  These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.

  Cookies Details‎

- ### Functional Cookies

  Functional Cookies

  These cookies enable the website to provide enhanced functionality and personalization. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.

  Cookies Details‎

Consent Leg.Interest
Select All Vendors
Select All Vendors
Select All Hosts

Select All

- REPLACE-WITH-DYANMIC-HOST-ID

  ### 33Across

  View Third Party Cookies
  - Name
    cookie name

- REPLACE-WITH-DYANMIC-VENDOR-ID

  ### 33Across

  3 Purposes

  View Privacy Notice

  ### 33Across

  3 Purposes

  View Privacy Notice
  REPLACE-WITH-DYANMIC-VENDOR-ID

  Consent Purposes

  Location Based Ads

  Consent Allowed

  Legitimate Interest Purposes

  Personalize

  Require Opt-Out

  Special Purposes

  Location Based Ads

  Features

  Location Based Ads

  Special Features

  Location Based Ads

Clear Filters

Information storage and access

By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and personalize content.Privacy Policy