Skip to content
Tutorials menu
Tutorialsmodels

3D models and any number of directions

Drawing a sprite one direction at a time drifts: a car redrawn in 32 directions comes back in 32 slightly different sizes and shapes. A 3D model of the asset fixes that. Atelier renders the model at your game's exact camera, in as many directions as you like, with one scale and one footprint for all of them. This page covers:

  • the game's camera, as numbers;
  • making a model of an asset (the only paid step);
  • fitting the model to the view its sprite was drawn at;
  • checking where each still was really drawn (the direction audit);
  • level model sheets, and a tournament of models scored against every still;
  • rendering directions into frames: as they are, as pixel art, or redrawn in the game's style, by the built-in renderer or Blender;
  • the model's own shadow on the ground;
  • normal maps from the model;
  • the Model page: the report card, handles on the fit, painting the texture, and building a model from boxes when a generated one isn't exact enough.

How models work#

  • The camera is part of the style guide. views.default.pitch is how far the camera looks down: 0 is a side view, 30 the usual three-quarter view, 50 nearly overhead. Unset, it comes from projection (side 0, three-quarter 30, top-down 50), the same angle skeleton motions use. mode is orthographic (the default: sprites have no perspective) or perspective, with fov.
  • Each kind of asset can have its own camera. A game often draws its characters nearly level and its vehicles and props from well above. views.byKind changes the default for every asset of a kind (character, object, prop, scene, tileset …), and an asset's own view changes it again. Renders, fits, guide videos and skeleton motions all use the asset's camera.
  • A direction is a yaw. A direction's yaw is how far it's turned from facing the camera: s 0, se 45, e 90, n 180, w −90. Besides the 8 compass directions there are two more presets: compass-16 (s ssw sw wsw w …) and yaw-32 (y000 y011 y023 … y349, 11.25° apart).
  • A model is a GLB in art/assets/<id>/models/, recorded on the asset as model. It's checked in like depth/, because it was paid for and every render depends on it. Atelier stands it on the ground with its footprint centred, and turns it by model.front.yaw so its front faces s.
  • Renders are rebuilt, not stored. The same model and view always give the same pixels, on any machine, so frames can be rendered again at any time for free.
  • One renderer. Tools and the web app's Model page draw with the same code, so what you see on the page is exactly what a tool writes.
  • The model's ground point is the pivot. Every direction stands on it with one scale, so a car turning on the spot doesn't wobble or change size. At a pitch, the near side of a deep object reaches below the ground point, so leave room under the pivot. Set the pivot and baseline higher than you would for a character, e.g. two-thirds of the way down a car's canvas.

Recipe: set the game's camera#

Using Atelier, the game's camera looks down about <35>°. Set the style guide's view to that.

Claude calls style_guide_update { views: { default: { pitch: 35 } } } ({ view: { pitch: 35 } } does the same). Skeleton motions follow it too, so set it before animating, or redraw afterwards.

Recipe: a different camera for props and vehicles#

Using Atelier, our characters are drawn almost level (<1>°), but props, objects and scenes are drawn from <55>° up. Set that up.

Claude calls style_guide_update { views: { default: { pitch: 1 }, byKind: { object: { pitch: 55 }, prop: { pitch: 55 }, scene: { pitch: 55 }, tileset: { pitch: 55 } } } }. For one asset that differs from its kind, asset_update { view: { pitch: 40 } }. The Model page says which camera an asset uses and where it came from.

Not sure of the angle? Fit a model to a few of the game's sprites (below). style_guide_derive then proposes the pitch each kind's fits agree on: the camera measured rather than guessed. model_fit_view also says when a still was drawn far from its asset's camera, and proposes the kind whose camera it matches.

Recipe: a model of an asset#

