11 min read

Rigsmith: one drawing in, a rigged 3D character out, checked against the drawing

Rigsmith chains an AI image edit, local image-to-3D and a geometry fit into one headless command that turns a single drawing into a rigged production head. Every step is measured against the drawing itself, and a run ends with a verdict an AI agent can act on: pass, check or fail, with the pictures to open.

command per character, from drawing to rigged head, headless on one PC
1
outline overlap of seven finished heads with their drawings, through each drawing's own camera
0.97–0.99
heads I had approved by eye that a stricter check caught showing only 61–74% of the drawn eye
3 of 7
minutes for a whole character, start to finish, on one RTX 5090
15–25
Sal, from the drawing to a rigged body ready for Unreal. Every step was rendered headless in Blender and captioned by the pipeline itself. 60 seconds, no sound. Download the film (MP4, 7.5 MB)
The film as text

A one-minute film with no sound, rendered headless in Blender and captioned by the pipeline. It opens on a title card, "Rigsmith. Sal: one drawing to a rigged character," with the note that every step below ran on its own, headless, on one PC. Then it shows eleven steps, each with its caption:

  1. The drawing. The only input: one front drawing of the character.
  2. Its bald twin. An AI image edit removes the hair, brows and mustache. What changed between the two pictures is the groom.
  3. 3D from the drawing. Pixal3D, running locally, turns both pictures into 3D that lines up with the drawing pixel for pixel.
  4. Production topology. A clean quad head template is fitted to the scan: face landmarks, the drawn eye openings and the surface.
  5. Painted from the drawing. Skin comes straight from the picture and is carried around the head. The eyes are rebuilt from the measured iris.
  6. Hair, brows and mustache. What differs between the two scans is sorted into hair, brows and mustache, and each is rebuilt as its own clean mesh.
  7. Checked against the drawing. Rendered through the camera the 3D was generated with, the finished head lies on the drawing.
  8. Face rig. khFacialSetup rigs the face in seconds: a face board with 44 controls, lids, lips, cheeks, squash and stretch.
  9. Full body. Optional: the head goes onto a full body with the same topology, in the character's skin tone.
  10. Body rig. An mGear body rig on the UE5 Mannequin skeleton, with twist joints and correctives. The face rig rides the head joint.
  11. Ready for Unreal. Head and body FBX, cut at the base of the neck as MetaHuman is, on one UE5 skeleton. They share the cut, so the neck never opens.

It closes on "Rigsmith. One drawing in. A rigged character out." and the list of what comes out: a Maya rig with a face board, head and body FBX for Unreal, GLB, a Blender scene, textures and a turntable.

Rigsmith is a pipeline I built that turns one front drawing of a stylized character into a head a studio could animate: the template's clean quad topology and UVs, skin painted from the drawing, eyes rebuilt from the measured iris, teeth, tongue and lashes, hair, brows and mustache as their own meshes, and a face rig. It is one command, it runs headless on one PC with an RTX 5090, and a whole character takes 15 to 25 minutes.

The engineering problem is the one every generative pipeline has. Chaining models gives you plausible output, not correct output: a generated head can look convincing from a new angle and still not be the character in the drawing. So in Rigsmith the drawing stays the reference at every step, and the pipeline spends as much effort measuring as making. Each step writes what it did and how far the result is from the drawing, and a run ends with a verdict that an AI agent, or I, can act on. I build my tools with AI coding agents, and this one is meant to be run by one too.

Two generative steps, held to the drawing

The only input is the front drawing, or a prompt that becomes one. Two generative models work on it. An AI image edit makes its bald twin: the same picture, bald, browless and clean-shaven. Nothing else is supposed to change, so whatever differs between the two pictures is the groom. That difference separates the hair from the skull in 3D, cuts the brows out of the drawing as decals, and tells the skin texture where not to look. Then Pixal3D, running locally in ComfyUI with no cloud calls, turns both pictures into meshes, with one shared crop, one camera (MoGe-2 estimates its field of view) and the same seeds.

