mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
#260: drawImage of a loaded Image onto a canvas made in a composition drew nothing. The canvas is read back off the page, where there is no project folder to find staticFile's /media/x in. A loaded Image now carries the file the host found as currentSrc (sdk/raea frame-globals.ts), which drawImage already prefers, and the canvas host takes a src that is a file as it stands whatever its roots make of it (systems/canvas media_file). #261: two causes, neither the plane's turn. Bevy's update_frusta culls by the projection's whole view at the target's shape, so a camera drawing a page box wider than the frame (an <R3F> in a 1080 x 389 box of a 1080 x 600 frame) had meshes inside the box's view culled: the shelf's side cards, where the same cards turned the other way reached into the frame's view and drew. raea-sys-viewbox's sub_view_frusta gives a camera with a sub view that view's frustum, after Bevy's own and before visibility is checked. And `raea render X.tsx -o x.png` with no --frame took the frames path, which draws 3D from rows under the whole frame and ignored the box; a 3D piece's bare .png is now drawn as --frame 0 draws it. #262: Apple Color Emoji keeps 52 glyphs (💬, 🗨) as grey + alpha PNGs. Vello's glyph run asks png for RGBA with a transformation that leaves grey as it is, logs "Unsupported `output_color_type`" and skips the glyph. The page's painter (raea-sys-filters) takes those glyphs out of the run and draws them as images placed as Vello places a bitmap glyph (emoji.rs); skrifa and png at Vello's versions.
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.