Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
CH45: raea clothes in the manual's CLI reference (its group, every flag described, an outfit layer by layer) and in the characters guide, so an agent knows when to use it
shinyobjectz11931d495880
diff --git a/docs/manual/reference/cli/blender.md b/docs/manual/reference/cli/blender.mdindex 3cf59e02..26c33f6c 100644--- a/docs/manual/reference/cli/blender.md+++ b/docs/manual/reference/cli/blender.md@@ -1,7 +1,7 @@---title: "raea blender"summary: "Run a Blender Python script headless, with raea's library of mesh scripts: convert, decimate, repair, split, bake, rig, cloth."-order: 104+order: 105sources: ["apps/tools/src/blender.rs", "apps/engines/src/blender_ts.rs"]---diff --git a/docs/manual/reference/cli/clothes.md b/docs/manual/reference/cli/clothes.mdnew file mode 100644index 00000000..8acbd623--- /dev/null+++ b/docs/manual/reference/cli/clothes.md@@ -0,0 +1,44 @@+---+title: "raea clothes"+summary: "Clothes for SOMA's body from words: make has an image model (flux_2_pro, one picture a view, at most N cents each, 10 unless said) dress SOMA's grey mannequin from the front, back, left and right, then measures the pictures onto SOMA's own vertices as assets/clothes/NAME.json, its pictures in assets/clothes/NAME/."+order: 104+sources: ["engine/cli/src/cli.rs"]+---++Clothes for SOMA's body from words: make has an image model (flux_2_pro, one picture a view, at most N cents each, 10 unless said) dress SOMA's grey mannequin from the front, back, left and right, then measures the pictures onto SOMA's own vertices as assets/clothes/NAME.json, its pictures in assets/clothes/NAME/.++<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->++## Usage++```sh+raea clothes [make NAME "WHAT IT IS, AS WORN" [--over UNDER[,UNDER...]] [--max-cents N] | remeasure NAME | cover NAME --parts PART[:SHARE],... --colour #RRGGBB [--stand MM] [--over UNDER] | wear OUT_DIR GARMENT... [--body DIR]] (clothes for SOMA's body from words: make has an image model (flux_2_pro, one picture a view, at most N cents each, 10 unless said) dress SOMA's grey mannequin from the front, back, left and right, then measures the pictures onto SOMA's own vertices as assets/clothes/NAME.json, its pictures in assets/clothes/NAME/; --over draws it over garments already made (innermost first), as the next layer, a garment made by procedure drawn on the mannequin first; remeasure measures a garment again from its kept pictures (after raea's measuring changed), nothing drawn or paid for; cover makes one by procedure in the same file, no picture: the skin of the parts named (hips, waist, torso, chest, neck, head, upperArm, foreArm, hand, thigh, shin, foot, toes; a limb's SHARE is how far along it from its top), in one colour, MM off the skin (6 unless said); wear puts garments on a body, innermost first (each GARMENT a name or its .json): OUT_DIR/NAME.glb each, with OUT_DIR/body.glb the body without the skin wholly under cloth; --body DIR another SOMA body folder (a headless one for a head part); alone, the project's garments. The first use fetches SOMA's body (NVlabs/SOMA-X, Apache-2.0) into raea's models folder and needs Blender: raea setup blender)+```++Headless: it needs nothing running and opens no window. Takes any number of arguments besides its flags.++## Flags++| Flag | Takes | What it does |+| --- | --- | --- |+| `--body` | `DIR` | With `wear`: dress this SOMA body folder (body.glb, skeleton.json) instead of SOMA's own, such as a headless body that a generated head joins at the collar. |+| `--colour` | `#RRGGBB` | With `cover`: the garment's one colour. |+| `--max-cents` | `N` | With `make`: the most one of the four pictures may cost, in cents (10 unless said). |+| `--over` | `UNDER` | With `make`: draw the garment over garments already made, innermost first, comma-separated, as the next layer. With `cover`: lay it over one garment, a layer's thickness off it. |+| `--parts` | `PART` | With `cover`: the body's parts the garment covers, comma-separated; a limb takes a share, how far along it from its top (`foreArm:0.5` is the half nearest the elbow). |+| `--stand` | `MM` | With `cover`: how far the cloth stands off the skin, in millimetres (6 unless said). |++<!-- generated:end -->++## An outfit, layer by layer++```sh+raea clothes cover tee --parts chest,torso,waist,upperArm:0.45 --colour "#e8e4da"+raea clothes cover shorts --parts hips,thigh:0.55 --colour "#2b3a55" --stand 7+raea clothes make overshirt "a red and black buffalo-check flannel overshirt, worn open" --over tee,shorts+raea clothes wear assets/characters/flannel tee shorts overshirt+```++The first two are made by procedure and cost nothing. The third has an image model draw the mannequin's four views over the first two, one picture a view (about 20 cents), and measures them onto SOMA's vertices; look at its pictures in `assets/clothes/overshirt/views` before you wear it. `wear` writes a body folder and prints the lines that put it in a composition: `registerBody` with the folder, and each garment's `.glb` as one of `<Character>`'s `parts`.++A garment is a file on SOMA's template vertices, so the same file dresses every SOMA body. It lies on the skin at a measured stand-off: cloth that hangs free of the body (a skirt, a coat's tails, a shirt hanging over the hips) is not made by this command yet.diff --git a/docs/manual/reference/cli/godot.md b/docs/manual/reference/cli/godot.mdindex 606c41a9..53407548 100644--- a/docs/manual/reference/cli/godot.md+++ b/docs/manual/reference/cli/godot.md@@ -1,7 +1,7 @@---title: "raea godot"summary: "Run a TypeScript script against Godot's whole API in a headless Godot with GodotJS, record what it draws as frames, or open the editor on the project."-order: 105+order: 106sources: ["apps/engines/src/godot.rs", "apps/engines/src/godot_run.rs"]---diff --git a/docs/manual/reference/cli/index.md b/docs/manual/reference/cli/index.mdindex 9da9aa21..0672fb26 100644--- a/docs/manual/reference/cli/index.md+++ b/docs/manual/reference/cli/index.md@@ -104,12 +104,13 @@ Music read, foley and instruments made on this machine.## Generate and 3D tools-Generated media, physics bakes, Blender and Godot.+Generated media, physics bakes, clothes for SOMA's body, Blender and Godot.| Verb | What it does || --- | --- || [`raea gen`](gen.md) | Generate images, video, music, sound, speech, 3D models and text through made.app, fal, Replicate, OpenRouter, Modal or ComfyUI. || [`raea physics`](physics.md) | Make the bakes <Physics> and <Goo> play: rigid bodies, soft goo, and parts cut out of a .glb. |+| [`raea clothes`](clothes.md) | Clothes for SOMA's body from words: make has an image model (flux_2_pro, one picture a view, at most N cents each, 10 unless said) dress SOMA's grey mannequin from the front, back, left and right, then measures the pictures onto SOMA's own vertices as assets/clothes/NAME.json, its pictures in assets/clothes/NAME/. || [`raea blender`](blender.md) | Run a Blender Python script headless, with raea's library of mesh scripts: convert, decimate, repair, split, bake, rig, cloth. || [`raea godot`](godot.md) | Run a TypeScript script against Godot's whole API in a headless Godot with GodotJS, record what it draws as frames, or open the editor on the project. |diff --git a/sdk/guides/craft/bevy/characters.md b/sdk/guides/craft/bevy/characters.mdindex e68f70b8..46aaafb3 100644--- a/sdk/guides/craft/bevy/characters.md+++ b/sdk/guides/craft/bevy/characters.md@@ -84,6 +84,15 @@ its hands, feet, gaze and seat on the scene's real things, said in the scene's ccarry the speed through: `{ walk, speed, enter: fit.vOut, leave: next.vIn }`. CMU subject 127 is an obstacle run(hurdle 127_25-28, run over a box 127_33-36, duck under 127_29-32, dive and roll 127_23-24, runs, quick stops);49_04-05 leap a gap. `examples/character/course.tsx` is a side-scrolling course.+- Clothes are made for SOMA's body with `raea clothes`, never modelled by hand:+ - `raea clothes cover tee --parts chest,torso,waist,upperArm:0.45 --colour "#e8e4da"` makes one by procedure, for+ nothing.+ - `raea clothes make overshirt "a flannel overshirt, worn open" --over tee` has an image model draw it over the+ mannequin's four views (about 20 cents), then measures it onto SOMA's vertices. Look at its pictures in+ `assets/clothes/overshirt/views` before you wear it.+ - `raea clothes wear assets/characters/dressed tee overshirt` writes a dressed body folder (innermost layer first).+ Register that folder with `registerBody`, and give each garment's glb to `<Character>` as one of its `parts`.+ - A garment lies on the skin, so a shirt drawn hanging over the hips wraps them instead.```tsxconst perf = perform(lib, { at: [0.4, 0, 2], facing: Math.PI / 2, frames: 450, steps: [diff --git a/tools/manual-ref/cli.ts b/tools/manual-ref/cli.tsindex 4cc54d7d..7be0e507 100644--- a/tools/manual-ref/cli.ts+++ b/tools/manual-ref/cli.ts@@ -30,7 +30,7 @@ const GROUPS: [string, string, string[]][] = [["Check", "What's wrong before anyone watches it.", ["check", "judge", "fingerprint", "findings", "scene", "world", "solid", "next", "doctor", "hook", "traces"]],["Footage", "Takes, cuts and the camera, from your own media.", ["media", "cut", "frame", "track", "splat", "mezz", "neural"]],["Sound", "Music read, foley and instruments made on this machine.", ["song", "sounds", "sao", "tokensynth", "setup-audio"]],- ["Generate and 3D tools", "Generated media, physics bakes, Blender and Godot.", ["gen", "physics", "blender", "godot"]],+ ["Generate and 3D tools", "Generated media, physics bakes, clothes for SOMA's body, Blender and Godot.", ["gen", "physics", "clothes", "blender", "godot"]],["Agents and setup", "What an agent reads and shows the person, and the tools raea installs.", ["guide", "context", "notes", "show", "skill", "skills", "setup"]],]/** A verb's page: VERB.md, but index.md is this section's own page, so raea index's is indexer.md */