Animated 3D characters
A model of a character (page 11) can do more than turn: rigged, it plays motions. Every frame of every direction is then rendered from the same model, with one scale, so a walk in 32 directions stays one character. This page covers:
- rigging a model;
- playing library motions on it (free, once it's rigged);
- clips made for it by Ludo, which is also how animals move;
- rendering frames, normal maps, and handing the motion to Ludo or PixelLab instead.
How it works#
- A rig is the model with a skeleton.
rig_modelsends the asset's model to a rigger and keeps the rigged copy beside it (models/rig-….glb). The original stays as it was. - Library motions play on a humanoid rig for free. Any motion from the library (page 12) is retargeted onto the rig's skeleton in Atelier, so once a model is rigged, every walk, run and attack you import works on it.
- Clips are motions made for one rig. Ludo can retarget one of its presets onto the rig, or make a motion from words. They're kept with the model and play on it by joint name. Animals and other bodies move this way, since library motions are humanoid.
- Frames come from the model. The renderer poses the model for each frame and draws it at the game's camera. Normal maps come from the same pose, so lighting follows the motion.
Recipe: rig a character's model#
Using Atelier, rig
<knight>'s model.
rig_model (paid) uses Ludo by default (1 credit): its humanoid skeleton for a character, or its general rig for anything else. provider: 'fal' uses Meshy instead (about $0.20, humanoids only, experimental). The result shows the rig from four directions; it says so if the skeleton isn't a humanoid's, in which case library motions can't play on it but clips can.
The model needs to be a whole figure standing apart: rig it after generate_model (and model_fit_view, so frames keep the sprite's size).
The rig has its own front. A rigger hands back its own copy of the mesh, and it needn't face the way the model did. Atelier measures the rig's front from its skeleton (its left hip says which way it faces), or for other bodies against the model, and keeps it as model.rig.front. If the rig sheet still faces the wrong way, set it by hand: on the Model page's Rig card, or asset_update { model: { rig: { front: { yaw: 90, source: 'human' } } } }. (source: 'human' is a front set by hand, for the model's front too.)
Recipe: render a library motion#
Using Atelier, render
<walk-8>on<knight>'s rig in 8 directions, normalise it and give it normal maps.
animate_from_model { motion: 'walk-8' } renders each direction's frames (output: 'direct'), at one scale with the model's ground point on the pivot, and normalises them. The frame count follows the motion's length at 10 frames a second (frames and fps change it), and contacts and looping come from the motion.
- Pixel art:
output: 'pixel'renders the same frames and gives the asset apixelaterecipe, so they snap to cells and the palette. - Any number of directions:
directions: 'yaw-32'renders 32. - Normal maps:
normal_map { method: 'model' }renders each frame's normals in its own pose. - Leave room: a jump rises and a lunge reaches; if a frame touches the canvas edge, the warning says so. Make the canvas bigger, or move the pivot.
- A still from the rig:
frames: 1renders one frame: the rest pose with no motion (intostandunlessanimationsays otherwise), or a poseat(0–1) through a motion.generate_rotation { method: 'model', model: { rig: true } }(or{ motion, at }) does the same with every output, redraws included.
Recipe: a posed still to start from#
Using Atelier, pose
<knight>'s stand in<carry-walk>'s first pose.
For a motion that starts away from the stand pose (a carry, a crouch), pose_still { motion } (free) cuts the stand still along the rig's bones and moves each part into the motion's pose (at: 0–1 through it). The result is raw frames of <motion>-pose. Pass that as animate_transfer_motion { fromAnimation: '<motion>-pose' }: Ludo then starts from the character's own drawing, already in the pose, rather than a still redrawn by a model. Check limbs that cross the body by eye. Character kits use it too (page 16).
Recipe: something in the hand#
Using Atelier, put
<sword>'s model in<knight>'s right hand, blade forward, and render its walk.
model_hold { name: 'sword', from: 'sword', rotation: [90, 0, 0] }(free) puts another asset's model on a bone (bone, defaultrightHand; a joint name for other rigs). It's placed once at rest: itsgrip(default the bottom middle of its box) on the bone, moved byoffset, turned byrotation(degrees about x, y and z in the rig's frame: +Y up, facing +Z), its longest sidelengthof the character's height (default 0.4). From there the bone carries it. The result shows the model holding it from four directions; passmotionandatto see it mid-swing.animate_from_model { output: 'direct' }(or'pixel') renders the body as before, and each held item as a layer of its own,walk-sword. A layer holds only the item's pixels that are in sight, with whatever the body hides already taken out, so the game draws it over the body frame for frame and gets the depth right: in front of the body when the sword swings forward, behind it when it swings back. The game can also swap the item or leave it out.export_assetlists the layers in<id>-layers({ "walk": { "sword": "walk-sword" } }).
render_model shows the model with what it holds. A layer's normals come from its own pixels, not the model. Held items are for rendered frames: a video for Ludo and PixelLab's keypoints leave them out.
Recipe: animals and other bodies#
Using Atelier, rig
<wolf>as a quadruped, add Ludo's walk preset to it, and render it in 4 directions.
rig_model { type: 'quadruped' }uses Ludo's general rig.model_clip { preset: '<id>' }(paid, Ludo, experimental) retargets a preset onto it.motion_presetslists them. Or describe the motion:model_clip { prompt: 'trots forward', variants: 3 }returns three candidates,trots-forward-1to-3, side by side in one sheet.- Keep the best candidate: "keep trots-forward-2".
model_clip_pick { keep }(free) gives it the call's name (trots-forward, oras), and the other candidates leave the clip list; their files stay inmodels/clips/. Withoutkeep, it shows the candidates again. Animations already drawn from the kept clip follow its new name; ones drawn from a dropped candidate keep their frames, and the result names them. On the Model page, the Rig card plays each candidate with a Keep button under it. animate_from_model { clip: '<name>' }renders it like a motion.
For a four-legged character drawn in pixel art, with no 3D model, see quadrupeds on the 2D route.
Humanoids can have clips too: a prompted motion is quick when the library has nothing close.
Recipe: hand the motion to Ludo or PixelLab#
Rendered frames look 3D. To keep a painted or pixel-art look, the motion can guide a provider instead:
output: 'video'(Ludo, painted styles): the character's own model playing the motion, rendered at each direction's view, becomes the video (an MP4 data URL) for Ludo's transfer motion onto the painted still. It's a better guide than a mannequin because it has the character's own shape, so walks don't come back tall and thin. Ludo is told to draw for the motion's own length, so one cycle comes back. It takes animate_transfer_motion's options:prompt: Ludo keeps the still's pose unless told: a carry-walk from an arms-down still comes back with the arms at the sides. Say where the arms are: "both forearms held out in front at waist height as if carrying a box, hands empty".fromAnimation: a still already in the motion's pose to start from.generate_rotation { method: 'model', animation: 'carry-pose', model: { motion: 'carry-walk', at: 0, output: 'redraw' } }repaints the rig's posed render in the still's style for that.duration,model(hydrafor videos,ignis-pixelfor pixel art;ignistakes presets only) andframes(the most Ludo returns).fitDuration: true: each of Ludo's models draws only some lengths.hydra, the one for videos, takes 3–5 s in half seconds;ignis1–5 s. A walk cycle is often shorter than 3 s, and a length the model would refuse is stopped before anything is sent, naming both fixes: stretch the motion (motion_edit { duration: 3, saveAs }), or passfitDuration, which plays the guide slowed to the nearest length the model takes, for this call only. The motion itself isn't changed.qa: { minHeadRatio, maxSeam, retries }: when the frames come back, each direction's head is compared with its still's, and its loop's seam with its steps (asqa_walk_cyclemeasures it;maxSeamdefaults to 1.75 typical steps). Failures are drawn again in the same call, with a prompt saying what to keep: the head size and proportions, the facing for directions seen from behind, a seamless loop. Whichever drawing is closer is kept. Ludo pulls figures towards its own proportions unpredictably (in testing, 0.77 of the still's head width in one run and 0.93 in the next, from the same inputs).- The animation's contacts come from the motion, on the frames Ludo returned.
- When the motion holds the hands forward (a carry), the side views are checked for anything drawn at the hands, which catches arms drawn down, and the front and back views for a figure reaching out further on one side at the hands' height, which catches one arm held out sideways.
output: 'keypoints'(PixelLab, humanoid motions): the rig's joints become the posesanimate_from_skeletonsends PixelLab, with the character's body measured from the rig.output: 'ludo'(Ludo, 1 credit a direction): Ludo renders the rigged model itself, playing a Ludo preset (preset, frommotion_presets, retargeted onto the rig) or one of the rig's clips, in one of its Directional Sprites styles, every direction on one floor and scale. It's for Ludo's looks; the local renders are free.styleandstyleParams: the default isplain_3d(the model's own colours), orpixel_artin a pixel-art game, sized so the figure is as many art pixels tall as the still. Others:pixel_retro,pixel_hd,painted,cel_soft,watercolor…- Frames: the sheet spans the whole preset (
walk_forwardis 4 s, several strides), so Atelier asks for about 10 frames a second of it unless you passframes, and takes the fps Ludo reports. - Pixel styles draw convincing blocks but come back as lossy WebP with hundreds of colours, so expect to pixelate or quantise the result.
The Model page#
The Rig card shows the rig (who rigged it, how many joints, whether it's a humanoid) and plays any of its clips, or any library motion on a humanoid rig, in the direction you choose. Rig front shows the rig's own front, measured or set by hand, and saves a new one. A prompted clip's candidates play side by side under it, each with Keep.
Troubleshooting#
| Problem | Fix |
|---|---|
| "isn't rigged yet" | rig_model first. |
| "can't play on it" | The rig isn't a humanoid's (or its bones weren't recognised): add clips with model_clip, or rig again with type: 'humanoid'. |
| A frame is cut off | The motion reaches past the canvas: a bigger canvas, or the pivot moved. |
| The character is the wrong size | Frames use the model's fitted scale: run model_fit_view on the original model, then render again. |
| The rig faces the wrong way (the face in the e row) | Its front is its own: set model.rig.front by hand (Rig card, or asset_update). |
| A carry came back with the arms down | Pass prompt saying where the arms are, or start from a still in the pose (fromAnimation). qa_report flags it. |
| A direction came back with a small head | Redraw just it (directions: ['w']), or pass qa: { retries: 1 }; qa_walk_cycle and qa_report give each direction's head against its stand. |
| "hydra draws 3–5 s … would be refused" | The loop is shorter than the model takes: fitDuration: true, or motion_edit { duration: 3, saveAs }. Nothing was sent. |
| A loop jumps at its seam | Pass qa: { maxSeam: 1.75, retries: 1 } to redraw it in the same call; qa_walk_cycle reports each direction's seam. |
| One arm held out sideways in a front view | Say where both hands are: prompt: "BOTH hands together in front of the tummy; neither arm reaches out to the side". |
| A clip moves the wrong joints | Clips play by joint name: one made for an older rig won't fit a new one. Add it again. |
Next: Widgets in the conversation.
Found a mistake? Edit this page on GitHub.