Neither model is trusted as it is. The twin is another drawing, and nothing held its features to the original's: on the round-faced kid, the twin's eyes sat 11 to 13 pixels higher and a size larger than in the drawing. Since November 13 the twin is pulled back onto the drawing's eyes, nose and mouth with a thin-plate spline before the scan is made, to within 1.5 pixels. Pixal3D earns its place because it is pixel-aligned: its mesh projects exactly onto the picture, so anything found in the drawing, an eye corner or the edge of a lip, can be found on the mesh. From the front alone, though, the profile and the back of the head are the model's guess, so the image model also draws a strict side view and the scan is made from both. On the old lady's first head, the fit matched her side picture's outline 0.90 from the front alone and 0.97 from both.

Sal's face three times, side by side: the drawing, with gray hair, thick gray brows and a thick gray mustache; its bald twin, the same face with no hair, brows or mustache; and the fitted 3D head rendered through the same camera, bald, with the same nose, eyes and jaw.
Sal's drawing, its bald twin (the scan is made from the twin) and the fitted head through the same camera, before its hair goes on. This is the top row of the head check that runs before every rig.

Deterministic geometry on top of the scan

The scan is not the deliverable. Pixal3D's meshes are double-sided, with arbitrary winding and an inner sheet, and its eyes are bowls. What ships is a clean quad head, one of Blender Studio's stylized Human Base Meshes, fitted to the scan, so every character shares one topology, one UV layout and one set of rig landmarks.

The fit lifts MediaPipe's face landmarks onto the scan through the camera, places the template with a similarity transform, and then runs a non-rigid least-squares solve: a smoothness term, pulls between template and scan in both directions so jowls and noses fill out, the landmarks, and the eye openings read from the drawing. Most of its rules came from a face that broke the version before:

  • A long nose over a low mouth read as a head tipped back 14 degrees, and a huge jaw as a head tipped forward 19. The head is now kept level: yaw and roll come from the landmarks, pitch does not.
  • MediaPipe's eye outline sits inside a cartoon eye. An eye drawn far larger than a real one is now read off the drawing itself: its white and iris by color, then the lid's edge along them.
  • The scan's eyes are pits, on one face 4 cm deep, and the lids followed them down. A lid edge may now sit at most 0.6 eye radii behind the skin around the eye, sliding along its own camera ray, so in the picture it stays put.

After the fit, the skin is painted from the drawing wherever the camera saw it and carried smoothly over the rest of the head, the eyes are rebuilt from the measured iris, and the hair, brows and mustache each become their own closed, smoothed mesh.

The check that passed a bad head

Seen through the camera the 3D was generated with, a head can only differ from its drawing where something went wrong. So before a head is rigged, a check renders it through that camera beside the drawing and measures it: how much of the head's outline overlaps the drawing's, how much of each drawn eye, its white and iris, the head actually shows, how far each iris sits from the drawn one, and how many faces of the mesh have turned over.

The first version of that check passed a head with small triangular eyes. It compared each eye opening on the head with the opening the fit had aimed at, and on the round-faced kid that target was itself wrong: the opening had been read as a small triangle around the iris of a huge eye. The head matched the pipeline's own mistake, so the numbers looked fine. The check now also reads each eye straight off the drawing, by color alone, and measures how much of it the head really shows. Run on every character, it found three heads I had approved by eye, Sal among them, showing only 61 to 74 percent of their drawn eyes.

It is the lesson I keep relearning with AI pipelines: grade the output against the input, not against your own intermediate results.

Seven characters in columns, each drawing above its finished 3D head rendered through the drawing's own camera. Round-faced kid: outline 0.980, eyes 0.95 and 0.94. Superhero: outline 0.977, eyes 0.82 and 0.84. Old lady: outline 0.972, eyes 0.89 and 0.89. Girl with afro puffs: outline 0.974, eyes 0.78 and 0.86. Sal: outline 0.987, eyes 0.74 and 0.74, made before the eye fix. Woman with a bob: outline 0.990, eyes 0.67 and 0.62, made before the eye fix. Anime boy: outline 0.984, eyes 0.63 and 0.61, made before the eye fix.
Each drawing above its finished head, rendered through the drawing's own camera. Under each: the outline overlap (1 is a perfect match) and the share of each drawn eye the head shows, left and right. The last three were made before the November eye fix.

