Files
shane d873402ac5 raea goal is the loop, raea make the asset tools (#269)
One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done (goal check, tasks, judge, seen, gates, next); the brief's contract is goal: (one goal or a list, a workflow inline), and its plan is plan:. raea make is making a finished asset: character, clothes, motion, solid, wear, splat, physics, bake, sounds, component, the kit pipeline and shots. Instruments (check, judge, ask, world, scene faults, light check) stay top-level. With it: the montage pack (MK48-MK51), JavaScriptCore fixes raea goal needs (CommonJS named exports, reserved words too, dynamic import of file URLs, process.exit from a promise, stdin for -), raea-cli-goal and raea-cli-refused split out of raea-cli, and skills at raea-skills 105aede.
2026-11-29 18:43:09 -08:00

1.8 KiB

title, summary, order, sources
title summary order sources
raea make wear Bake what weathers a model: where rain reaches and runs, what the sun sees, edges, hollows and touch, as maps raea/wear reads. 110
runtime/wear/src/lib.rs
systems/weathering/src

Weathering in raea has causes. A bake traces them through a .glb's own geometry once: rain and the sky, the sun's path over the year, edges and hollows, the height over the ground, where hands and feet touch, and where run-off carries soot, rust or copper and leaves it. It returns the model with a second UV set and four maps over it, which raea/wear's recipes read. A composition gets the same bake from the native call wear.bake; raea make wear bake makes it from a shell, in the current folder's asset store. The same request gives the same files, and a second run reads the first's.

raea make wear bake corner.json -o corner.bake.json

A request names the model and, optionally, the world it stands in and the class of each of its materials:

{
  "src": "/media/corner.glb",
  "env": { "density": 8, "walk": ["ground"], "sun": { "lat": 52.5 } },
  "classes": { "facade": "plaster", "plinth": "sandstone", "ground": "ground" }
}

Usage

raea make wear bake REQUEST.json [-o OUT.json]   (a .glb's weathering causes for raea/wear: the model with a second UV set and its cause maps, made once in the asset store)

Headless: it needs nothing running and opens no window. Takes up to 2 arguments besides its flags.

Flags

Flag Takes What it does
-o OUT.json Also write the result to this file, in place of printing it.

See also