Using Atelier, make a 3D model of <car> from its front still, then fit it to the still and show me the fit.

  1. generate_model (paid) sends the larger original behind the stand/s still, background removed, to an image → 3D model:

    provider / model Cost Notes
    fal / trellis-2 (default with FAL_KEY) about $0.30 Textured, faithful for props; flattens big heads (in testing, a chibi's came back a third as deep as it was wide)
    fal / hunyuan3d about $0.48 Textured Hunyuan3D v2; its image is flattened onto white (it refuses a transparent one)
    fal / hunyuan3d-mv about $0.48 Hunyuan3D from the front, back and left side: backImage and sideImage, or views: 'auto' for the asset's own stand/n and stand/w (experimental)
    fal / trellis-multi about $0.02 TRELLIS from several views, the same way (experimental)
    fal / sam3d about $0.02 Cheap; also returns the object's pose, which the fit starts from
    fal / tripo about $0.30 Tripo v2.5, textured, turned to match the image (experimental)
    ludo / prop 4 credits Takes a backImage too; suits props (in testing, a character came back a thin card)
    ludo / hero 15 credits For characters: a round head, but the back is invented (it gave a bald character hair)
    ludo with rig: true 1 credit more Rigged as it's made: the model is its own rig (page 13); experimental

    It returns the model from the 8 compass directions at the game's camera. Generators take the image as the front, so start from a front view (s), or from a larger picture with image. seed gives a different try. A character that comes back flat from the side (a head less than half as deep as it's wide, or a card) is warned about, with what to try instead. A generator that rejects the image says which to try next.

    • The model it replaces is kept, rig and all, in the asset's modelHistory: asset_revert with the earlier generation's id puts it back.
  2. model_fit_view (free) finds the pitch, turn and scale the still was drawn at. It renders the model at many views and scores each by how well its outline overlaps the still's, with a colour check that tells front from back. The result shows the source, the render, and the two overlaid: red where only the source is, blue where only the render is, white where they agree.

    • The scale it finds is what frames are rendered at, so the model keeps the sprite's size.
    • If the generator turned the model round (it happens), the fit turns its front back to face s, unless you've set the front yourself.
    • With a front set by hand (or keepFront), only ±30° round it is searched. If the best there overlaps the still by less than half, the whole turn is searched too, and the better is kept: the result says the still looks turned from where its front says. Either the still wasn't drawn facing its direction (a car's s still drawn three-quarters on), or the front is wrong.
    • The pitch it finds is compared with the asset's camera: far from it (15° or more), the result proposes a camera for the asset's kind, or the kind whose camera it matches.
    • Fix the pitch with pitch when you know the camera, so only the turn and scale are searched.
    • A texture baked darker than the still (TRELLIS.2 bakes a de-lit albedo: a light tan skin rendered dark brown) is measured too: the fit sets model.colour.gamma, which lifts it in every render. Set it by hand with asset_update { model: { colour: { gamma: 0.6, source: 'human' } } }, or null to drop it.

Recipe: check where each still was drawn#

Using Atelier, audit <car>'s directions against its model.

A still named s isn't always drawn facing s. direction_audit (free) fits the model to every drawn still over the whole turn and records the yaw and pitch each was really drawn at (drawnAt on the asset). It returns each still beside the model at that angle. For example, one test car's s turned out to be drawn at −38° (really sw) and its n at 92° (really e), each from a different height.

  • A still drawn as another direction gets a next step (page 15) and two ways out: rename: { from: 's', to: 'sw' } moves it to the direction it shows (the asset needs that direction, not as a flip); keepAsReference: 's' keeps it as a reference labelled with its angle, so the direction can be drawn again.
  • When most stills disagree the same way, the model's front is off rather than the stills: the notes say so.
  • Without a model, the audit returns the stills and a rubric for Claude to judge by eye, and record saves what it sees.

The Model page marks where each still was drawn on its ring: green on its name, red when it's more than 22.5° off.

Recipe: a model sheet, and a tournament of models#