Changes to the head steps are tested before any character is remade. A trial script fits every existing character again on copies, with the code as it is now, and prints each original's scores beside its trial's; six faces fit in about two minutes. After the November 13 changes I remade the newest characters:

The head check before and after the November 13 head steps
CharacterWhat makes it hardDrawn eye shown, beforeDrawn eye shown, nowOutlineSide profile
Round-faced kidHuge round eyes0.52 / 0.560.95 / 0.940.9800.985
SuperheroHuge jaw, slit eyes0.56 / 0.480.82 / 0.840.9770.975
Old ladyLong hooked nose, small hooded eyes0.78 / 0.820.89 / 0.890.9720.972
Girl with afro puffsAlmond eyes, full lips; made after the fixnew0.78 / 0.860.9740.968

The outline is the easy number: all seven heads overlap their drawings between 0.972 and 0.990. The eyes are the hard one, and the one an animator notices first. A narrow eye still shows less than it is drawn, because the lid's thickness takes a bigger share of a small opening: the superhero's left eye shows 82 percent. Sal, the woman with the bob and the anime boy have not been remade yet. Refit copies of their heads, made with the new steps, show 90 to 96 percent of the drawn eye.

Look and face rig

The look step fits shaders and light to the drawing through its own camera instead of painting over it. It measures the drawing's lighting on the face as ambient light plus light from 200 directions, divides it out of the skin to leave the albedo, and runs a coordinate search over exposure, skin, hair and eyes, scoring each candidate by its CIELAB color difference to the drawing, region by region. The step is seeded and deterministic, and its result is written once, as plain physically based values that Blender, Maya and Unreal each build their own materials from.

khFacialSetup, my face rigging tool, then rigs the head headless in Maya in seconds: a face board with 44 controls, soft lids, cheek puff, sticky lips and head squash. Big cartoon eyes broke its blink. On an eye two to three times the size of the template's, a vertex weighted halfway to a lid joint moves along the chord of its turn instead of the arc, and the closing lid sank up to 7 mm into the eyeball. Pose correctives now keep every vertex the blink moves at its rest distance from the eye's center.

The rig is then taught the character's own expressions. The image model redraws the front picture with ten expressions, as edits, so identity, framing and light stay; each picture's landmark motion is solved onto the rig through the drawing's camera, and a sculpt carries the pose the rest of the way below the eyes. The rig's own controls reach 98 to 99 percent of each sculpt, and a corrective lands the rest within 3 mm. The same pictures pose a second rig type: Blender Studio's Storm face rig, retargeted onto each head through a hidden proxy in Storm's topology. Sal's mouth reaches 0.72 of his drawings' motion with Storm and 0.59 with the face board.

Ten pairs of images of Sal. Each pair shows an expression picture (anger, disgust, fear, laugh, pucker, puff, sad, smirk, surprise and wink) beside the Storm face rig posed from it on his 3D head. Most poses follow the picture; disgust and fear read weaker than drawn, and the pucker is mostly hidden under the mustache.
Sal's ten expression pictures, each beside the Storm rig posed from it on his own head. Some read weaker than drawn: no sneer shows under the mustache in disgust, fear barely opens the mouth, and the pucker hides under the mustache. Face rig: Storm by Blender Studio, CC BY 4.0, modified.

Verdicts an agent can act on

The newest piece builds the Storm rig in Maya with one command that also reviews the rig against Storm's own and answers pass, check or fail. The limits behind the verdict come from rigs I had already approved. A rig passes when, across the pose set, no more than 1.6 times as many of its triangles fold over as Storm's own do, and fails above 2.4. It passes when at least 55 percent of its poses go as far as Storm's, and there are limits of the same kind for the blink's lid line, the jaw and the controls' axes.

