io/trace's stat_value gives a channel a value (pass=depth, lod_debug=time, fog_skip=a,b; a channel chosen bare is
"1"), its variable still the override. Nine debug views (clay, fog_debug, fog_show_fallback, lod_debug, pass,
pass_rays, pass_reach, song_debug, volume_debug), inspect and fog_skip go through it, so a composition chooses them
with stats.on. tools/nobuild.sh stats: pass=depth chosen from TypeScript draws RAEA_PASS=depth's frame (max 0 levels
apart, 240 from the picture), and its static check covers the 35 stat and view variables decided done.
raea song, framing="face" and matchmove say to update raea when raea-perceive is missing (releases ship it) rather than
to build it. export-game says this raea ships without raea-game and how to ask for it; the note on the smaller player
prints only to a checkout's build.
The render manifest's frames gain `pictures`: each shown img, inline svg, and element painting a background image or
a colour at least half opaque, past a quarter percent of the frame (engine/page manifest.rs). SG14's coverage counts
them with the page's words and videos. Measured on Stay with its page known, two of its four empty stretches before
frame 1699 clear; the other two show a pool room whose walls, floor and water are backdrop by the slab rule, so
frame-empty stays a warning.
Words in an element that says data-allow-overlap are marked allowOverlap in the manifest, and SG11's type-over-part
leaves them be: a headline across a card is an error, the same words under data-allow-overlap pass. The finding's
fix and raea render's manual say so. in_caption and the new walk share one ancestor test.
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]>
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]>
raea-runtime-appscreen opens each app screen's module on a BlitzPage of its own at the screen's size, on the shared device, with the CSS its modules import and Tailwind's for its folder (or an exported game's prebuilt X.tsx.surface.js and .surface.css). It is stepped once a frame: the input route() gave it as Blitz's pointer, wheel and key events, then one update that runs its JS on the frame's clock, and paints; the draw's later updates while faces load only paint. runtime/page's sync steps every app screen (screen.rs step_all, at at_frame's frame in a render and set_app_frame's in live play) instead of saying it isn't drawn, and its picture goes with the nested screens' (screen_textures, frame_all) to Engine::copy_screen or set_screen_picture.
A frame black on two draws whose GPU passes its canary was kept as the scene's black with one stderr line, and every
later black frame was let through silently: #96's 4K handover lost frames 22-29 that way, the render reporting
success. Now, when such a frame's page shows something that isn't black, the render warns "black-frame" naming it
and where it's written ("frames 22-29: drew all black on two draws, though the page shows a rgb(34, 34, 34)
background (handover.tsx:31:3)"), in the run's findings: stderr, the manifest, the summary's count and raea check's.
A page that is black (a black background, nothing on it) says nothing, as before.
raea-page's visible_paint finds it: the first element shown on screen, not a video's holder, whose background or own
words' colour isn't black, with its source stamp; it shares the manifest's opacity and stamp walks, now functions of
their own. raea-core-facts' said_frame joins a frame's finding to the same one running on the frames just before it,
so a run prints one line and counts once. Both black checks of the page path call it (bevy_frame.rs's still and video
frames, render.rs's page over 3D). Left out, as on the issue: a fed MP4's frames, which never come back to the CPU.
RAEA_BLACK_FAULT=3 draws every frame black with the canary passing (a draw dropped whole, as #96's was), to test it.
Checked: a #222 page under that fault warns once over frames 0-5, the manifest holding one finding with frames [0, 6];
a black page under it says nothing. Test: said_frame merges a run and starts another after a gap (the two tests that
say and take findings hold one lock).
Skills (SK4): SKILL.md's "7. Deliver" names runtime/export/src and says nothing of black frames: checked, still true.
runtime/world (raea-runtime-world) steps a composition's React to the asked frames, as raea scene lint steps it,
and reads each into raea-core-facts entities: the 3D layer with its Camera (velocity from the next frame) and
Parts measured from their triangles, Text3D as Text and Part; the page laid out by the render's own Blitz page with
nothing painted (BevyPage::lay_out), so text has its box, size, font and line count; Sequences as Shots (from and
to; Sequence now stamps data-raea-end), footage as Clips with SHA-256 and their take's words, sounds as Cues, the
project transcript's lines and <Speech> lines; each entity's Source from the code stamps. <style>/<script> text is
not read as words.
apps/direction: raea world EDIT.tsx [--frame N | --at A-B|A,B] [--find JSON] [--no-layout] [--json]; --find spans
media (with, without, where Comp.field).
Folds: raea_runtime_react::scene::surface, raea_runtime_bake::runs, raea_core_facts::Word/transcript_words (raea
check's). Stamps name Audio. The time a layout-only page update gets is sent as a drawn update sends it.
core/scene's media_path joined an https src to the composition's folder, so a remote clip was refused as
"<dir>/https:/…: no video track" (seven snapcn components in #13: hero-launch, laptop-frame, phone-frame,
phone-stack, reel-collage, reel-wall, screen-recording).
raea_io_net::cache::remote(src) gives an http(s) src's file through cache::fetch (keyed by the URL, which is in
the composition's source, so a render stays a function of its code; under $RAEA_CACHE beside the render cache)
and None for a file. The page's video elements, the export's sounds and live play's video list ask it first.
A src that can't be fetched refuses the frame saying why: "video <url>: HTTP 404 Not Found", or "(not in
raea's cache): not sent, because RAEA_OFFLINE is set". The cache's status errors no longer name the URL twice.
bench/remote-media/check.sh: a local server's red clip plays (centre 252,0,0), plays again offline from the
cache, an uncached URL offline refuses, a 404 refuses with its status. Before: all four read the URL as a path.
laptop-frame (snapcn) renders its remote clip, 240 frames at 7.0 ms a frame.
shader/shader_prepass passes at 4 frames, one per prepass view (transparent, depth, normals, motion vectors), stepped by
scripted Space presses. The camera carries Bevy's DepthPrepass, NormalPrepass and MotionVectorPrepass and Msaa::Off as
<BevyComponent>s, and show_prepass.wesl reads them through bevy_pbr::prepass::utils as written. The opaque Material
cube writes into the prepass and turns with Time::elapsed_secs.
Live play drew its 3D under the page blended by the 3D's alpha, which a window ignores, so custom_material's
COLOR_MULTIPLIER alpha of 0.5 faded the opaque cube toward the page's white. The 3D under a whole page is now copied
opaque (place_under, fs_opaque), as raea render and Bevy's window present it.
Outside the text block at most 574 pixels differ (edges). Mutants fail: the normals view off, NormalPrepass removed,
the cube's turn frozen, the opaque cube blended. A Mask cutoff of 0.2 against 1.0 passes the bar but moves the pixel
probe (2350 to 2474 px): the icon's alpha is all but 0 or 1. The ports with input scripts rerun pass.
The bar can now drive an interactive example. A row of bench/bevy-parity/runs.tsv may name an input script, in the format `raea play --input-script` takes ({"FRAME": ["Pointer:X:Y:down"]}). The example gets it as RAEA_PARITY_INPUT: systems/parity input.rs writes bevy_picking's PointerInput messages on the picture the cameras draw into. The port's pictures then come from `raea play` under the same script; cost still comes from the render.
Gaps found and patched on the way:
- raea play sent its pointer only to useInput, never to page elements, so a composition's onClick never ran. The live step now hit tests the pointer on the page (BevyPage::hit_path) and sends its React handlers the events a browser fires, in a browser's order: over/out, enter/leave, move, down/up, and click on what both the press and the release were over (runtime/live pointer.rs).
- bevy_ui_widgets' Popover: Node takes `popover` ({positions: [{side, align, gap}], window_margin}). raea's Blitz places the popup after layout beside its parent's box (inside its border), at the first placement the window hides least, as position_popover does (vendor/blitz-dom bevy_popover.rs). It's drawn and hit tested there. Node also takes bevy_picking's handlers (onClick, onPointerDown/Up/Over/Out/Enter/Leave/Move; sdk/render ui-pick.ts). The page bridge keeps data-raea-bevy-popover.
- After any state change in play, bevy text was drawn broken at min-content width: raea's bevy_text min-content measure breaks lines at width 0, and a box whose layout taffy kept from its cache never broke them back. A measure now puts back the lines a laid-out box keeps (blitz-dom inline.rs, TextLayout::performed_width).
The port's Button reads "Hover" and "Press" as set_button_style has it; the menu button toggles spawn_menu's popup of four items, each lit while hovered; activating an item closes the menu. Under a click on Menu, then the pointer on the first item: 0.994691, worst tile 17. Without the toggle, the popover, GlobalZIndex or hover, with the side flipped, a 6 px gap, three items or 90% width, the bar fails; a gray border passes it and the probe catches it (7217 px off against 6465). conformance/ui-pick.test.tsx; blitz-dom bevy_popover tests; runtime/live pointer test.
The gallery brought four gaps, now patched rather than skipped:
- Okhsla: bevy_color's Okhsla (in f32, as Bevy computes it), and Okhsla gradients sampled from okhsl's mix, which CSS has no space for. An Hsla track keeps its stops' hues, so the hue slider runs the long way back to red as Bevy's does.
- A spreading BoxShadow: bevy_ui widens the shadow by the spread and scales its height and corners by the same ratio. The spread is now sent, and a node marked data-raea-bevy-shadow is spread by that rule in raea's Blitz (vendor/blitz-paint box_shadow.rs, unit tested).
- A translucent border blended over the node's own background. Bevy draws the background inside the border only, so the border blends over what lies under the node. Feathers' disabled switch slide showed it.
- The alpha checkerboard and the colour plane are UiMaterials in Bevy. raea has no UiMaterial yet (FC2), so the checkerboard is a tiled conic gradient centred on the node, and the plane is a bitmap of color_plane.wesl's formulas.
Where Bevy 0.20 itself differs from its intent, the port draws what Bevy draws:
- The list view's scrollbar never finds its scroll area (#inner, passed through the scrollbar's props, resolves to no entity), so Bevy draws its track and no thumb, and keeps the gutter.
- The hex field's InheritableFont { font: MONO } never reaches the input's own text, so it shows in feathers' regular face.
ui/images/image_node_resizing's camera index moves to 429: every example's Bevy run now has one fewer startup entity in the parity host, and this port is the only one that names an absolute index.
Probes caught all 11 gallery mutants, against 4 for the bar alone: the swatch's opaque part, the checker's phase and colours, a mirrored thumb, a lost middle stop, a flat alpha track, swapped plane axes, the plane's fixed channel, the list track, the border blend and the colour input's size. All 55 ui ports pass again.
raea-sys-page is at its 2000-line limit (tools/size.sh), so the test of an SVG <text>'s attribute names leaves ops.rs.
In raea-runtime-page it takes the path a composition's frames take: the walk's Wants (the <text> with `$ns`), then
Tree::diff, whose second frame sends only the changed fontSize and textAnchor, then ops::apply. It fails without the
ops.rs change: the update adds fontsize and textanchor beside the stale font-size.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The composition walk never said `$ns: "svg"` for the three SVG tags HTML also has, so inside an <svg> they became
HTML elements and their camelCase attributes were lowercased (textAnchor to textanchor, fontSize to fontsize), which
usvg doesn't know. The walk now tracks whether it is inside an <svg> and not back in HTML under a <foreignObject>
(IN_SVG, beside IN_3D), and gives those three `$ns: "svg"` there, as sdk/ui's host does. An update in ops.rs also
treats a node as SVG's when its element is in SVG's namespace, so an animated fontSize keeps `font-size` on every
frame, on sdk/ui's path too.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- GlobalUiDebugOptions, and a node's own ui_debug (UiDebugOptions, which replaces it): Blitz draws each enabled node's outlines after the whole document, above every UI node as bevy_ui_render's extract_debug_overlay keeps them (vendor/blitz-paint render/bevy_debug.rs).
- An outline is a ring of line_width inside the border, padding or content box, following the corners' radii.
- It is cut by the ancestors' overflow unless show_clipped.
- Its colour is Hsla::sequential_dispersed of a debug_color_index, which Bevy takes from the entity's index, unless line_color_override.
- The port's indices are setup's spawn order from the camera's entity, 430, the one base whose colours match all four outlines measured (container, column, group and the 40% image). The text's observer is allocated later, when the commands apply.
- ImageNode's Auto now draws the picture contained in its content box, its aspect kept, as Bevy does; it was filled. Stretch gives the node no picture size and stretches the picture over its content box.
- The other image and UI ports keep their scores.
Probes:
- Every outline pixel along column 900 and rows 156 and 158 matches Bevy's exactly, colour and place (947 along the group's top edge).
- The first Auto icon's anti-aliased disc edges match Bevy's pixel for pixel.
Mutants:
- Base 431 fails the bar (0.9465).
- Stretch as Auto fails it (0.7387).
- The outlines drawn in reverse order fail it (0.9779) and the probe.
- Auto filled instead of contained passes the bar; the icon-edge probe catches it.
Test: conformance/ui-debug.test.tsx (the hues, global and own options, UiScale, refusals) and the ImageNode modes in ui.test.tsx.
- ScrollPosition (Node's scroll_position): scrolls only a Scroll axis. Blitz keeps it in the scroller's range once layout has its content and floors it to whole physical px, as bevy_ui's layout does (vendor/blitz-dom bevy_scroll.rs, from resolve).
- IgnoreScroll (ignore_scroll): Blitz moves the node back by its parent's scroll on those axes.
- Scrollbar (target by a Node's new `name`, orientation, min_thumb_length) is a Node track. ScrollbarThumb isn't laid out: after layout, Blitz sizes and places it in the track from the target's size, content and asked ScrollPosition, as update_scrollbar_thumb's size_and_pos does.
- The page bridge keeps the new attributes (data-raea-bevy-scroll, -ignore-scroll, -scrollbar, -thumb).
- UiScale is now CSS zoom, not a transform of a logical layout. Bevy lays the UI out and shapes its text in physical px, so a 3 px padding at 1.25 is 4 px; scaled-up text sat about 1 px low. A sliced ImageNode's corner limit and tile stretch take the scale with it (ui_texture_slice_flip_and_tile is pixel-exact).
Tests:
- conformance/ui-scrollbar.test.tsx and the UiScale test.
- blitz-dom's bevy_scroll unit tests: thumb maths and the track attribute.
Mutants:
- No ScrollPosition fails the bar (tile 82).
- Thumbs not placed fails it (tile 44).
- UiScale as a transform fails it (tile 37).
- A thumb that ignores the offset passes the bar. A pixel probe catches it: rows 41-157 against Bevy's 49-165, where the real port matches Bevy exactly (49-165, and 4-240 across).
The other UiScale ports keep their scores.
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.