3D models jobs
A 3D models job in the Jobs tab builds the 3D models a project needs, then animates the ones that move. Each model is code: a build module that check_3d exports to a GLB, checks and renders, the same way the Code tab's agent makes one by hand. It does every model in a list, then writes a report.
Tell it what to make
The job reads a spec, models.json, from Models spec (by default assets/haruspex-models.json). Each entry gives:
- an id and a title, and a description of how it looks;
height_m, its height in metres, so the whole set shares one scale;parts, the named pivots at its joints, for a model that moves. A planned biped getsPelvis,Spine,Neck, andShoulder,Elbow,Hand,Hip,Knee,Footper side (Hip_L); a quadruped getsShoulderorHip,Knee,Footper leg (Knee_FL,Foot_HR).Pelvismoves too, so hips can drop;clips, each with a name, a length in seconds, whether it loops,airbornewhen it leaves the floor and its name doesn't say so, and what happens in it.
A static prop such as a crate or a tree has no parts and no clips. If the spec file doesn't exist, the run writes one from What to make, on the job's own model. A spec that exists is read as it is and never rewritten; if it has problems, the run stops and lists them.
Guided planning can write the spec for you: see "From guided planning" below.
Choose the two models
Building and animating are different skills, so the job has two model rows:
- Creation model builds every model.
- Animation model writes the clips for every model that has them.
Each row is Same as this job until you press Change… and pick another model. The job's own model (under Model) only writes the spec. A row whose model can't see images says so in one line. It still works, since check_3d reports in text too.
How a run goes
- Spec: read
models.json, or write it. - Create: for each model, the creation model writes
<id>.jsand checks it withcheck_3duntil the checks pass. A model with clips is built as rigid parts under the named pivots, nested parent to child (Pelvis > Hip_L > Knee_L > Foot_L). - Animate: for each model with clips, the animation model writes
<id>.anim.js, which returns its clips, and checks each clip's motion sheet. It never changes<id>.js; if it does, the run puts the file back. - Report:
REPORT-models.mdbeside the spec lists each model as done, needs work or skipped, with its render sheet, clip sheets and open problems. - Hand off: a job that a plan chained starts the coding run, and tells it which models (and images) were not made. A chained job you start by hand hands off too, unless you clear Start the coding run when done.
A model is done when check_3d reports no errors, glTF validation included, and its height is within 10% of the spec. Clips are done when every clip the spec names is there and its motion check reports no errors. Each model and each clip set gets a few turns (Limits → Turns per model). Every check is kept as an attempt, and the best stays: done first, then one that built, then the fewest problems. Out of turns, the model is marked needs work and the run moves on.
Attended or unattended
Run mode Attended stops once, after creation, and shows each model's render sheet. Answer Keep, Skip it, or type a note to rebuild it with that note before animation starts. Unattended never stops. A run that a plan chains is always unattended.
Textures and noise colour
Both are off by default, and each model gets one plain colour per material. Noise colour lets the creation model vary colours with the kit's noise: good for rock and bark, blotchy on creatures. Allow textures lets it draw tiling textures in code and map them with kit.texture (see the textures page). Images from the asset generation job are never used on models.
From guided planning
Turn on Also generate 3D models in a guided planning job. After the asset stage, a 3D models stage reads the finished plan and writes plan/<slug>/models.json with the plan's ids, and adds a "3D models" table to overview.md. 3D creation and 3D animation under the switch choose the new job's two models; each is Same as this job (the planning job) by default.
- In Unattended plan + code, the run starts the 3D models job, unattended, and it starts the coding run when it finishes. With Also generate assets on too, the order is plan, assets, 3D models, coding. If a run in the chain can't start, the next one starts instead.
- In every other mode, the run creates the 3D models job, Attended and not started, for you to start from the Jobs tab.
- Overview only writes no
models.json, since there is no plan to read. - Allow textures and Noise colour are off in the job it makes; turn them on there.
Where the files go
Every model gets its own folder, assets/generated/model/<id>/:
<id>.js— the build module.<id>.anim.js— the clips, when the model has any.<id>.glb— the model with its clips, ready for the game to load.sheet.pngandclip-<name>.png— the render and motion sheets.attempts/create-NN/andattempts/animate-NN/— every attempt's file, GLB, sheets and problems. The report names the one kept. To compare them, see theviewerspage.
What it doesn't do
- No skinned meshes or bones: rigs are rigid parts under pivots.
- No editing models made elsewhere, such as in Blender. Use
check_3din the Code tab for those. - No schedule: start a run by hand, or let guided planning chain it.
- No review after animation; the report shows each clip's motion sheet instead.