Marrow Open Marrow

Blog

Animation retargeting explained: one animation, many characters

By bxzex · · Updated

Retargeting means playing an animation made for one skeleton on a different one. It is how a single walk works on a tall knight, a short goblin and your own uploaded character.

Animation retargeting explained: one animation, many characters: a character rigged and animated in Marrow

Why you cannot just copy an animation across

An animation is a list of bone rotations over time, sometimes with positions too. Copy it to another skeleton and three things go wrong:

How retargeting fixes it

  1. Map the bones of both skeletons to a shared set: hips, spine, chest, neck, head, shoulders, upper arms, forearms, hands, thighs, shins, feet.
  2. Measure rotations from each rest pose, not as raw numbers. "Raise the arm 60 degrees from rest" works on any rest pose.
  3. Scale the travel by the ratio of hip heights, so strides fit the legs.
  4. Fix the contacts: put the feet back on the ground, and keep hands where they need to be.

How Marrow does it

Every character in Marrow, uploaded or ready-made, is mapped to one humanoid skeleton. Models that come with their own skeleton keep it: common naming styles are recognised and the rest is worked out from the shape of the skeleton. Animations are played as rotations from each character's own rest pose, travel is scaled to its leg length and the feet are grounded per character. That is why any of the 1,249 animations plays on any of the 41 ready-made characters or on your upload.

Retargeting in engines

Unity does it with the Humanoid rig type. Unreal Engine 5 does it with IK Retargeters, and can build one for you. In Blender you can use a constraint setup or an add-on. If you only need the animations on one character, retargeting in Marrow and downloading the result skips all of that. See Unity and Unreal.

How to spot a bad retarget

Short characters need extra care

A person is about seven and a half heads tall. A cartoon character might be two or three. Copying a tall person’s rotations onto that body puts the hands inside a big head when they reach up, and a crouch can push a wide body into the floor. Marrow lifts a character whenever its feet, knees, hips, chest or head would go below the ground, and the Arm space slider moves the arms away from a wide body.

Retargeting and inverse kinematics

Rotations alone keep the style of a move but not exact contact points. If a hand must stay on a ladder rung or a steering wheel, engines add inverse kinematics on top: they take the retargeted pose and bend the arm so the hand reaches an exact spot. Use it in the engine, where the ladder is, rather than baking it into the animation.

A quick test

Play the same three clips on the original and the new character, side by side: a slow walk for the feet, a squat for hips and knees and arms overhead for shoulders. If those three look right, nearly everything else will.

Open Marrow