Commit Graph
5 Commits
Author SHA1 Message Date
shinyobjectz 2aa85c456a SG2: footage, splats, sequences, fog, fires and grass are rows by identity, and spawned again when what they are changes
A live frame (every mp4's 3D) gave these kinds the id of their place in the frame, so a plate mounted as another
unmounted took the other's row and kept its clip, as a RichText once kept another's words. They are rows by identity
now, as meshes and text blocks are (live.rs BY_IDENTITY), and the columns each takes whole from its first frame (a
plate's clip, a splat's or a sequence's file, a fog's density texture, a fire's simulation, a field's grids) spawn it
again when they change, in a live frame and in a still's tracks alike (core/scene kept.rs WHOLE).
a_new_plate_never_takes_an_old_ones_row holds both.
2026-11-21 19:09:56 -08:00
shinyobjectz 83d8f8e305 SG1: a 3D part whose shape or words change is spawned again; SG2: a text block keeps its own row
An mp4 draws its 3D live, frame by frame (raea-runtime-scene live.rs), and the engine reads a part's shape, its
words and its surface's maps only when the part's row is spawned. So a Sphere whose radius grew, a RichText whose
words changed and a Ribbon's newest box all held their first frame's: curves drew as dashes, counters stayed at
"0.0 MB" and typed lines stopped half-typed. A text block also kept the id its frame gave it (text0, the frame's
first block), so a block mounted as another unmounted took over that one's row and drew the old words in its own
glyphs' colours.

- core/scene kept.rs: which columns a row keeps from its spawn, per kind (kept_col, respawns); a part's kept inputs
  as one number (spawn_sig); tracks cut where those change (split_kept); KeptInputs for the fast path. The live
  column tables moved here from live.rs, which is at its size limit.
- live.rs diff: a row whose kept columns changed is dropped with the rows under it (glyphs, components; those first,
  SG4) and spawned again under the same id. Text blocks are rows by identity, as meshes are. A glyph's colour is sent
  as col_r/g/b.
- fast.rs: the fast path takes the full path when a part's kept inputs changed.
- A still's rows (and RAEA_3D=program's) cut a part's track where its kept inputs change.
- runtime/live/tests/stage_guards.rs: 5 tests (a shape spawned again, new words laid out again, a new text never
  takes an old one's row, a glyph's colour, a still's own shape and words). live_emissive and live_sheet pass.
- docs/stage-guards.feature: the diagnosis and the guards SG0-SG16.
2026-11-21 15:57:02 -08:00
shinyobjectz 5d320bc96e Live 3D: a mesh's emissive colour is sent the frame it changes, with its strength (#106)
A video draws its 3D live, and a mesh's row keyed only the emissive strength, and only where the first frame glowed:
a part dark on its first frame stayed black for the whole video, and a change of hue was ignored (stills were
right, since their first frame is the frame). The full path now sends the colour whenever it differs from what was
sent (none is black), with the strength (0 once black); the fast path hands such a frame to the full one, and its
strength rule reads the sent colour, not the first frame's. runtime/live/tests/live_emissive.rs steps a ball from
dark to blue to orange to dark, under RAEA_LIVE3D_CHECK.
2026-11-12 09:07:30 -08:00
shinyobjectz d7f2aaf076 An <Instances> keeps one copy of its placements across a render's frames, not one a frame (#84). The SDK sent them inside data-props, so a set whose other props changed each frame (a spin) was parsed whole into each frame's props and every frame's scene was kept (the fed render's frames, the clipping check): 20,000 spheres turning cost 2.1 GB at 120 frames and the issue's 60,000 at 4K 7 GB at 60 and 14 GB at 240. Now the SDK sends them as data-at; raea-runtime-react keeps each part's text as one Arc<str> (AT3D) while it's the same, and Node3 and Item carry it as at; the look compares frames' texts before parsing one (instances_column), and the fast live path compares the Arc (panel_srcs, now shared text). <Entities>' expansion moves to raea-core-scene (entities_nodes) to keep raea-runtime-react under 2000 lines. Measured: the 20,000 spinning, 621 MB and 18.6 ms a frame at 120 frames (was 2,117 MB, 69.7 ms), 645 MB at 480; 60,000 at 4K60, 1.04 GB at 60 frames and 1.22 GB at 240. About 1 MB a frame still grows. A binary from before this, run on this SDK, draws an <Instances> as its one mesh 2026-11-10 16:46:23 -08:00
shinyobjectz 281da9cc10 An ImagePlane plays its sprite sheet and swaps its picture in an mp4 render: a video's 3D is drawn live, frame by frame, and a live frame sent a panel only its placement, visibility and screen values, so the cell frame showed, the src it showed and its sheet's grid stayed at frame 0's for the whole film (a folder of PNGs, made from a program, played them). A live frame now sends a panel's sheet_frame, sheet_cols, sheet_rows and src when they change (live.rs's columns, and the fast path, which leaves a panel whose src changed to the full path: it holds the raw src against the one it last made a row from, so an unchanged one costs nothing); the engine swaps a live panel's picture when its row's src names another (scene3d::Pictures' live, found as spawn finds it). A program keys a part's grid as it keys its cell (it was the first frame's), so a src that changes to a sheet of another grid shows that sheet's cells; a card whose height follows its picture takes the new picture's shape. Found making 0.1.1's app showreel, which worked around it by rendering frames. 2 tests: raea-runtime-look's sheet keys, and raea-runtime-live's live_sheet (raea-runtime-scene is at its 2,000-line limit), where RAEA_LIVE3D_CHECK holds the fast path against the full one; a 30-frame repro reads the right cell and grid at frame 20 in the mp4, the program render and the PNGs. 2026-11-10 03:42:36 -08:00