Files
raea/docs
shinyobjectz 559b23482f Safe defaults: text keeps out of the app's UI zones, talking clips move off words
Round 22's ad cuts spent most of their render passes on two kinds of error that the goal check found only after a
full render: text in the app's UI zones (the floor's safe-area rule) and clips whose in or out cut a word (the sound
pack's edit points). This makes the SDK's defaults avoid both.

Text: uiZones(width, height, {platform, shape}) is the floor's own table (apps/check/text/src/lib.rs zones), and
useUiZones() reads it for the composition. <SafeArea> is a layer over the frame inset by the zones, for text placed by
hand. <Region> now keeps its bands out of the zones by default: its edges were 0.08 H and 0.80 H, inside the 9:16 top
and bottom zones, and its sides a symmetric 65 px, inside the 140 px right-hand zone. keepOut={false} gives the old
bands for a part placed there on purpose, and platform picks a platform's zones.

Clips: a <Video> placed straight in the edit's tree (under an AbsoluteFill or a Series, in its Sequence) on a take
with its words beside it (TAKE.words.json, or footage/TAKE.words.json for a take in media/) moves in its take by the
least amount within 0.4 s that leaves neither end inside a word, judged as the sound pack judges it. In and out move
together, so its place and length in the edit stay and nothing freezes. Clips of one take that play on from each other
(a take split only to reframe it) move together, so the take plays on unbroken where they join; this is why the move
is made where the clips are placed (AbsoluteFill and Series look through their children) rather than by each Video,
which can't see the clips it joins. Each move is written to the render's log once, and the element carries
data-raea-snapped. snap={false} keeps a clip where it is; snap={true} moves a Video on its own where the tree doesn't
reach it.

Tested: bun test conformance (776 pass; the 6 that fail fail the same on main), with new tests in
safe-defaults.test.tsx and the Region tests updated to the new bands. On the three round 22 projects' render manifests
and take words, the clip snapping takes the real cut ends inside words from 24 to 8, 22 to 6 and 2 to 2, and keeps all
65 joins between continuous clips unbroken. On a Fly box, raea 0.1.17-rc4 with this sdk/video overlaid (its files were
identical to main's before the change) rendered a test edit: the caption row placed on the frame is flagged in the
right-hand zone and the same row inside SafeArea is not, a Region's bands are clear, the clip whose in cut a word
plays 300 ms earlier (sounds.clips at 10.2) with the move in the render's log, and the reframed pair is left alone.
The SDK reference pages are regenerated for the new exports only.
2026-12-04 10:21:13 -08:00
..
#165: an <R3F> scene lit by PMREMGenerator.fromScene(new RoomEnvironment(), sigma) is lit by that room, as three lights it. Since #131, fromScene handed back a stand-in that raea left out with a warning, because raea's <Environment> and its engine took panorama files only: the scene was drawn with no environment, so a box three draws 255,195,160 on its front face came out 136,76,58, and anything the room alone lights was near black. <Environment> now takes room (three.js's RoomEnvironment, made with no file) and blur (fromScene's sigma) in place of src. The engine makes the room itself (raea-sys-environment room.rs): RoomEnvironment's room, boxes, light boxes and point light at three r185's sizes and strengths, each direction from fromScene's cube camera traced to what it hits and shaded with three's Lambert, GGX and light falloff, blurred by sigma as fromScene's two half blurs do, then filtered like any panorama; runtime/look names it in env_srcs as room:SIGMA. On the R3F side, fromScene of a RoomEnvironment returns a texture marked with its sigma, which lights.ts turns into <Environment room blur> with the scene's environmentIntensity and rotation, and as the background when the room is that too; fromScene of any other scene, and fromCubemap, are still left out with a warning. The other way round, src/three (room.ts) draws <Environment room> as RoomEnvironment through the renderer's PMREMGenerator, and the source export writes it so. Tests: room.rs checks the room's light at 14 directions against three's own RoomEnvironment object (within 1e-3), the blur and the source name; runtime/look's camera test reads room sources into env_srcs; the envmap conformance test and test/errors.test.tsx hold the props and the conversion, and export.test.tsx the export. test/room/check.sh renders test/room/room.tsx and holds three pixels within 8 levels of three's, which test/room/three.ts works out on the CPU with three 0.185's PMREM and MeshStandardMaterial shading: #131's box face is 255,189,155 (three 255,195,160; 136,76,58 before), and two grey boxes lit by the room alone are 137 and 125 (three 140 and 127; 23 and 19 before). Left open: fromScene's options.position is drawn from the origin, with a warning, and the light meter does not count a room. Filed as R3F15b in docs/r3f.feature.
2026-11-16 17:29:56 -08:00
2026-10-31 13:15:29 -07:00
RR2: the camera changes per frame. <Camera3d is_active> (Bevy's Camera field) says which camera draws: each frame's first active camera in the tree is the piece's, the others are dropped from that frame with their depth of field and ambient, and the camera row's shot column steps where another camera takes over (raea-runtime-look active.rs). A frame where it steps is a cut (raea-sys-frame Shots), drawn as a shot rendered alone draws its first frame: motion blur's step before it draws the frame itself rather than the other camera's, with a plugin too, and Solari's and the path tracer's history reset. Play sends the shot on its live camera row (0 again when the first camera is back), and a live engine takes a changed shot as a cut (Moved). The step to f - 1 that motion blur needs never ran on any engine, because the Engine's reads count as a Bevy plugin; renders were right anyway (export draws f - 1 before f), and play blurred cuts from the other camera's frame. bench/rerender/rr2.sh on cams.tsx (cameras A, B, A with parts moving): without motion blur the piece equals its three shot compositions 120/120; with it the frames before the first cut and both cut frames are identical and the rest differ by the blur's grain alone (seeded by the frame number, SSIM >= 0.999439; one camera moved instead: 0.810 and 0.785 at the cuts); each shot of the piece rendered alone with --at is identical 120/120; play's 7 held seeks onto and across the cuts equal the render. The craft guide's rule 6 and limits.md say how to cut between cameras
2026-11-10 15:40:43 -08:00
2026-10-31 13:15:29 -07:00
2026-11-06 20:49:59 -08:00

docs

Documentation that spans more than one folder.

  • settings.md: every setting raea reads (the agent's model provider, the optional API for generated music and speech, checks), and where they go.

Each folder's own README describes that part of the code. Behaviour specs written in Gherkin sit beside the code they specify, for example sdk/shell/shell.feature and sdk/raea/spec/motion.feature.