The A-Pose That Put 40 Degrees Into Every Clip
An animation is a list of joint rotations over time, made for one particular skeleton. Moving it onto a different skeleton is called retargeting. It is one of the oldest problems in game animation, and on August 28 it gave me the clearest lesson of the year about automated checks.
Two ways to stand
Every skeleton has a rest pose, the pose it is built in before any animation plays. Most engines expect a T-pose: standing straight, arms out to the sides, level with the shoulders. Many characters sold for games are built in an A-pose instead, with the arms angled down, which is easier to model and skin.
Kalix’s converter took a clip from a source skeleton and recorded each frame as a change from that skeleton’s rest pose. Then it applied those changes to the engine’s own skeleton, starting from its T-pose. That works as long as the source’s rest pose is a T-pose too. The converter’s own source code said so, in a comment: a source resting in a different stance would carry the difference into every frame.
The pilot
I had a commercial pack of fighting animations, 618 clips across two files. The agent converted four of them as a pilot. Every automated step passed, including a check built specifically to catch bad conversions. I opened the result, and none of the animations were right.
The measurement afterwards was simple. The pack’s character stands with its arms 43.4 degrees below horizontal. The engine’s mannequin stands with them at 0.0. Every frame was measured as a change from an A-pose and then applied to a T-pose, so the stance difference went into every frame. Sampling the same idle clip before and after conversion at three moments, the left arm came out 39.7, 39.5 and 40.5 degrees off. About 40 degrees too high, all the time, in the direction the arithmetic predicts.
Why the check passed
The check reported errors between 2.1 and 5.0 degrees on all four clips, comfortably inside its 15-degree limit, while every clip was 40 degrees wrong.
It worked by rebuilding the converted pose and comparing each bone with where it should point, using directions taken from the same rest pose the converter had been handed. So it was consistent with whatever rest pose it was given. It could tell whether the conversion arithmetic had been done correctly. It could not ask whether the rest pose was a T-pose. Its own description listed the mistakes it was meant to catch, wrong bone order, inverted rotations, scaling errors, all of which score 90 to 180 degrees, and a wrong rest stance was not among them.
So the evidence for “it works” was a check that could not see the problem, plus a run proving the clips loaded and played. That is evidence the machinery ran. It says nothing about whether the result is right. Nobody had looked at a pose.
Two seams, one of them built
There are two places in this kind of pipeline where a stance can differ: between the source skeleton and the engine’s convention, and between that convention and the skeleton a clip finally plays on. Kalix already handled the second. Earlier that month it had learned to straighten the arms of an A-posed character receiving animation. The A-pose in this pack was on the other end, where nothing existed.
That is not an edge case. Most commercial animation packs are built in an A-pose, so this is the common case.
What was built afterwards
The same day became the start of a short run of work on character animation.
Reading the original files directly. The pipeline had been converting the pack’s FBX files to another format with an outside tool and a set of scripts. Kalix now reads FBX itself, using the open-source ufbx library. The whole first file of the pack, 219 clips, imports with one command. I watched the pack’s own character play its animations in a packed game built that way, and they looked right.
Transferring between skeletons directly. Instead of going through the 24-joint scheme, a clip now moves from one skeleton to another with both rest poses straightened first. Measured on the same pack onto the engine’s mannequin: the plain transfer was off by 49.9 degrees, and the corrected one by 0.7.
A stance check that can refuse. Before converting anything, a check now measures the source’s rest pose itself: arms must be within 10 degrees of level, legs within 15 of straight. It measures the pose directly, rather than checking the converter’s arithmetic against itself, which is what let the pilot through. The exact command that produced the bad pilot now stops at its second step, prints what it measured, and writes nothing. There is an override, and it is loud.
What is still not known
- No transferred clip has been watched on screen. The 0.7-degree figure is a measurement. The step where a person looks at the transferred animations playing on another character has not been run.
- A transfer carries only part of a clip. It moves the 24 joints in the engine’s scheme, 23 of the 138 animated channels in the source. Fingers, collarbones and toes stay at rest.
- The 24-joint scheme is a ceiling. The engine’s own mannequin has 65 joints with different names. Since July, features like the upper-body mask and arm reaching find their joints on a real skeleton by name, but they can still only address the 24 joints in the scheme. Lifting that limit is planned and not started.
What the pilot taught me is short: a check is only as good as the question it asks, and this one never asked how the character was standing. Part 6 is about a game where the engine’s job is the opposite of guessing: deciding exactly what happens.