mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
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.
42 lines
2.0 KiB
Markdown
42 lines
2.0 KiB
Markdown
---
|
|
title: "raea track"
|
|
summary: "Solve a clip's camera on this machine, so 3D can stand in its world with <Matchmove>."
|
|
order: 66
|
|
sources: ["runtime/react/src/scene/track.rs", "io/assets/src/lib.rs"]
|
|
---
|
|
|
|
`raea track` solves the camera that filmed a clip: where it was and where it looked on each frame, and where the
|
|
ground is. `<Matchmove src=...>` in a composition uses the solve to put 3D into the shot. The solve is kept in the
|
|
project's asset store with its settings, so the render that asks for the same clip and settings finds it already made,
|
|
and the other way round. The solver installs itself the first time it's used.
|
|
|
|
```sh
|
|
raea track media/street.mp4 --from 2 --seconds 6
|
|
raea track media/table.mp4 --subject 0.3,0.4,0.4,0.3 --height 1.2 -o table.solve.json
|
|
```
|
|
|
|
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
|
|
|
|
## Usage
|
|
|
|
```sh
|
|
raea track CLIP.mp4 [--subject X,Y,W,H] [--from S] [--seconds N] [--height M] [--fov DEG] [--smooth F] [--dir EDIT_DIR] [-o OUT.json] (the clip's camera solved, for <Matchmove>)
|
|
```
|
|
|
|
Headless: it needs nothing running and opens no window. Takes up to 1 argument besides its flags.
|
|
|
|
## Flags
|
|
|
|
| Flag | Takes | What it does |
|
|
| --- | --- | --- |
|
|
| `--dir` | `EDIT_DIR` | The edit's folder, whose asset store keeps the solve (the current folder by default). |
|
|
| `--fov` | `DEG` | The camera's vertical field of view, for a shot with too little parallax to solve it (0, the solver's own, by default; 40 when it has none). |
|
|
| `--from` | `S` | Start the solve this many seconds in. |
|
|
| `--height` | `M` | The camera's height over the ground in metres, which sets the scene's scale (1.6 by default). |
|
|
| `--seconds` | `N` | How many seconds to solve (to the clip's end by default). |
|
|
| `--smooth` | `F` | Frames of Gaussian smoothing on the camera's path (1 by default; 0 for none). |
|
|
| `--subject` | `X,Y,W,H` | The subject's box on the first frame, in 0 to 1 of the frame, to solve around. |
|
|
| `-o` | `OUT.json` | Also write the solve to this file. |
|
|
|
|
<!-- generated:end -->
|