Every reason in the result has a level, a sentence a person can read, and the pictures to open. What the tool fixed on its own comes back as a note, such as lips that were 1.4 mm apart at rest and now close. This is the superhero's rig, the one that failed, trimmed:

{
  "verdict": "fail",
  "reasons": [
    { "level": "fail", "key": "folds",
      "text": "the skin folds over itself far more than Storm's own rig does (2426 triangles over the pose set against 915; worst: Face_Compressed 98, Smile_blink 95, Face_Angry 88, Angry_blink86 83)",
      "look_at": ["review/library__front_0.jpg", "review/mouth__mouth_0.jpg"] },
    { "level": "check", "key": "lids",
      "text": "the lid line is rougher in the blink than on the rigs checked so far (0.26)",
      "look_at": ["review/blink__eyeL_0.jpg"] }
  ],
  "numbers": { "folds_ratio": 2.65, "match_share": 0.65, "lid_roughness": 0.26, "jaw_follow": 0.95 },
  "next": ["Do not hand this rig over. Report the reasons marked fail as they are written."]
}

The result is written for an AI agent as much as for me. A Claude Code skill runs the command in the background, reads the verdict, opens every picture a check names and reports what it saw. The exit code says the same as the verdict, and when a step fails, the result lists its logs with the one that holds the cause first. The skill also carries a rule I learned the hard way: never call a rig good without opening its review pictures. Two rigs once went out with jaws that did not work, one opening backward, because nobody opened the jaw sheet. On the November 13 run, six of the seven rigs came back check and one failed: the superhero's.

One command, files in and files out

The whole chain is one command per character and needs no hand edits. Each step runs in its own process, reads files, writes files and a report next to its result, logs to its own file, and is skipped when its outputs already exist, so a fix to one step reruns only what follows it. A run summary records which steps ran, failed or were kept. On the RTX 5090, Pixal3D takes 1.5 to 4 minutes per picture, the fit and textures about a minute, the groom 3 to 10 minutes (a fine mustache is the slow case), the Blender package about 30 seconds and the face rig about 15.

python tools/run_character.py new_hero --prompt "a cheerful pirate girl with red braids" --template StylizedFemale

What comes out: the head as a Blender scene, FBX and GLB; the Maya rig with its face board; a Blender rig on the same board; textures; the strand hair as Alembic; materials for Blender, Maya and Unreal; and the review renders. With the body option, the head goes onto a full body with the same topology and an mGear body rig on the UE5 Mannequin skeleton, split at the base of the neck as MetaHuman is, so head and body drop into Unreal without a seam.

What I want from a pipeline like this is not one render that looks right. I want a result that shows its work: every step leaves a file I can open, and every claim about the result is a number measured against the drawing it came from.

What this does not show

  • Seven characters, all drawn in one stylized look by one image model. Realistic faces need their own template, and photos need their lighting removed from the skin first.
  • A narrow eye still shows less than it is drawn, and three of the seven heads were made before the eye fix.
  • The verdict's limits are calibrated on a handful of rigs I approved, not on a large set, and six of seven rigs on the last run still came back check.
  • Strand hair does not follow the drawing's hairdo yet: the old lady's bun came out as a bob, and the two afro puffs as two smooth lumps.
  • The back of the head is the model's guess with a carried-over skin tone, and the right side of the head wears the left side's skin, mirrored.
  • Every number here comes from the pipeline's own checks against the drawing. None of it is a user study, and none of it says an animator would sign off a head without looking at it.

Credits

Storm face rig by Blender Studio, licensed CC BY 4.0 and modified: reduced to its face rig, retargeted onto each character, bound to Rigsmith's meshes, and poses added. Head templates: Blender Studio's Human Base Meshes. 3D from pictures: Pixal3D by Tencent ARC and Tsinghua University, with MoGe-2 and BiRefNet. Face landmarks: Google's MediaPipe.

Applied AIEvalsAI agentsImage to 3DPython

Published .