SIMULATION / EXPERIMENT

What it took to raise a rifle

When Sera raised a rifle, parts of her face collapsed into her neck. Fixing it meant teaching a generated character, a library of captured motion, and the game’s live animation systems to agree on what her body was doing.

Sera lifts a glowing sword beside a fallen machine in a sandstone canyon.
Sera at The Rim in EDEN//ZERO. · View full size ↗

The question

How do you make a generated character handle a rifle naturally when motion capture, weapon contact and the rig disagree?

Inside the experiment

I used Sera’s aim-and-reload cycle as the test. Raising the rifle made defects in the generated rig visible. Reloading forced the live grip solver to hand control back to a captured clip and then take it up again.

A good T-pose can hide a bad rig

Sera looked right standing still. When she raised a rifle and her head moved, skin around her jaw followed the neck more than it should. I could have spent another evening looking for better clips. The evidence was in the mesh anyway. In the bind pose, the transforms that move the skin cancel out. Even badly assigned weights can look fine until the bones move relative to one another.

The forearm exposed a different ambiguity. Two rigs can agree on where the elbow and wrist are and still disagree on which way the palm faces. I calibrated the rotation around the forearm’s long axis during retargeting, then used a separate twist bone to distribute the live rotation through the arm. That let the hand turn on the weapon without asking the skin and armor at the wrist to absorb the whole motion.

The left hand has to come off the rifle

Getting a hand onto the foregrip is a solvable geometry problem. I could put it in exactly the right place and still get a sideways elbow and a crumpled sleeve. The contact had to make sense from both ends of the arm. Aiming also had to bring the stock to the shoulder and the eye toward the sights, within the range that the head and shoulders could plausibly move.

Then there was reloading. The support-hand solver existed to keep the hand on the foregrip. The reload clip needed that hand to leave it. During the reload, the clip gets the arm. The grip comes back under procedural control as the hand returns, and the forearm twist runs after the hands are positioned. In play that handoff lasts a moment. It took getting the order and authority right for the motion to read as one continuous action.

Three places to look when a pose feels wrong

I gave myself three ways to look at Sera. I could inspect the mesh and weights on their own, watch retargeted motion on the skeleton, or run the actual character controller with weapon-contact and IK overlays. A persistent 10.8-degree downward bias in the head was the kind of defect that justified the effort. The integrated pose showed the symptom. Isolating the skeleton let me trace it to the retargeted head orientation.

By the end I still had a generated character and roughly seventy motion-captured clips. What I’d gained was a way to see what each system contributed to the final pose, and a reason for each layer to have control when it did. In the game, you see someone raise a rifle, shoulder it, and reload while you’re trying to stay alive. I wanted all that work to disappear into the movement.

Controls & interaction

In the development tools, inspect the mesh and weights in isolation, then play the same motion on the retargeted skeleton. In the controller view, watch the contact markers as Sera aims, takes her support hand off the rifle to reload, and returns to the foregrip.

Development record

This study draws on the character tools and runtime animation work in EDEN//ZERO. The image is from the game at The Rim. The companion essay explains the geometry and the diagnostic views in greater detail.

The interaction is described from the project’s documentation. This edition does not add a new runtime or compatibility test of the original experiment.