mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
Sincea3db7b6db, `raea render X.tsx --at N` refused every TSX composition ("no two readbacks with its tag agreed in 240 updates"). That commit gave every camera on the Engine's target a w x h Viewport above the tag row. The frame tag, a 16 x 1 UI node in that row, was laid out under the scene's camera (UiTargetCamera), so bevy_ui clipped it to the viewport and no readback ever carried a tag. Full renders and HTML stills don't wait on the tag and kept working. The tag now has a camera of its own (raea-sys-frame spawn_tag, called where load.rs spawned the node): a Camera2d on the same target, ordered last, on no render layer (so it draws no sprite or mesh), with no tone mapping, dither or MSAA. Its texture is cleared to transparent and alpha-blended over the target, so every pixel but the tag's is left as the frame's cameras drew it. tag_row_view leaves it out of the viewport it gives the rest. bench/at-0/check.sh renders a one-colour composition with --at 0 and checks the frame is 160 x 160, one colour, and #246 in its last row. It refused ona3db7b6dband passes now. bench/at-3d still passes (its four frames are pixel-identical to the frozen render's), an mp4 render works, and the whole bevy-parity suite was rerun with the change.
raea-render
raea-render: raea's render engine. raea compositions are lowered to its program (rows spawned once, keyed per
frame) by sdk/react/ and drawn here, so a render and a live play draw from the same rows with the
same code.
src/engine.rsandsrc/engine/: the Bevy renderer: 3D scenes (meshes, lights, cameras, glTF models, post effects), video frames, the painted pages as image rows (src/rows2d.rs, drawn by bevy_ui) and sound.src/gpuview.rs: the direct GPU path a render encodes from.src/html.rs: HTML compositions, drawn by bevy_ui throughruntime/js/.src/cli.rsandsrc/media_verbs.rs: native media verbs (raea media ..., plusraea ffmpegandraea ffprobe, which read ffmpeg-style command lines without running ffmpeg). raea and the shell run them in process.
Depends on runtime/js/, systems/k/, io/media/ and
gpu/device/.
Status: in use as the renderer behind raea.