Commit Graph
51 Commits
Author SHA1 Message Date
shaneandshinyobjectz 14cdac0687 Render memory: halcyon r109 from killed at 24-25 GB to a 7.8 GB peak (RM0-RM10) (#273)
* RM0: each App's meshes and images, CPU and GPU bytes, after every RAEA_MEM_MARKS mark (raea-sys-memtally); docs/render-memory.feature RM0-RM4

* RM1-RM10: halcyon r109's sequence from killed at 24-25 GB to a 7.8 GB peak (footprint 5.5 GB), the look within run-to-run noise

- RM1: materials' maps and Solari's traced meshes on the GPU only (RAEA_KEEP_CPU_ASSETS=1: the control)
- RM2: a sequence's first 3D engine let go before a second opens
- RM5: JS solids deduplicated by expression, their Manifolds in a two-generation cache (192 MB each); solid.free
- RM6: a map whose picture changes by frame is one part and one material, its picture swapped as frames show it
  (raea-sys-material swapped.rs): the pool's 96 water maps were 96 meshes and 186 textures
- RM7: Manifold shapes welded into indexed meshes (4.65 corners a vertex in halcyon; RAEA_NO_WELD=1: the control);
  a held frame settles to the same picture, boiling 0.30% against 0.38%
- the shape text kept out of the store and the Edit (the engine spawns from the program's rows)
- RM8: a BufferMesh of 64 KB or more kept on disk by its content (buffer:@NAME, raea's caches/buffers):
  shape text 274 MB -> 11.8 MB
- RM9: material maps as BC7 with their mips (intel_tex_2), cached by content in raea's caches/maps, any size
  resampled to whole blocks (RAEA_NO_BC=1: the control): GPU images 733 MB -> 282 MB
- RM10: raea-sys-contact's solids as bytes, a count and u16 surface points: 1.27 GB -> 0.37 GB mid-render
- memtally names the biggest GPU images; RAEA_MEM_MARKS prints the program's text by column and shape call
- tools/memprobe: memseq, heapwho/heapseq (malloc stack logging, holders.py), abenv/abseq/steadyab (A/B on one binary)

docs/render-memory.feature has each step's numbers and gates.

* raea-sys-memtally in tools/layers.toml: a system, as the layers gate asks

* Size: render-memory's eight over-limit crates and files allowed once at today's sizes (Shane 11-29, for 0.1.13): the folders hold other lanes' uncommitted GI/RT work, so they're split once that lands

* Fold render-memory's copies into what they copied (the dupes gate, 297/60 back to 293/57): one two-generation cache, raea_core_shape::Generations, for core/shape's meshes and runtime/calls' built Manifolds; swapped maps load their pictures with maps.rs's panel_picture; raea_io_home::write_whole for a file written whole or not at all (the BC7 maps first); spawn_sig(it, swapped) one function, its callers saying which; the store's spawn given its columns. Size allowances taken down to the folded sizes (solid.rs is back under 500)

* Split the five crates render-memory took past 2000 lines, each where it parts cleanly, so the next lane has room (the size and rask gates; the one-time allowance is gone):
- raea-core-tables (core/tables): a row's per-frame tables, from raea-sys-frame (re-exported there as tables)
- raea-runtime-ecs (runtime/ecs): raea/ecs on Bevy's ECS, from raea-runtime-calls (ecs.rs re-exports it)
- raea-sys-toon (systems/toon): toon surfaces and outlines, from raea-sys-material; its shaders keep the embedded path compositions name (raea_sys_material/toon.wesl)
- raea-render-plugins (engine/render/plugins): RaeaPlugins, from raea-render (engine.rs re-exports it as raea_plugins; the imports only it used are gone)
- raea-runtime-kinds (runtime/kinds): the rows of models, panels, decals, plates, fog, fire, splats, mesh sequences and grass, with placement and name_column, from raea-runtime-scene
maps.rs's inline and panel pictures move to maps/pictures.rs (re-exported, 422 lines left)

* Engine::open_in: a live engine (re)opened in its slot, the one there let go first (RM2 in one place, docs/render-memory.feature). raea-runtime-export's five opens go through it, so a fed render stepped again in the page's box keeps its AOVs as its first engine did; aov_on takes the engine in place. raea-runtime-export is back under its planned 2000 (LT1 and LX6 hold the rest)

* Drop the dependencies render-memory's splits left behind (cargo shear, CI's unused-dependencies gate): raea-render's eleven systems crates went with RaeaPlugins to raea-render-plugins, raea-runtime-calls's bevy with raea/ecs to raea-runtime-ecs, raea-sys-material's raea-core-shape with toon to raea-sys-toon. raea-render's cargo-shear ignore goes too: spawn.rs reads a mesh buffer through raea_core_shape::buffer_json now

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-29 16:40:57 -08:00
shinyobjectz abead7eae4 SG1: a ShaderExtension's uniforms follow the frame
A mesh's shader spec was read once, from its first frame, so a ShaderExtension uniform driven by the frame drew
frame 0's value all video long: a card tinted by frame / 89 stayed blue to frame 89, and SG9's frame purity failed
it (30136 pixels differ from the frame rendered alone). Its uniforms now go as own:uniforms rows, as a <Material>'s
do (own_uniforms' ext, for a 3D mesh's material), and own_live.rs packs them into the shaded material's slots when
they change (ShaderExt slots_for, from the names and the struct fields it was built with). The card goes blue,
purple, red, and SG9 passes.
2026-11-21 23:32:43 -08:00
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 84b7659b09 Worn paint is a surface shader of raea's own; raea-sys-wear goes (docs/examples.feature EX9)
MeshStandardMaterial's wear and raea/pbr's <WearExtension> drew with the engine's own MaterialExtension
(systems/wear). They now write the same shader on the public surface hook (sdk/render/src/worn.ts, WORN_WESL: the
same noise, curvature edges, grime, rust and chips, in the mesh's own space), so wear is an author's shader like any
other and raea/wear's weather and the paint wear share one path. A parity scene (sharp, turned and round parts, every
setting) renders the same as before, RMSE 3.8e-5 of full scale. One change: clay draws custom surface shaders as they
are, so worn paint now shows in a clay render, as a ShaderExtension's does.

Deleted: systems/wear, its WearPlugin, its spawn branch, its mesh-row columns, its layer entries, and its type in
the registry snapshot, bevy.gen.tsx and sdk-coverage (reached 1557 -> 1556: the type is gone; wear is still
authored). wear with shader or grid on one material is refused (it was silently dropped). WearExtension keeps its
props, so the guides are unchanged; it carries no @bevy tag of its own now, since its Bevy type is ShaderExtension's.
2026-11-19 09:53:04 -08:00
shinyobjectzandClaude Opus 5.5 fb0fca507f raea-cli and raea-runtime-scene back to 2000 lines (tools/size.sh): each side was at the limit alone
Main and Zach's stack each left the two crates at 2000 lines, and the merge made them 2001. Zach's comment on
export layers / export xml is one line now, like each dispatcher's beside it, and the scene's own-ambient retain is one
line, as the file writes its other one-statement ifs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 09:45:07 -08:00
shinyobjectzandClaude Opus 5.5 f40e458776 Land Zach's layers stack (#167, #170, #171, #172) on main for 0.1.8
raea export layers and layers.json, CapCut drafts written from layers.json with a captions track, raea export xml
(FCP7 XML for Premiere Pro and DaVinci Resolve), footage that moves, is cut or fades keyed in every export, and the
delivery and words guides teaching them (raea-skills #99, merged onto raea-skills main).

Conflict: engine/cli/src/cli.rs's help, where main added raea wear and raea setup motion beside Zach's raea export
layers and raea export xml; both kept. The skills pin is raea-skills main with #99 merged (f37e5e3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 09:33:11 -08:00
shinyobjectz 04adefa570 L1 for every branch landing at once: crates and files back under their limits, copies folded, the Solari fix marked
- raea-sys-shots: raea-sys-frame's cuts between cameras as a crate of their own (frame re-exports it as shots), so
  frame's new Cut fits under the crate limit; runtime/scene's paint_cut joins cam_keyed's prefixes.
- sdk/video controls.ts: a composition's controls out of registry.tsx (under 500 lines), each kind documented.
- raea-runtime-segments in tools/layers.toml; vendor/bevy_solari's compaction-queue fix marked raea:.
- sdk/cloud: a farm job's GPU kind is `card` (a prop names what it picks, not the processor); the farm's query is
  unchanged.
- Copies folded: io-media's backend() is backend_unsigned wrapped by the signer; paint's cut colours read by one
  closure; foliage's one smoothstep, a triangle's bounds in one pass, a cell's pixels as one range; segments' video
  track found once in its tests and its shortest segment set where it's used; the Solari switch through
  raea_io_home::env_on; kimodo's package record a path like its others; a few one-liners written directly.
  tools/dupes.max names the six left, which match by shape only (trait forwards, foliage's own FNV and stream).
2026-11-17 19:52:34 -08:00
shinyobjectz 30c26b919c The paint look takes soft (its light as a gradient instead of flat bands), cuts (up to four balls, each a world: a mesh is drawn only in its own, cut per pixel in the main pass and the prepass, with nine styles for what is inside) and a rim and a terminator colour. All default off: at the defaults every shader branch is the code before it. Its docs, tests and the skills reference are still to come 2026-11-17 19:52:34 -08:00
shinyobjectz c202f3e590 runtime/scene's live groups public, as runtime/live's props read them 2026-11-17 19:52:34 -08:00
shinyobjectz a3fec64205 LT21: detail costs the live scene no more than JS levels. A part's detail is a component row, and the live diff's fast path refused any scene holding rows of another kind, so every frame of a scene with a detail took the full diff: on 1917 Berlin's 1440p walk, step 29.7 ms against 10.6 ms with the levels picked in JS. Now the fast path keeps component rows as last sent and goes the full way only on a frame where any part's components change (scene_sig: light_sig plus each part's components), and a component row whose part has gone counts its missing frames and is forgotten as the full path forgets it. RAEA_LIVE3D_CHECK agrees over 3,413 frames of a moving scene where a part with a detail goes and comes back and another's detail changes. raea-sys-lod's apply keeps each part's meshes, bounds and last eye, walks its meshes again only when a mesh is added or its Detail changes, moves edge ranges by whole metres and rewrites a part only once the eye has moved a third of its way to the nearest fading band, since Bevy rebuilds its whole range table on any changed VisibilityRange. RAEA_LOD_DEBUG=time prints apply's time a frame. Walk at 1440p, JS levels then detail: step 10.6 / 11.8 ms, work p50 48.2 / 50.0, p99 100.5 / 87.1; fly: step 4.9 / 6.2, work p50 44.6 / 42.2, p99 139.7 / 125.0. 2026-11-17 19:52:34 -08:00
Zachary GuglinandClaude Opus 5.5 9df6d769e3 layers LA1-LA2: captions marked data-raea-role="caption", and RAEA_LAYER renders one layer of an export (captions, graphics, under)
docs/layers.feature amended: text is part of the graphics layer (a text layer only ever opt-in), one `raea export xml`
for Premiere and Resolve, the composite check a test of the method rather than every export's, no reuse of an earlier
render, no unmarked-caption heuristic.

- sdk/timeline: the captions operation's `text` ops say `caption: true`, as does a caption clip added on its own
  (said: true), so the code raea-feed writes can carry the mark.
- runtime/page elements.rs: data-raea-role is kept on the page (KEPT names the data-raea- props the page keeps; the
  mark was dropped before it could be matched).
- systems/layers hide.rs: RAEA_LAYER=captions draws only what is marked a caption: the page draws nothing inside a
  hidden element (vendor/blitz-paint render.rs), so what holds a caption is cleared, not hidden, as RAEA_HIDE_MEDIA=under
  clears what holds footage. graphics and under are RAEA_HIDE_MEDIA's 1 and under, less the captions. RAEA_HIDE_MEDIA's
  own CSS is unchanged, so raea export capcut is too. hiding_css is the pure function hidden_css reads the settings into.
- runtime/scene items_of: a layer that draws no 3D (captions, under; raea_sys_layers::draws_3d) keeps only the
  cameras, since Bevy draws the 3D and the page's CSS can't hide it. This also keeps the 3D out of capcut's under pass
  once it moves onto RAEA_LAYER.
- runtime/bundle cache.rs: a render with RAEA_LAYER isn't the export cache's, as with RAEA_HIDE_MEDIA.

Checked with a source build on two fixtures (footage on a card, a lower third and a caption with a highlighted word;
a 3D turntable with a title and a caption): each layer draws only its own, and raea export capcut writes its draft
as before. Tests: raea-sys-layers, raea-runtime-scene, raea-runtime-page, raea-runtime-bundle, sdk/timeline.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 14:58:27 -08:00
shinyobjectz 6a2646b5a5 R3F23c: a still with a camera into a render image steps every frame before it (runtime-scene carries_state), so what a pass drew lasts: a ping-pong's start drawn at frame 0 is there at frame 12 2026-11-15 13:36:59 -08:00
shinyobjectz 4edb80b80d R3F23: no new near copies. sync_render_maps checks the shown map with a match before it asks for the material mutably, and parts.rs reads each frame's map by a match on its value 2026-11-15 13:05:00 -08:00
shinyobjectz 840de67569 R3F23: a standard material's map follows the render target an app drew this frame (R3F23c, part). A mesh's map that names render images is keyed frame by frame (runtime/scene parts.rs: maps, map_k by step), and the new crate raea-sys-rendermap's sync_render_maps points the material's base colour texture at the image its row names this frame, so two targets ping-ponged (GPUComputationRenderer, a feedback effect) show the one drawn last. A map naming a picture keeps its first frame's, as before. runtime/scene drops two doc lines left over from moved modules 2026-11-15 13:03:41 -08:00
shinyobjectz 2598a75942 R3F23: a camera into an image within the crate budgets, and its ambient light shared with the screen camera's. raea-render's spawn_camera takes its size and target together and ends with raea-sys-frame's into_image, which a screen camera's row passes through; image_of gives a rendercam's image as its target, so load and apply_rows spawn camera and rendercam rows in one arm (raea-render stays under 2,000 lines, with is_3d_spawn moved to raea-sys-frame's store). runtime/scene takes rendercam tracks where it hands them to raea-runtime-look. rendercam.rs's ambient_columns is the one place a camera's ambient columns come from (a pass camera now carries the ambient colour too) 2026-11-15 13:03:41 -08:00
shinyobjectz 744c5a2a1f R3F23: a camera drawing into an image, in the engine (R3F23a). A PerspectiveCamera row whose target is "render:NAME:WxH" (":float" for an Rgba16Float image) is a rendercam: raea-runtime-look's rendercam.rs gives it a row of its own (into, on keyed by step, no tone curve, the ambient light of its own layers), the engine spawns it on that image (RenderTarget::Image, no multisampling or dither, Hdr for a float image) before the screen's camera, and a material's map naming the image reads what it drew. raea-sys-frame's render_image.rs parses and makes the image once for every source naming it; a three shader follows only the screen camera's tone mapping; the TSX PerspectiveCamera takes target and layers, and a camera with a target isn't the one the pointer picks through 2026-11-15 13:03:41 -08:00
shinyobjectz fef9a1bd38 R3F22: three's compute and storage buffers run in the engine. raea-sys-shader shared.rs keeps a storage buffer by key (Bevy's ShaderBuffer, made once with its size and first contents, kept on the GPU, reset by a fresh three session; the empty one for an unused slot), the facility the computes that write it and the node materials that read it share. raea-sys-compute three.rs reads a <Compute kernels shared runs>: each kernel three's own WGSL with its storage bindings by key and its uniforms packed by three's struct, and the frame's runs queued once each by (epoch, seq) and dispatched in order before the other computes, a run whose pipeline or buffer isn't ready held. raea-sys-three-shader storage.rs binds two read-only shared buffers to a node material (bindings 11 and 12), and repeats a BufferMesh with copies count times with each copy's number, matrix and attributes (not frustum-culled). Two fixes the parity render found: runtime-scene keys a compute row's kernels, shared and runs frame by frame (a run after frame 0 never reached the engine), and three-shader's unlit entry premultiplies an additive material's colour with no alpha (three_blend in tone.wesl), since Bevy blends AlphaMode::Add as premultiplied alpha. compute lib.rs's groups_of and column serve the written, inline and three computes alike. docs/r3f.feature: R3F22 done, in-tsl-particles SSIM 0.9510 2026-11-15 12:58:22 -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 8796ceb67c <Instances> whose placements change over the shot move in a video, as they do in a still (#85). A render drew the first frame's list on every frame of a video or an --at list (the row's inst column held one list and said so only in a warning), while a still of a later frame showed it moved. Now the row keeps every distinct list it shows (inst_all, '|' between lists, each frame's list compared with the frame before's) and keys which one each frame shows (inst_k), as a panel's pictures are; a live frame sends its inst, and the fast live path drops to the full one when an Instances' list isn't the one it sent. raea-runtime-scene3d's sync_instances moves the copies (a mesh's, or each of a model's meshes at its place in the model) when the frame's list is another; a list with another count than the copies is the frame's error, and the rows hold the list before it with a warning. The SDK's at, the guide's meshes.md and the manual's rows say a list that changes moves the copies and costs a list a frame. The issue's 20 sliding spheres at 640x360: x-centroid 141.2 at frame 0 and 326.7 at frame 59 in the video (the fed live path, RAEA_LIVE3D_FAST=0 and RAEA_3D=program alike), 327.0 in a --frame 59 still; was 141.1 at 59. The same with a glTF (knot.glb): 142.9 and 326.8, still 327.1. raea-runtime-look tests: lists keyed frame by frame, still ones one column 2026-11-10 16:46:23 -08:00
shinyobjectz 7d66dfc59c 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
shinyobjectz 2e5f9d7755 RR1: every look changes per frame. Each frame's post-processing is its own (runtime/look post.rs), and a set that changes goes in a per-frame table (frame_sets) laid onto the camera's row frame by frame; the camera takes a group off and puts it on again when its columns change (raea-sys-post camera.rs, moved out of raea-runtime-scene3d; volumetric fog's group is raea-sys-fog-half's, which raea-runtime-scene3d hands to it, as a system can't use another sideways). Each light's colour, shadows and shafts change the same way. A draw across a cut (a sky, AO, anti-aliasing, a tonemapper, shadows or volumetric fog coming or going) warms up 8 updates as a load does, so the sky's light is there on a cut's first frame; a ramp is no cut. Play builds its rows the same way: a row with a table is never still (a play's first frame has its sky), depth of field comes and goes with the frames that have one, the page background is keyed, and a seek back that makes a new engine sets play's rows on it again. bench/rerender/rr1.sh: the film as one composition equals its six shot renders 900/900; a 60-frame grade, bloom and fog ramp equals 60 stills 60/60 at SSIM 1.000000; play draws the looks as the render does at 12 seeks and 2 seeks back (the HTML caption over the 3D still differs by up to 2 levels at its edges, as before RR1). The supersample downsample moves to raea-runtime-gpuframe, and light_sig and pass_column to raea-runtime-look, keeping raea-render and raea-runtime-scene under 2,000 lines. 2026-11-10 14:03:56 -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
shinyobjectz b85409d738 Layer pass conformance (docs/review.feature R2e): a flat <Screen> and a skinned character (RobotExpressive, CC0, walking) in bench/layers/conformance.tsx, each one layer. A Screen carries its source stamp (engine/bundle stamp.rs PART_NAMES), and an ImagePlane or Screen panel gets its LayerKey and RAEA_HIDE_LAYERS visibility like a mesh (runtime/scene lib.rs bevy_parts; models.rs panels_rows sends its components). A fifth mutant, bind (a skinned mesh drawn in its bind pose, systems/frame layer.rs posed), fails at IoU 0.80, so the oracle checks the pose. All 18 layers IoU >= 0.962; all five mutants fail. 2026-11-09 13:27:32 -08:00
shinyobjectz ed0ebd2c01 Layer pass before landing (L1): RAEA_HIDE_LAYERS's page CSS (hidden_css, layer_selector) moved from raea-runtime-bundle, which was over its 2000 lines, to raea-sys-layers (hide.rs); the render manifest's videos and text moved to engine/page motion/manifest.rs (motion.rs was over 500); raea-sys-layers in tools/layers.toml (systems, a facility raea-sys-frame builds on). Copies folded: a part's key from its props is raea_sys_layers::key_from_props (runtime/scene bevy_parts), an env switch set to 1 is raea_io_home::env_on (fresh.rs stamps, apps/game probing), and the ID scene draws a box shadow as its element's layer out to 1.5 deviations past its box (hiding an element hides its shadow) instead of skipping it. 2026-11-09 13:06:19 -08:00
shinyobjectz 09a935abd0 Layer keys (docs/review.feature R2a, work in progress, parked with the source stamps): a .map()'s key in the stamps (data-raea-idx, and loc#key in a use chain); raea's 3D parts (Mesh3d, Model, Entity…) stamped and given a LayerKey component (raea_sys_frame::layer) from it in runtime/scene; the work folder's SDK imports (../motion/x) read as raea's, not the edit's own; only components that read their children's types keep them unwrapped; RAEA_HIDE_LAYERS hides a layer by key (page CSS from its stamps, a 3D part's Visibility) for the layer pass's oracle. Not for landing before the layer pass. 2026-11-09 12:45:05 -08:00
shinyobjectz d4a00c6044 Stills late in a long 3D composition no longer cost memory and time with the frame index (closes #77). A still at --at F stepped React only near F, but held every frame before it as copies; each changing column was keyed on every one of those frames, and the timeline evaluated and kept every frame (a film's --at 2448: 234 s and 7.1 GB, against 9 s and 3.1 GB at --at 30). The timeline (core/program) now evaluates only the frames where some key's value can change from the frame before, and a frame no key changes shares the frame before's columns. A column keyed one value a frame keeps only the keys where its value differs from a neighbour's (raea_runtime_look::linear_keys, also used by the scene's per-frame colours), which is exact under linear interpolation. 200 turning cubes at --at 2448: peak 829 MB -> 504 MB (1.32x the --at 30 peak, was 2.14x), engine open 700 ms -> 280 ms, and the frame is pixel-exact. bench/at-cost checks the ratio and the pixels. 2026-11-09 10:23:46 -08:00
shinyobjectz 4175c116fb MeshPass with depth and vertex colours, Mesh3d material={false}; Bevy parity for shader_advanced/specialized_mesh_pipeline, exact
Bevy's specialized_mesh_pipeline draws meshes that have no material by a SpecializedMeshPipeline of its own: positions
at location 0 (compressed or not), colours at 1 under VERTEX_COLORS when the mesh has them, depth tested and written
GreaterEqual, under the view's MSAA. raea's <MeshPass> now does all of it:
- `depth`: it tests and writes the view's depth as an opaque mesh does. The pass always attaches the view's depth (a
  pipeline's depth state must match the pass), so without `depth` it compares Always and writes nothing, as before.
- a mesh's colours go to location 1 under VERTEX_COLORS, as Bevy's own specialize does.
- the pipeline takes the view's MSAA sample count (it assumed 1, so it only worked with Msaa off).
And <Mesh3d material={false}> (any <Mesh>) gets no material at all, as a Bevy Mesh3d without a MeshMaterial3d, so
only its own pass draws it: row no_material, spawned beside the toon branch (engine/render line-neutral).

Parity: SSIM 1.000000, worst tile 0, batch keys 0 / 0 at frames 5 and 10. Without material={false} the pixels were
already exact, but raea drew 2 batch keys of default material Bevy doesn't. Mutants: without the vertex colours it
fails (0.961897, tile 147); without `depth` it is unchanged, since the rectangle is behind the triangles and the pass
draws far to near. custom_render_phase, custom_phase_item, custom_shader_instancing, 3d_scene and mesh2d still pass.
150 ported, 150 passing.
2026-11-08 16:42:57 -08:00
shinyobjectz eeea139ade Bevy's deferred_raymarch, exact: a GBufferPass, drawn in the camera's viewport; cameras and lights placed by their own rotation
shader_advanced/deferred_raymarch (docs/control.feature FC2d) ports with a <GBufferPass> on the camera
(systems/phase gbuffer.rs): a shader file's fullscreen fragment writes Bevy's deferred G-buffer, the
lighting pass id and depth after the late deferred prepass, and its shadow entry writes every shadow view
the camera's lights draw, so Bevy's deferred lighting lights it and it casts shadows. It matches Bevy to
the pixel (SSIM 1.000000, 0 px off at frames 5, 10 and 30); the whole suite (147 ports) passes on pixels.

Three gaps closed on the way, each found by probing the shader's inputs on both sides:
- The pass sets the camera's viewport, as Bevy's own passes do. raea's target is w x (h + 1) (its tag
  row), so a fullscreen triangle drawn without it stretched its uv over 721 rows: rays a pixel low at the
  bottom.
- Camera3d sends its rotation, and the engine places the camera by it (rot_qx..qw, exact). It used to send
  a look-at point the engine turned back into a rotation in f32, about a millionth of a radian off. Bevy's
  lights do the same (their direction was also rounded to 1e-6).
- Transform.lookingAt computes in f32 as glam does (Dir3::new, cross, try_normalize,
  Quat::from_rotation_axes), the same quaternion to the bit; glam.test.ts holds it to glam's own bits.

The port sets Bevy's shadow defaults in a <Shadows> (2048 texels, cascades to 150 m, the first to 10 m,
overlap 0.2), as the other shadowed ports do. Mutants (no shadow entry, the first cascade at 8 m, 7000 lux,
the cube moved 5 cm, the camera's target 1 cm up) are each thousands of pixels off.
2026-11-08 14:40:08 -08:00
shinyobjectz 4103559dac FC2d: a mesh drawn again in a phase of its own, and compressed meshes; shader_advanced/custom_render_phase passes
<MeshPass shader> inside a mesh draws it again by your shader file as written, in a sorted phase after the camera's
main opaque pass, onto the colour target with no depth attachment and back faces culled, with Bevy's mesh view and
mesh bind groups: raea-sys-phase's MeshPass, Bevy's custom_render_phase stencil phase made a component. A mesh's
`compressed` prop compresses its geometry as Bevy's compressed_mesh(&MeshCompressionArgs::regular()) does
(raea-sys-mesh finished), so a shader reads its positions under VERTEX_POSITIONS_COMPRESSED; engine/render's mesh
build calls it in the same line, keyed on it.

The port is pixel-identical to Bevy at frames 5 and 10 (0 pixels differ). A 1 to 3 cm move of the sphere, camera or
cube still passes the SSIM bar but is 177 to 629 pixels off, so the exact match is the port's, not the bar's. The parity
host gets indexmap and nonmax, the example's own dependencies. 144 of 438 ported, 144 passing.
2026-11-08 13:28:22 -08:00
shinyobjectz ae61cbb3e6 A mesh carries its own vertex attributes, and a Material reads the ones it names (shader_advanced/custom_vertex_attribute)
Bevy's custom_vertex_attribute gives a cube a BlendColor attribute and lays out the material's vertex buffer as
[POSITION at 0, BLEND_COLOR at 1] in its specialize. raea now does both:

- sdk/render: MeshVertexAttribute.new(name, id, format) and Mesh's ATTRIBUTE_* constants; Mesh3d `attributes`
  ([[attribute, values]], a value a vertex); Material `vertex_attributes` ([[attribute, location]]).
- runtime/scene: the mesh row carries `attributes` from the first frame.
- raea-sys-mesh attribute.rs: with_attributes inserts them into the mesh (names interned once, as Bevy's are
  &'static str); engine/render's shared mesh keys on them, line-neutral.
- raea-sys-shader own.rs: the layout is part of the pipeline key, and swap sets the vertex buffer to
  layout.0.get_layout of the named attributes, as Bevy's specialize does.

Parity: frames 5 and 10 at ssim 1.000000, 0 pixels off. Mutants: a green BlendColor, BlendColor at location 0 and
four blue vertices fail the bar. Moving the cube 0.1 up and halving the uniform's red pass the bar but the probe
counts 6,067 and 36,685 pixels off (the known SSIM blind spot; the real port is 0).

skills/ pins raea-skills 5218644 (#7), whose generated sdk.md lists the new names.
2026-11-08 15:20:15 -05:00
shinyobjectz a3db7b6dba FC2d: a compute writes a mesh, your own phase item, a frame pass as written; three shader_advanced ports pass
Three of Bevy's shader_advanced examples now run as written, each through a general feature.

A compute writes a mesh (shader_advanced/compute_mesh). A <Compute file> binds each var<storage> its file declares:
either its own buffer, its first contents in the type's storage layout and kept from frame to frame, or a mesh's
vertex or index slab in Bevy's MeshAllocator, found by its part's name (systems/compute/src/slab.rs). A uniform
field given { start: NAME } or { end: NAME } is that mesh's range in the slab, counted in the array's elements, and
is packed each frame once the allocator has placed the mesh. The allocator's slabs carry STORAGE usage, set before
MeshAllocatorPlugin's finish makes the allocator, as the example's plugin sets it. A <BufferMesh> with indices and
normals is now Bevy's indexed Mesh, its index buffer kept, instead of flat triangles (systems/mesh/src/indexed.rs);
3d/vertex_colors, which takes that path, still passes. Every row with a name now gets a Bevy Name, not only bare
entities.

Your own phase item (shader_advanced/custom_phase_item). <PhaseItem> puts raea-sys-phase's PhaseItem and an Aabb on
an <Entity>. A new crate, systems/phase, queues it into each view's Opaque3d phase with a pipeline of its shader
file as written, drawing its own vertex buffer (its stride and attributes) and index buffer with its depth state,
as the example's queue_custom_phase_item does.

A frame pass as written (shader_advanced/custom_post_processing). A <FramePass file> binds its file's own @group(0)
declarations: each texture_2d<f32> is the frame (the one `frame` names) or an image, each sampler Bevy's default or
the one given, each var<uniform> its value (systems/framepass/src/written.rs). Its uniforms may change frame by
frame: like a compute's entry and bind, they are a keyed string column, and the pass repacks them when they change.
FramePass moves out of materials.tsx (at its 500-line limit) into 3d/framepass.tsx. The group(0) declaration parser
the compute and the pass share is raea-sys-shader's bindings::group0.

A camera on the Engine's target now draws a w x h Viewport of the w x (h + 1) tag-row target, as orthographic
cameras already did. A perspective camera had a sub view of the whole target, so a draw in clip space, such as the
phase item's triangle, mapped to 721 rows: its bottom edge landed 0.75 px low and the port passed at SSIM 0.9936 with
2355 pixels off. It is now pixel-exact. The whole suite was rerun with the change.

Results:
- compute_mesh passes at frames 5 and 10 (SSIM 0.999999, 2 pixels off at a 2% threshold). Eight mutants all fail the
  bar: no dispatch, either range set to 0, indices written into the vertex slab, the compute's mesh unnamed, the
  other cube's colour, no shadows, and the other cube moved.
- custom_phase_item passes at frames 5 and 10 with SSIM 1.0 and 0 pixels off. Mutants: the second attribute at
  offset 12, a vertex given another colour, and the top vertex at y 0.9 all fail the bar; a vertex moved from 0.866 to
  0.86 passes on SSIM (0.9953) but leaves 1556 pixels off, where the port leaves 0.
- custom_post_processing passes at frames 10, 30 and 60 (SSIM 0.99995, 0 pixels off). Mutants: no white clear colour
  fails the bar; intensity times 4/3 (8100 pixels off), a slower turn (4256), a linear sampler (16) and sin(t) for
  sin(sin(t)) (2964 at frame 60) pass on SSIM but leave pixels off. The pass before tone mapping draws the same
  frame, as it should: the camera is not HDR, so Bevy tone-maps in the material shader and its tonemapping node is
  skipped.
- After the change, the whole suite passes: 141 of 141 ported (two first-run misses rerun clean: standard_widgets
  missed its replayed menu click on the Bevy side, automatic_instancing missed its frame-time bar under another load).
2026-11-08 10:31:46 -08:00
shinyobjectz 47545d9212 FC2d: a compute as written; shader/compute_shader_game_of_life passes pixel-exact
A <Compute file> compiles its shader file as written, binding its own @group(0) storage textures and uniforms
(systems/compute/src/written.rs). Each frame picks the entry point and which image each storage texture binds, as
a Bevy example's render-graph node picks its pipeline and bind group. Its images are render:NAME images in the
storage format the file declares, each with a sampler if one is given.

Strings can now change from frame to frame. A row column holds a number per frame, so a changing string is kept
as the list of values it takes plus a keyed index into it (raea-runtime-look's keyed_strings, read back with
raea-sys-frame's keyed). The changing-picture code for ImagePlane already worked this way and now uses the helper.
A Compute's entry and bind use it, and so does a Sprite's src: a Sprite can show a render:NAME image and switch
to another by name each frame.

The render-image registry (RenderImages) moves into raea-sys-frame, so the sprite system can look images up by
name. raea-runtime-plugins re-exports it.

A still renders only the frames it needs and their neighbours. When a scene has a compute that carries state
between frames (a file's images, or its own buffers), every frame up to the wanted one is now rendered, because
the GPU state can't be rebuilt from one frame.

Load checks every entry name and binding the run uses. A frame whose entry leaves a storage texture unbound is
logged and skips its dispatch.

shader/compute_shader_game_of_life passes at frames 10, 11, 30 and 60 with SSIM 1.0 and 0 pixels off. Frame 11
was added so each of the two images' samplers is drawn. Mutants are caught either by the bar or by the 2% pixel
probe: init a frame late, swapped bindings, alive colour, sprite parity, either image's sampler, clear colour,
scale, and one extra row of workgroups. The extra-row mutant passes SSIM at 0.9994; the probe finds 784 pixels off,
against 0 for the real port.
2026-11-08 09:19:32 -08:00
shinyobjectz 1b6fbfc390 FC2a: a Sprite's own Material (Bevy's SpriteMaterial), its values per frame in live play, and scripted keys in the parity host (shader/sprite_material, 130/130)
<Sprite><Material/></Sprite> is Bevy's SpriteMaterial<M>: raea's OwnMaterial is also a MaterialExtension2d, so it
extends the sprite's own SpriteMeshMaterial and its shader reads the sprite through sprite_mesh::functions. A
Material's fixed slots now start at 30, past the sprite's own bindings (a UiMaterial's still start at 0), and an
alpha mode the spec doesn't give leaves the sprite's own.

Live play now carries a Material's values frame by frame: a one-frame program sends its own:uniforms row, and a
component whose target keeps its render id (a sprite, a 2D shape) is no longer dropped.

The parity host's input script takes key names (KeyCode's: "Space"), held in ButtonInput<KeyCode> after Bevy's
input systems, so input_just_pressed sees a press on its update.

shader/sprite_material passes at 6 frames across two Space presses (SSIM 0.99983, the text's tile). Mutants of the
amount, the burn edge's width and the delta fail. A burn-edge colour mutant passes the bar, which can't see a thin
edge's colour, but the edge probe catches it: the same 1721 edge pixels, green total 1428 real against 1266 mutant,
and 1428 in Bevy's. The Material, sprite and 2D ports rerun pass.
2026-11-08 06:34:46 -08:00
shinyobjectz 4f7944c463 FC2a: a Material's storage buffers and its values frame by frame; parts with one spec share one Material (128/128)
A <Material>'s `buffers` are its read-only storage buffers (var<storage, read> NAME: array<T(, N)>, up to two, at
OwnMaterial's 23 and 24), each laid out as WGSL stores its element type (own_live.rs storage; a vec3 takes 16 bytes).
Its uniforms and buffers may change from frame to frame: raea-runtime-look own_uniforms sends them as keyed
`own:uniforms` component rows from each frame they change, and own_live.rs patch packs them into the part's
Material and ShaderBuffers (a row that arrives before shade_rows puts the Material on waits on the part, Pending).
Parts whose spec is the same share one Material, as Bevy's examples share a handle: a varying spec carries its
track's hash, so parts share only when every frame's values match too (own.rs shared, OwnMade, cleared per load).
layout.rs's word encoding is shared by uniforms and buffers.

Port: shader/storage_buffer (SSIM 0.999999 at 30 and 60): 91 cubes with MeshTags (<BevyComponent
bevy_mesh::components::MeshTag>), the example's vertex and fragment shaders from its one file, its colour buffer
recomputed each frame as its update system does. Freezing the colours at frame 0 fails (97310 px off), as does
tagging every cube 0 (76718). The other shader ports rerun and pass.
2026-11-08 05:55:22 -08:00
shinyobjectz 5f5e7190db Split crates back under 2000 lines: raea-sys-mesh and raea-runtime-scene2d
- raea-sys-mesh: a row's mesh from JSON (Bevy's primitives by name, rings, extrusions, buffer meshes), moved out of
  raea-sys-material, which re-exports it as its `mesh`.
- raea-runtime-scene2d: the 2D parts' rows (<Sprite>, <Shape2D>), moved out of raea-runtime-scene.
- The part-row helpers both use (visible, sheet, tint) now live in raea-runtime-look's parts.rs.

raea-sys-material had gone to 2048 lines and raea-runtime-scene to 2040 with the FC0a additions.
2026-11-08 04:52:35 -08:00
shinyobjectz e4a0704178 FC0a: 2D at Bevy's exact size, Bevy's primitives by name, Model nodes, sprite modes; 7 more ports (122/122)
2D was drawn 0.14% small. An orthographic camera on the engine's w x (h + 1) target (the frame and its tag row) saw
the frame through Bevy's SubCameraView, whose orthographic math sizes its area from the 721-row target. A white rect
at (90, 510) drew at 41..140 instead of 40..139. Every 2D port still passed the pixel bar. Orthographic cameras now
get a w x h Viewport instead (engine target.rs, line-neutral). 2d/sprite and 2d/move_sprite went from SSIM 0.998
(worst tile 8-9) to 1.000000.

New in the SDK:
- Bevy's primitive meshers by name (systems/material mesh.rs): CircularSector, CircularSegment, Segment2d/3d,
  Polyline2d/3d, ConvexPolygon, Ring (`inner`, or `ring: thickness` as Bevy's to_ring), Extrusion, the Sphere's uv or
  ico kind and Plane3d subdivisions.
- <Model nodes>: glTF nodes' local transforms by name, each frame.
- Lights' shadow_depth_bias and shadow_normal_bias.
- <Sprite image_mode> (Bevy's SpriteImageMode: Auto, Scale, Sliced and Tiled) and <Sprite sampler>. A sprite sheet is
  no longer forced to nearest; the ports whose examples use ImagePlugin::default_nearest ask for it.
- Text2d's Anchor, and it no longer wraps (Bevy's Text2d is unbounded).
- Srgba.hex takes Bevy's 3, 4, 6 or 8 digits.
- Quat.slerp.
- The parity probe marks the example's highest-order window camera as the UI camera, unless the example marked one
  itself.

New ports, all passing: camera/2d_on_ui, gltf/load_gltf, gltf/gltf_skinned_mesh, animation/animated_transform, 3d/fog,
3d/3d_shapes, 2d/sprite_scale and 2d/sprite_slice.

Mutants:
- Caught by the bar: skinned mesh without the joint pose and at PI/3; animated_transform without the controller's
  turn; 3d_shapes with a Cuboid for the Tetrahedron.
- Caught by pixels off: 3d_shapes' ring thickness (4736 vs 2911) and animated_transform's scale key (728 vs 0).
- Passing the bar: fog's end and colour (SSIM 0.989 / 0.990). The real fog port matches Bevy to within 1/255 in every
  fogged region, and its 5819 pixels off are the help text.
- sprite_scale's gabe sheets match Bevy byte for byte at frames 10 and 60.
2026-11-08 04:52:35 -08:00
shinyobjectz 0105bb67c4 FC0a: 2D parts take Bevy's quaternion (quat), for camera/2d_on_ui 2026-11-08 04:52:35 -08:00
shinyobjectz 2a71a69d95 FC0a: 3d/two_passes and 3d/split_screen, several cameras in one window
<Camera3d> takes Bevy's Camera order, clear_color (ClearColorConfig: Default, None, Custom) and viewport (physical px). Every camera in a scene gets a camera row: the first is "cam", and each one after it is cam1, cam2 and so on (runtime/look camera.rs). Renders and live play spawn them all, and raea-sys-frame's camera_pass puts each row's order, clear and viewport on its Camera. Per-camera UI goes in a <Viewport> inside <UiTargetCamera>.

two_passes: 0.999025, 0 px off in render and live. split_screen: 0.998973, 1142 px off in render, 673 in live play. Mutation tests: a missing viewport, a shifted viewport, a moved camera and a changed justify_content fail the bar. The pixel probe catches the light angle, button width, padding, margin and plane size. Reversing the camera order is equivalent because the viewports don't overlap. In live play, extra cameras keep the place they had on the first frame.
2026-11-08 01:01:17 -08:00
shinyobjectz 485cb7b8aa #38: a glyph faded in on the live route is opaque once its fade is done (part of #38)
In bevy/text3d, "render anything" stayed half see-through on the live route from the frame it typed on. `reveal` fades each glyph through 0, 0.5 and 1. A live frame makes its rows from that frame alone, so a glyph's row has an opacity column only on a frame where it is below 1, and nothing was sent when it reached 1: the glyph kept 0.5. A mesh already gets opacity 1 back on a frame that leaves the column out (a render's keyed column says 1 there); LiveScene::diff now does the same for a glyph. The title's `pop` had the same fault, and caused the small differences from frame 5.

Test: runtime/scene's a_faded_glyph_is_opaque_once_done fails before the fix (no opacity sent) and passes after. bench/live-3d/check.sh adds bevy/text3d: 12/12 pass, all 72 frames equal between the routes (frames 5-71 differed before). The fast path needs no change, since it hands glyph rows to the full path.

bevy/text3d, live route, ms a frame before vs after, back to back: 13.8/12.9/12.8 vs 13.1/12.7/13.2.
2026-11-08 00:10:07 -08:00
shinyobjectz ba97a973c0 Live play cuts from one <Environment> panorama to another, lit and with its sky, as a render does (part of #38). bevy/environment cuts from venice_sunset to museum_of_ethnography at frame 30. A render's camera row lists both panoramas at load (env_srcs) and keys which one each frame shows (env_i), and the engine bakes both lights up front. A live frame's row names only its own panorama, and env_srcs wasn't a column live frames send, so live play kept the first panorama for good: frames 30-59 of the case showed Venice in live play and in the parked live render route.
LiveScene's camera row now lists every panorama shown so far (runtime/look's env_shown: the list last sent, then this frame's if new), with env_i pointing into it, and sends env_srcs when the list grows. Engine::set_rows hands a live frame's rows to raea-sys-environment's live_rows. It makes and bakes a new panorama at the first one's face size (grow, which shares panorama() with the load's environment()), then keeps updating until the new light is filtered, so the frame of the cut isn't lit by empty targets. Those updates draw nothing and step no time: the time strategy is held at zero and put back. A camera that had no panorama gets its whole environment the same way. The code sits in raea-sys-environment and raea-runtime-look because raea-render and raea-runtime-scene are at their 2000-line limit.

bench/live-3d/check.sh adds bevy/environment and material-field-0 (c0fd55f43): 9/9 compositions' per-frame hashes are identical between RAEA_3D=program and RAEA_3D=live with RAEA_LIVE3D_CHECK=1, where the raea before this differs on 30 of environment's frames. bevy-ts check.sh: 92 pass, 1 open (shader-character, open before).

fps, bevy/environment rendered live back to back, three runs each: 19.0, 19.2, 19.7 ms a frame before, 20.6, 18.7, 20.6 after (the second panorama decoded and baked once at the cut, which live play skipped before). The program route doesn't take this path.
2026-11-07 23:41:00 -08:00
shinyobjectz 90f65721d9 A 3D scene made live (live play, a game's render) draws what its program draws (part of #26). Each frame's live rows now send what a render keys, the way it keys it. Toward making a full 3D render step React once (#26's leftover): its 3D made live as each frame is stepped, as a game's is, instead of in runtimes of their own beforehand. Rendering 155 3D compositions both ways (RAEA_3D=program and =live, per-frame hashes) found these differences, all bugs in live play too:
- A spot's cone (inner, outer) wasn't sent after its first frame. On 3d/spotlight, live scored SSIM 0.94 against Bevy's own frame 20, the program 0.99.
- A zero scale's rotation came out NaN and was sent again every frame, since NaN never equals itself. It is now the identity, or the frame before's in the program.
- The fast path sent a bulb's place as the World's f32, where the program rounds it to 6 decimals.
- Live frames sent only the camera's place, look, fov, focus and ambient. They now send every column a render keys (cam_keyed: a roll's up_*, the view window, sky and environment, aberration, depth of field, lens, motion blur, paint). Both live paths build the camera row with the program's own camera code (camera_row, camera_diff); the fast path's copy of it is gone.
- Colour columns were rounded to 6 decimals, while a hex colour is its byte over 255, so a part whose colour ever changes drew a hair off on every frame until it did. They are exact now, in the program too.
- The fast path kept glam's sign for a rotation where the full path takes the identity's side. That's the same matrix, but RAEA_LIVE3D_CHECK=1 refused it.

Test: bench/live-3d/check.sh renders seven compositions both ways (live with RAEA_LIVE3D_CHECK=1) and requires identical hashes. It fails five on the build before this and passes all seven after. bench/at-3d/check.sh still passes. The wider run: 144 of 155 identical. The other 11 (the Engine's World cases, material fields, environment, text3d, kept mounts, volumetric glass) are #38, so a full render still makes its rows beforehand and still steps twice.

fps: live play's frame cost is unchanged. #26's 360-frame, 200-mesh scene rendered live, before and after, back to back in three rounds: 20.5/20.5/20.3 vs 20.1/20.5/20.2 ms a frame.
2026-11-07 19:08:07 -08:00
shinyobjectz 3a2b027488 FC0a: sliced and sampled UI pictures, UiScale, OverflowClipMargin, a 2D sampler and uv_transform, Text2d, and five more examples ported
UI. raea's Blitz draws CSS border-image (css-backgrounds-3: slice, width, outset, fill, and stretch, repeat, round or
space per axis), loading border-image-source as a third image layer beside backgrounds and masks. ImageNode's
image_mode { Sliced: TextureSlicer } is that border-image, and data-raea-bevy-slice gives Blitz bevy_ui's own rules: the
corners are the slices times min(the node over the picture, max_corner_scale), and Tile tiles a part from its start
every slice times stretch_value. A flipped sliced picture is mirrored on a layer behind its children. An ImageNode's
image can carry its own sampler ({ path, sampler: { filter } }). UiScale lays its roots out in a window 1/value of the
frame and scales it up. Node takes overflow_clip_margin, which Blitz honours for every clipping overflow as bevy_ui's
resolve_clip_rect does. The page bridge resolves url(..) in a style value (a background, a border-image) as it does
an img's src, which no CSS picture did before.

2D. Shape2D and Mesh2d's ColorMaterial take a texture with its own sampler (raea-sys-sampler) and a uv_transform
(Affine2). Text2d places a Text at its Transform, centred as Bevy's Anchor::CENTER. The shape2d row carries the sampler,
the uv_transform and the vertex colours as JSON in one loop, which keeps raea-runtime-scene under 2,000 lines.

Ported, each with a mutant that fails:
  ui/images/ui_texture_slice_flip_and_tile  1.0000 (stretched instead of tiled 0.7857, unflipped 0.8360)
  ui/images/ui_texture_slice                0.9990 (corner scale halved 0.9800)
  ui/scroll_and_overflow/overflow_clip_margin 0.9968 (without the margin 0.9890, tile 120)
  2d/mesh2d_repeated_texture                0.9912 (no uv_transform 0.9420, no sampler 0.9666, Text2d not centred 0.9789)
  ui/layout/flex_layout                     0.9909 (a Center row as FlexStart 0.9463)
58 of 61 ported pass; many_lights, many_foxes and transparency_3d still fail, as before.
2026-11-07 14:07:55 -08:00
shane 3381690416 raea is developed here now (public-first)
This repository was an export of a private one; from this commit on it is where raea is developed. Contributions:
CONTRIBUTING.md.
2026-11-07 13:36:50 -08:00
shane d3c399b4d5 raea origin/main 2026-11-07 01:29:24 -08:00
shinyobjectz ad67361762 raea e2d2dd2c0 2026-11-06 20:49:59 -08:00
shinyobjectz 88ccb8284d raea 2e9eda9fa 2026-11-06 18:08:53 -08:00
shinyobjectz 5e1c192d29 raea 9565b5f97 2026-11-06 16:27:57 -08:00
shinyobjectz 1dff4f0aa8 raea e699cf684509a8bbada118cc302c56e99065a680 2026-11-05 17:19:37 -08:00