Haruspex

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:

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:

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

  1. Spec: read models.json, or write it.
  2. Create: for each model, the creation model writes <id>.js and checks it with check_3d until 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).
  3. 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.
  4. Report: REPORT-models.md beside the spec lists each model as done, needs work or skipped, with its render sheet, clip sheets and open problems.
  5. 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.

Where the files go

Every model gets its own folder, assets/generated/model/<id>/:

What it doesn't do