Files
shinyobjectz bbd7369548 One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done; raea make is the asset tools
The rules are raea/goal's (sdk/goal), run by `raea goal check` at four moments: the hook after a save, every
render's end, raea cloud's publish, and the Stop hook. Rust's cut and goal gates and the box's word, sound, frame and
place checks are packs (MK30-MK39); runtime/cut-plan, runtime/goal-plan, raea make status and the box's check code
are gone with no alias (MK41).

brief.ts is the one registered root (MK43): raea runs it, and every file that imports raea must be reached from it
(the registered check, an error at publish and done). Its tasks are its `plan` (MK44), read from its run and written
back where each is written by `raea goal tasks`, the one path for the app, agents and the box. Its `goal` is one
goal or a workflow of several (MK46), each with its step, after and rules, checked and reported alone. Taste lines
and signed asks run inside the loop (MK47).

`raea goal check|tasks|seen|judge|gates|next` is the loop; `raea make clothes|motion|solid|wear|splat|physics|bake|
sao|tokensynth|sounds|component|blockout|...` the asset tools (MK45). Old names are refused with where they went.
docs/make.feature is docs/goal.feature; tools/legacy-names.sh holds the old names out.

raea's Node mode on JavaScriptCore now gives a CommonJS package's names as named exports (React's jsx), loads a
file a tool imports by URL, keeps process.exit's code from a promise callback, and reads stdin as fd 0, so the goal
runner runs on the shipped binary.
2026-11-29 16:02:31 -08:00

48 lines
2.5 KiB
Markdown

---
title: "raea make splat"
summary: "Train footage of a real place or thing into a 3D Gaussian splat for <Splat>, on this Mac's GPU."
order: 107
sources: ["apps/tools/src/splat.rs", "io/assets/src/splat.rs"]
---
`raea make splat train` turns a video, or a folder of photos, of a real place or object into a Gaussian splat that
`<Splat src>` draws in a 3D scene. It picks frames, solves the cameras with COLMAP and trains with Brush on Metal.
`raea make splat setup` installs those tools. Like a solve, a splat is kept in the asset store by its footage and
settings, so the same footage trains once.
```sh
raea make splat setup
raea make splat train media/shoe.mp4 -o shoe.ply --matte black
raea make splat train media/room.mp4 -o room.ply --from 3 --seconds 20 --frames 300 --steps 30000
```
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
## Usage
```sh
raea make splat train VIDEO|IMAGE_DIR -o OUT.ply [--frames 150] [--steps 20000] [--max-res 1600] [--from S] [--seconds N] [--max-splats 2000000] [--matte none|black] [--match sequential|exhaustive] [--credit TEXT] [--license TEXT] [--dir EDIT_DIR]
raea make splat setup (footage trained into a Gaussian splat for <Splat>; setup installs its tools)
```
Headless: it needs nothing running and opens no window. Takes up to 2 arguments besides its flags.
## Flags
| Flag | Takes | What it does |
| --- | --- | --- |
| `--credit` | `TEXT` | Who made the footage, written into `OUT.ply.json` beside the splat. |
| `--dir` | `EDIT_DIR` | The edit's folder, whose asset store keeps the splat (the current folder by default). |
| `--frames` | `150` | How many pictures to train on, 8 to 2000. |
| `--from` | `S` | Start this many seconds into a video. |
| `--license` | `TEXT` | The footage's licence, written into `OUT.ply.json`. |
| `--match` | `sequential\|exhaustive` | How COLMAP matches pictures: `sequential` (neighbours only, the default for a video over 60 frames) or `exhaustive` (every pair). |
| `--matte` | `none\|black` | `black` for an object filmed on black, trained alone without its background. |
| `--max-res` | `1600` | The long side the pictures are scaled to, in pixels (256 to 4096). |
| `--max-splats` | `2000000` | The most splats the result may have. |
| `--seconds` | `N` | How many seconds of a video to use (to its end by default). |
| `--steps` | `20000` | Training steps, 100 to 200000: more is sharper and slower. |
| `-o` | `OUT.ply` | Where the splat goes, with its sidecar `OUT.ply.json`. |
<!-- generated:end -->