Using Atelier, draw a model sheet of <baler>, then make models from it with every generator and keep the best.

  1. reference_generate { mode: 'model-sheet' } (paid) draws the subject front, side and back, level, orthographic and flat-lit (a character in an A-pose): what image → 3D models want, rather than the game's angle. The sheet is checked after it's drawn: the three views must be one height, and the side a plausible depth for the front.
  2. generate_model { candidates: 'default', sheet: 'ref:<sheet>' } (paid) makes a model with each entrant: fal's multi-view hunyuan3d-mv and trellis-multi from the sheet, Ludo's hero (characters) or prop, and fal's trellis-2, about $0.30–1.50 in all. Or name your own: candidates: [{ provider: 'fal', model: 'tripo' }, { provider: 'ludo', model: 'prop', rig: true }]. Each entrant is its own generation, checked against the budget; one that fails doesn't stop the rest.
  3. Scoring (free): once every model is in, each is scored against every still at the angle it was drawn (the audit's, else its name and the camera): the mean overlap, less 0.3 × the colour distance, less 0.1 for each sign of a flat model on a character. The best becomes the asset's model and is fitted; the others stay in its history. If some are still being made, job_wait, then model_score { tournament } scores the round.

model_score on its own scores the current model (or all: true, every model in the history) without changing anything; pick: true keeps the best.

Recipe: fix part of a model's texture#

Using Atelier, the back of <mannequin>'s head has brown hair it shouldn't: make it skin.

model_texture_edit (free) recolours the texels in a colour range (select: hue in degrees, saturation and value 0–1) to a colour (to: '#e6bea0'), or to the median of another range (sample, such as the face's skin), keeping their shading and feathering the edge. Both the model and its rig get new files (the rig carries its own copy of the texture), and the old model stays in its history. dryRun shows the texture before and after without writing. To choose the texels by hand instead of by colour, paint them on the Model page's Texture tab (below).

Recipe: share a model between assets#

Using Atelier, give <body-staff> and <body-visitor> the mannequin's model and rig.

model_share { from, to } (free) copies the GLBs and clips into the other asset's models/ and gives it the record, front and fit included, so its renders and Ludo guide videos have the same body. The model it had stays in its history. If the canvases differ, run model_fit_view on it after.

A proxy rotation's model (generate_rotation { method: 'proxy' }) counts as the asset's model too, so there's no need to pay for another one.

Recipe: render the directions#

Using Atelier, render <car> in 32 directions from its model and show me the frames.

generate_rotation { method: 'model', directionPreset: 'yaw-32' } renders every direction and normalises them straight away. A preset replaces the asset's directions; east-facing ones are flipped from west-facing ones if the asset flips (they're mirror images of the model, so that's exact for symmetric objects). Give a list in directions instead to render only some directions.

What happens to each render depends on model.output, whose default follows your render:

output Default for Cost You get
direct prerendered-3d Free The render as it is: smooth, lit by the model's own textures
pixel pixel Free The render, then the asset's pixelate recipe and the palette (Atelier adds a recipe if there's none)
redraw painted One edit per direction Each render repainted in the source's style by an edit model (OpenAI, Ludo, or Qwen-Image-Edit with provider: 'replicate', about $0.03), then laid back onto the render's outline so every direction keeps one scale
  • Several directions to an edit: model.perImage: 4 (experimental) puts four renders side by side in one image, so they're repainted alike, and slices them back. Qwen keeps the image's shape; OpenAI draws square or 3:2, so 4 suits it.
  • Pixel art by PixelLab: model.pixel: 'pixellab' (experimental) sends each render to PixelLab's /image-to-pixelart (about $0.02 a direction) instead of the local pixelate recipe.
  • Blender: model.engine: 'blender', or render.engine: 'blender' in atelier.json for every render, lights the model with Cycles and casts real soft shadows. It needs Blender installed (SETUP); its frames land on the same pixels as the built-in renderer's. Rigs always render built-in.

Redraws are checked. Each redraw's outline is compared with its render's. Below 90% overlap, the warning names the direction: redraw it again, or use direct for it. How well a painted look survives across 32 redraws is untested, so try a few directions before paying for all of them.

Mind the canvas. If a render reaches the canvas edge, the warning says so: raise the pivot and baseline, make the canvas bigger, or pass a smaller model.scale.

Recipe: the model's own shadow#

Using Atelier, give <car> the shadow its model casts.

Every render from a model also writes the model's shadow on the ground beside it, cast by the style guide's light (light.direction), so it falls the same way on screen in every direction, flipped ones included. drop_shadow { shape: 'model' } bakes it under the frames at opacity, re-applied by every normalise like any effect. Blender's shadows are soft; the built-in renderer's are a little blurred, and hard in pixel art. Directions not rendered from the model get no shadow, with a warning.

Recipe: normal maps from the model#

Using Atelier, give <car> normal maps from its model.

normal_map { method: 'model' } (free) uses the model's own surface directions for every direction rendered from it: exact for direct and pixel frames, and close for redrawn ones. Directions that weren't rendered (a hand-drawn still you kept) fall back to the bevel. They're rebuilt by every normalise, like any normal map.

The Model page#

Open it from Model on an asset's page (or its Model and rig tab, or Studios), or ask Claude to open it for you (human_model). Everything on it is free and saved as you go.

  • Orbit view: drag to turn the model, scroll to zoom. Game view snaps to the game's camera at the selected direction.
  • Front: turn the model until the ring's s shows its front, then Save front. The ±90° and 180° buttons fix a model that came back turned.
  • Every direction: a ring of thumbnails, one per direction (the asset's, compass-16 or yaw-32), rendered live as you turn the front. Click one to select it.
  • Lit preview: the selected direction under one light. Move the mouse over it to move the light.
  • Fit: the source with the render over it, as an onion skin or a difference. Drag the model to move its ground point (the cross), and drag the square above it, or scroll, to scale it; or type pitch, turn, scale and offset. Watch the overlap change; Save fit, or Fit automatically to search again.
  • Render directions: render and normalise the asset's directions, or a preset, as direct or pixel frames, by the built-in renderer or Blender. Redraw… queues a task for Claude instead, because redraws are paid.
  • Report card: Audit directions, Score the model and, after a tournament, Score … and keep the best. It shows where each still was drawn (with Rename or Keep as reference for one drawn as another direction), each still beside the model at its angle with the overlap, the total and the flat-model numbers, and the earlier models with their scores.
  • Texture: paint over the part of the lit render to change (choose the direction on the ring), then make it a colour, a colour picked on the model (Pick colour), or the fitted still's own colours, laid on through the fit. Preview shows the texture before and after; Apply writes a new model and keeps the old one in the history.

Building a model from boxes#

For hard-surface props (a baler, a crate, a cabinet), simple exact geometry can beat a generated mesh. The Box editor tab places boxes, cylinders and spheres over the still, seen at its fitted view:

  1. + Box, + Cylinder or + Sphere adds a shape standing on the ground.
  2. Drag to move the selected shape over the ground; Shift-drag to raise or lower it. Type exact positions, sizes and turns in the fields. On the ground and On the one before stand a shape on the ground or on the previous shape.
  3. Save as the model. The still is projected onto the shapes as their texture, so the faces it shows look like the sprite. Faces it never showed take the shape's Unseen colour, so a redraw knows to invent them.

The saved model replaces the asset's model, with its fit set to the view you placed the shapes at.

Costs and troubleshooting#

Problem Fix
"has no 3D model yet" Run generate_model, or build one from boxes on the Model page.
The fit overlaps less than 80% The still may be cropped, posed differently from the model, or drawn with perspective. Check the overlay; fix the pitch if you know it; nudge the fit on the Model page.
Front and back swapped Set the front on the Model page (+180°). The fit then keeps it.
The fit says the still was drawn far from the asset's camera Give the kind a camera (views.byKind), the asset its own (asset_update { view }), or change the asset's kind to one whose camera it matches.
The fit says the still looks turned from its front The still wasn't drawn facing its direction, or the front set by hand is wrong: check the overlay and the ring on the Model page.
The model renders too dark Run model_fit_view (it measures model.colour.gamma), or set the gamma by hand.
The model is flat from the side Try Ludo's hero, or a multi-view model with the asset's own back and side stills (model: 'hunyuan3d-mv', views: 'auto').
Went back to the wrong model asset_revert lists model and rig generations; restoring one keeps the current model in the history.
A direction is cut off The model reaches past the canvas: raise the pivot and baseline, enlarge the canvas, or pass a smaller model.scale.
A redraw's outline strayed Redraw that direction again, or render it with output: 'direct'.
The audit says a still was drawn as another direction Rename it to that direction, keep it as a reference, or draw the direction again. If every still is off the same way, fix the front instead.
"render.engine is "blender" but Blender isn't installed" Install Blender (SETUP), set ATELIER_BLENDER in .env to its path, or set render.engine back to builtin.
"no model shadow" after normalising That direction wasn't rendered from the model: render it (generate_rotation { method: 'model' }).
"Replicate's Qwen edit takes no mask" Masked edits go to openai, ludo or pixellab.
"needs KHR_draco_mesh_compression" The GLB is compressed. Re-export it uncompressed (Blender's glTF export with compression off).

Making the model (and redraws) are the only paid steps. Fitting, the audit, scoring, rendering any number of directions by either engine, direct and local pixel output, shadows, normals and the Model page are all free.

Next: 3D motions, which use the same camera.

Found a mistake? Edit this page on GitHub.