Commit Graph
709 Commits
Author SHA1 Message Date
shinyobjectz 43eb20fbd7 FC0a: ui/styling/box_shadow ports at 0.99880, and bevy_ui's drop shadow is drawn as Bevy draws it. The port is the example's first frame: a 164 px square with a 1 px white border on CSS gray, its BoxShadow black at 0.8, offset 20, spread 15, blur 10, under BoxShadowSamples(6), and the settings pane (examples/helpers' radio and number inputs) over the dark theme with its pane body at 0.9 alpha.
The shadow: a node with a box shadow is marked data-raea-bevy-shadow with its BoxShadowSamples (new, @bevy bevy_ui_render::BoxShadowSamples, 4 unless a <BoxShadowSamples> above sets it). raea's Blitz spreads its outer shadows by bevy_ui's rule (width + spread, height and corners by the same ratio) and paints each from a CPU bitmap of box_shadow.wesl's rounded-box shadow: across, the exact erf integral; down, the Gaussian summed in SAMPLES steps over 3 deviations each side, clamped to the box; on the quad of the shadow's size plus 6 blur radii. Vello's analytic shadow is a different approximation of the blur, so it is no longer used for bevy_ui nodes (CSS box-shadow is unchanged).

The bar is blind to a soft shadow: spread 15 -> 12 or 14, blur 10 -> 8 or 9, samples 6 -> 4, x offset 20 -> 18 and alpha 0.8 -> 0.7 all pass it. A pixel probe over the shadow (crop 260x260+580+280, max difference) tells each from the real port: the real port differs by at most 1 level, the mutants by 2, 4, 1 (samples 4: Bevy's own 4 and 6 differ by about that), 6 and 14; samples 6 -> 1 fails the bar. All 56 ui ports rerun: they pass, overflow_transform (0.99543) and feathers_gallery (0.99561) among them. image_node_resizing's camera index is 430 again: registering this example put one more startup entity in the parity host (454 -> 455), and its comment now says how to tell.

The parity host's build.rs makes an example's #[path] modules absolute and its `use crate::` a `use self::`, since the example is a module of the host (box_shadow takes its helpers that way).
2026-11-07 22:46:26 -08:00
shinyobjectz 9fe4c0c307 FC0a: ui/widgets/feathers_gallery ports at 0.99561, with the rest of bevy_feathers: panes, sub-panes and groups; menus, selects, list views and tool buttons; checkboxes, radios, toggle switches, disclosure toggles and the slider; the text input, colour swatch, colour slider, colour plane and colour input; and its icons
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.
2026-11-07 21:32:37 -08:00
shinyobjectz 601296ea0e FC0a: ui/widgets/feathers_number_input ports at 0.99748, with feathers' FeathersNumberInput: the value as Rust's Display prints it ("1", not "1.0"), held within its HardLimit and shown through its units (LengthMeters, TimeSeconds, AngleDegrees: PI radians reads 180°), over a hard-stop gradient bar to its place in its SoftLimit, dimmed when disabled, with a sigil strip and an "X" label. NumberInputValue and NumberInputRange in f32, f64, i32 and i64. Blitz drew nothing for a one-sided border on a rounded box: the corner split angle divided by the other side's zero width (NaN); its limit now gives the whole arc to the side with the width (vendor/blitz-paint, with a unit test). The bar passes a moved soft-limit bar, an undimmed disabled field, the wrong sigil colour, radians for degrees and a missing label; pixel and region probes catch all five. borders, gradients and standard_widgets score as before. 98 of 102 ported examples pass 2026-11-07 19:45:22 -08:00
shinyobjectz b269cbc12e FC0a: ui/widgets/feathers_counter ports at 0.99994, with feathers' display: caption (a ThemedText), label, label_dim and label_small (Fira Sans in the theme's text colour, which no propagation overrides), and ThemeBackgroundColor, ThemeBorderColor and ThemeTextColor, which colour the one element inside from the UiTheme. A button's caption takes Fira Sans 14 px; the count, a caption outside any widget, keeps Bevy's default font, as in Bevy. A pane background fails the bar; a plain Text caption (298 pixels off, not 15) and no margin (237) pass it and are caught. 97 of 101 ported examples pass 2026-11-07 19:34:56 -08:00
shinyobjectz 133e637b80 FC0a: ui/widgets/standard_widgets ports at 0.99765: the headless widgets at rest after the style systems' first frame, the RadioGroup with only Snap's mark (update_widget_values checks the radio matching the resource) and the menu Button closed. The bar fails only a centred menu; probes catch Drag checked (its mark 191, not 44), a checked checkbox (191, not 44) and no menu square (38, not 128); rings and marks sit at Bevy's boxes, the rest is glyph edges. 96 of 100 ported examples pass 2026-11-07 19:32:10 -08:00
shinyobjectz e31303c7fd FC0a: ui/widgets/standard_widgets_observers ports at 0.99874: the headless Button, Slider and Checkbox as their observers leave them at rest, the thumb at 50% once update_widget_values inserts the resource's value. The bar fails only the Hover mutant; probes catch the rest (the thumb at 0%: its pixel 13, not 191; a checked mark: 191, not 44; no TextShadow: the button's region 207 pixels off, not 168). 95 of 99 ported examples pass 2026-11-07 19:29:37 -08:00
shinyobjectz c4e528f56a FC0a: ui/widgets/virtual_keyboard ports at 0.99371, on raea/feathers (bevy_feathers) and EditableText. raea/feathers carries feathers' dark theme (its palette, semantic colours, surface-level overrides and 150 token assignments, generated from dark_theme.rs and tokens.rs; with no UiTheme every token is FUCHSIA, as Bevy's empty ThemeProps), FeathersButton, VirtualKeyboard and ThemedText: a widget's font and text colour reach only a ThemedText, as feathers' Propagate is filtered With<ThemedText>, so the keyboard's plain Text keys keep Bevy's default font, as Bevy draws them. Feathers' own Fira Sans (four faces) and Fira Mono Medium are bundled whole in core/fonts, and its fonts name them by family. EditableText measures as TextInputMeasure (visible_lines of line height, rounded up; visible_width in ch, the advance of 0) and draws parley's caret, cursor_width of the font size wide, for the first half of each blink period while it has focus. Oklcha gains lighter, darker and with_alpha. 94 of 98 ported examples pass 2026-11-07 19:27:22 -08:00
shinyobjectz 0d3d0401de FC0a: ui/widgets/vertical_slider ports at 0.99900, and a bevy_ui page's curves are flattened to 0.02 px, not Vello's 0.25 (vendor/vello_shaders flatten_tol, on config.blend_linear). The chords drew the 12 px round thumb a quarter pixel small, every edge pixel's coverage about 0.12 short of Bevy's distance-field edge; now the thumbs differ by no pixel at 3% (their mean error a quarter of what it was). Text is drawn through the same flattening, and the old inset happened to sit nearer Bevy's glyph rasteriser: the text ports move by up to -0.0009, the shapes by up to +0.0023, all 49 UI ports still pass. 93 of 97 ported examples pass 2026-11-07 19:08:49 -08:00
shinyobjectz fb35f5d908 FC0a: ui/widgets/viewport_node ports at 0.99987: a second camera with a Viewport over the node's border box. A camera with a Viewport keeps its own shape: the engine no longer gives it the whole frame's SubCameraView, which sized its projection to 16:9. 92 of 96 ported examples pass 2026-11-07 18:57:04 -08:00
shinyobjectz 9f1152a6f9 FC0a: ui/widgets/tab_navigation ports at 0.9980: four TabGroups of four buttons, none focused. 91 of 95 ported examples pass 2026-11-07 18:45:54 -08:00
shinyobjectz 0652b75313 FC0a: ui/widgets/headless_tabs ports at 0.9930: four tab lists coloured as update_tab_styles leaves them (selected, disabled, the rest). 90 of 94 ported examples pass 2026-11-07 18:43:33 -08:00
shinyobjectz a5663cb511 FC0a: ui/navigation/directional_navigation_overrides ports at 0.9961. A bevy_text box's min-content is its lines broken at no width with their trailing spaces (parley's full_width, as bevy_text measures it), so a wrapped, centred label sits where Bevy puts it; the 44 other UI ports score as before. 89 of 93 ported examples pass 2026-11-07 18:41:15 -08:00
shinyobjectz f546e1d8c5 FC0a: ui/navigation/directional_navigation ports at 0.9981. A bordered bevy_ui Node's background is clipped to its padding box, as bevy_ui draws it (only the area inside the border), so a see-through border shows what's under the node; the other 43 UI ports score as before. 88 of 92 ported examples pass 2026-11-07 18:34:44 -08:00
shinyobjectz 1a23d1f9bb FC0a: ui/ui_drag_and_drop ports at 0.9990. A bevy_ui Outline's colour goes as written, for the page to blend in linear light, instead of mixed into the parent's background: it lies outside the node and over its siblings, so a Color::NONE outline drew 2 px grey seams over every tile. 87 of 91 ported examples pass 2026-11-07 18:29:13 -08:00
shinyobjectz b6053cf8a7 FC0a: ui/render_ui_to_texture ports at 0.99998. UiTexture and targetImage draw bevy_ui into an image a StandardMaterial samples: the UI is laid out as a Screen's picture (painted alone, handed to raea-render by name each frame), and a material texture of raea-screen:name@WxH resolves to that screen's image (raea-sys-screen named_image). 86 of 90 ported examples pass 2026-11-07 18:18:57 -08:00
shinyobjectz 30960ed5fa #34: a render says once, when it ends, what its page didn't apply, and its output loses the warnings no one acts on.
Dropped CSS: stylo drops what it can't parse silently unless a ParseErrorReporter is passed, and blitz-dom passed none, so a render printed APPLIED over a picture missing some of its code. vendor/blitz-dom/src/not_applied.rs is that reporter, passed at every author parse (stylesheets and @imports in net.rs, <style> in document.rs, style attributes in node/element.rs, CSSOM in cssom.rs; never the user-agent sheet). It keeps each drop once per property and selector, never its value ("-webkit-text-stroke in .outline", "... in a style attribute"), since a style attribute is parsed again on every frame it changes. FileNet's loads that fail join the list ("the file ... (it didn't load)"). The render prints it once after APPLIED (engine/cli for TSX, apps/media for HTML) as "NOTE  the page didn't apply N things, and is drawn without them:", one per line, at most 20, and --manifest gets it as not_applied. RAEA_NOT_APPLIED=0 parses as before (docs/settings.md), for measuring.

Vendored stylo change, to upstream later: report_one_css_error (properties/declaration_block.rs) returned before reporting any unknown property with a -webkit-, -ms- or -o- prefix, which hid the reporter's main case, -webkit-text-stroke (Gecko-only in stylo, drawn as nothing). It reports them now, and raea's reporter skips the prefixed properties that change nothing in a picture (text-size-adjust, tap-highlight-color, font-smoothing, appearance, user-select and the like), so Tailwind's preflight adds no lines (a Tailwind page with gradients, rings, blur and truncate printed no NOTE). A value error is also named by the property stylo parsed, with the value after it. vendor.toml says both.

Noise: Bevy's bevy_asset::io::web and io::source warnings (printed by every render) and fontdb's skipped faces (system fonts it can't parse, which the reporter saw on Windows; a missing @font-face file, which the NOTE names) are filtered at both LogPlugins (engine/page motion.rs, engine/render open.rs). io/trace's `log` logger, which every third-party `log` record goes through, prints only warnings and errors now, and not fontdb's (Bevy's Ctrl+C handler printed two INFO lines on every render); every record still goes to the trace's events.jsonl.

Check: bench/dropped-css/check.sh renders the reporter's page as TSX (30 frames, its outline moving so its style attribute is parsed each frame) and as HTML. Each must exit 0 and print one NOTE naming -webkit-text-stroke and the missing font once each, with no INFO line and no bevy_asset or fontdb warning, and the TSX render's manifest must list both under not_applied. It fails on the raea before this (no NOTE) and passes on this one.

fps, one build with the reporter on and off (RAEA_NOT_APPLIED), seven alternating rounds on a shared, busy machine: the worst case (bench/dropped-css's page at 600 frames, dropping a declaration on every frame) median 516 on vs 479 off; bench/html-repeat median 202 on vs 172 off. No cost shows above the noise (min to max spans 315 to 620). (closes #34)
2026-11-07 17:46:28 -08:00
shinyobjectz e4bab2a77a FC0a: ui/images/image_node_resizing passes (SSIM 0.9981, worst tile 9). It brings bevy_ui's debug overlay and NodeImageMode's Auto and Stretch.
- 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.
2026-11-07 17:41:13 -08:00
shinyobjectz 342bcfc3c0 FC0a: ui/text/font_query passes (SSIM 0.9933, worst tile 19), with TextFont's width: font_width (a share of the normal width, FontWidth's constants) is CSS's font-stretch, which Blitz's parley turns into the variable face's wdth as bevy_text's does. A bevy_ui Text now takes no synthetic italic skew, as bevy_text draws an Italic or Oblique run of a face with no slant upright (MonaSans has none); page text keeps Chrome's. The other text ports keep their scores. Mutants: font_width ignored fails the bar (tile 58), the skew back fails it (tile 33). Test: conformance/ui.test.tsx's font_width. 2026-11-07 17:27:34 -08:00
shinyobjectz f84a89cd52 FC0a: ui/scroll_and_overflow/overflow_debug passes (SSIM 0.9965, worst tile 10): the six clipping cells at the paused animation's t = 0, moved by (-50%, 0), scaled by (1.5, 1) and turned 45 radians, with the instructions' Overflow Debug span. Mutants (no clip, no rotation, no move, no scale, no span) each fail the bar. 2026-11-07 17:10:59 -08:00
shinyobjectz ec33f6b871 FC0a: ui/scroll_and_overflow/scrollbars passes (SSIM 0.9945, worst tile 21), with bevy_ui's ScrollPosition and IgnoreScroll, bevy_ui_widgets' Scrollbar and ScrollbarThumb, and UiScale laid out at its scale.
- 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.
2026-11-07 17:08:18 -08:00
shinyobjectz 1eb646f7b9 #33: a panic as a frame draws ends the render with an error naming the frame and the panic, and keeps the frames drawn before it. Each frame loop catches a panic in its drawing (raea_gpu_device::check::frame_caught, or around the pipelined engine's run, which names the newest frame sent) and returns it as an error, "raea panicked drawing frame N: <message>"; the panic hook still prints it and where it was, and the crash log keeps it. On that error, or any other mid-render, the direct path drains the frames in flight to the encoder, the fed path finishes the file without sound, the engine path finishes its encoder, and hashes so far are written, so the file holds every frame before N and the error says how many and where ("no frame was written" when none). Exit 1 now, not a panic's 101. RAEA_PANIC_FAULT=N (docs/settings.md) panics as frame N draws, for the check: bench/frame-panic/check.sh renders an HTML page to .mp4 and .txt, a 2D page to .mp4 and .txt, and a 3D scene to .mp4 and a PNG folder at RAEA_PANIC_FAULT=100, and each exits 1 naming frame 100 with exactly 100 frames kept; without the fault the same renders give all their frames. Speed, two builds of this tree with and without the change, five runs each alternating (the machine was busy: medians), to .mp4: a 2D page 427 fps before, 435 after; #20's HTML page 214 before, 235 after; a 3D scene 71.7 before, 71.5 after (a frame catch costs nothing until something panics).
(closes #33)
2026-11-07 17:00:09 -08:00
shinyobjectz 36cbb99227 FC0a: ui/scroll_and_overflow/drag_to_scroll passes (SSIM 0.99999; not a pixel off at 1% fuzz, where hues spread over 260 degrees put 4995 off): 2400 hue tiles at UiScale 0.5 in a scroller at 0 until dragged 2026-11-07 16:42:30 -08:00
shinyobjectz 3675c7a9f9 FC0a: ui/scroll_and_overflow/scroll passes (SSIM 0.9972): a Scroll axis draws no scrollbar (bevy_ui draws none; Blitz's overlay thumb would show once scrolled), Node's scrollbar_width is the gutter taffy keeps beside a scrolling axis (right of a y scroller, below an x one, past the padding), and IgnoreScroll is taken (a page isn't scrolled yet, so it keeps nodes where they are). The parity host has accesskit, a Bevy dev-dependency the example imports. Most of the example lies past the window (the root is as wide as its content, the viewport grid's auto track, in Bevy as here); a 40% list fails 2026-11-07 16:39:59 -08:00
shinyobjectz 9f91e35a8f FC0a: ui/ui_transform passes (SSIM 0.9991): buttons turned by UiTransform about their centres (a Left turned the other way or an unturned Bottom fails) 2026-11-07 16:36:40 -08:00
shinyobjectz 99428724de FC0a: ui/text/text_debug passes (SSIM 0.984): a TextSpan of size 0 or less is left out, as bevy_text's TextPipeline leaves it, and its Text's other runs laid out without it. The port works out the example's frame-rate figures over the host's 1/60 s steps from a first update at elapsed 0 (66.0 avg fps, 2852.5 deviation at frame 10, as Bevy draws them); a first update one step later fails 2026-11-07 16:34:20 -08:00
shinyobjectz 9027f9d1e5 FC0a: ui/text/text passes (SSIM 0.9909): FontFeatures on a Text or a TextSpan (FontFeatureTag's OpenType tags, as CSS's font-feature-settings, which Blitz gives parley). The parity host has a default_font feature of its own, on, since Bevy's examples ask cfg(feature = "default_font") of the crate they're built in. FPS shows 60.00 (the host steps by 1/60 s); pixel probes of the animated text's colour and the FPS digits tell a doubled clock and 59.99 from the real port 2026-11-07 16:31:57 -08:00
shinyobjectz 7ca949df87 FC0a: ui/scroll_and_overflow/overflow_transform passes (SSIM 0.9954): UiTransform (Val2 translation, Rot2 rotation clockwise, scale, about the node's centre after layout) as CSS's transform; BoxShadow as CSS's box-shadow, its blur Bevy's Gaussian deviation so CSS's is twice it (a spread or a percent is refused until Bevy's width-ratio spread is drawn); and bevy_color's Luminance darker and lighter on Srgba and LinearRgba. Each checked by conformance and a mutant; in the port, no shadow, reversed turns and no scale fail, and a pixel probe of the shadow's strip is closest at Bevy's offset and blur 2026-11-07 16:27:48 -08:00
shinyobjectz 1acea1b83e FC0a: ui/layout/size_constraints passes (SSIM 0.9915): its radio buttons are bevy_ui_widgets' headless RadioButton, so they're their Nodes 2026-11-07 16:23:23 -08:00
shinyobjectz 9e3f99ff54 FC0a: ui/ui_scaling (SSIM 0.9999; UiScale holds at 1 until an arrow key) and ui/layout/anchor_layout (0.9974; an absolute label's auto margins leave it at its static position, in Bevy as in CSS) pass 2026-11-07 16:23:23 -08:00
shinyobjectz c7530ccbdd FC0a: ui/layout/grid passes (SSIM 0.995): a Node's visibility (Inherited, Hidden, Visible) as CSS's, and a wrapped bevy_text box as wide as its widest line with its trailing spaces (parley's full_width, as TextPipeline::compute_size measures it), which centres a justify_items Center paragraph where Bevy does 2026-11-07 16:17:57 -08:00
shinyobjectz bea844ba6c FC0a: ui/text/text_wrap_debug ported (every LineBreak under every JustifyContent, at its default scale) 2026-11-07 16:12:52 -08:00
shinyobjectz 8c96f67da8 FC0a: UiTargetCamera (its roots drawn by their own Camera2d: a layer stacked by the camera's order; the window's main texture cleared by the first camera only, as bevy_render's ViewTarget does); ui/ui_target_camera ported 2026-11-07 16:11:08 -08:00
shinyobjectz 1b023081a6 FC0a: Viewport, the UI camera's viewport (bevy_camera's Viewport: its roots laid out in that region of the window, clipped to it); ui/relative_cursor_position ported 2026-11-07 16:08:12 -08:00
shinyobjectz be661a5f0b FC0a: bevy_ui's GhostNode (no box: its children its parent's, display: contents; at the top each a root); ui/layout/ghost_nodes ported, the parity host with Bevy's ghost_nodes feature 2026-11-07 16:00:26 -08:00
shinyobjectz abd167408a Page: a Vello draw that was skipped (a scene past its bump buffers: Vello's fine stage then writes nothing and reports no error, so a pooled layer showed its last frame's picture, or nothing) is found by a sentinel texel read back without a wait, and the frame read back next and those in flight are drawn again at Vello's own sizes, which stay on; a draw skipped at those too refuses the frame by its number. The check's cost on an ordinary 1080p page, five alternating 300-frame renders each: 257.7 fps without it, 253.3 with it. RAEA_VELLO_BUMP=full and RAEA_PAGE_DRAWN_CHECK=0 in docs/settings.md (closes #23) 2026-11-07 15:42:58 -08:00
shinyobjectz 03eaef2b66 FC0a: bevy_ui's grid (grid_template_rows and _columns of RepeatedGridTracks, grid_auto_rows/_columns/_flow, grid_row and grid_column GridPlacements, as CSS grid), UiRect.AUTO, and bevy_text's FontSource on a Text (a file, a family by name, a generic family as Bevy's fontique resolves it: raea-sys-fonts registers fontique's own generics as "raea-bevy <generic>" before mapping the page's as Chrome's); ui/text/generic_font_families ported, the parity host with system_font_discovery 2026-11-07 15:37:20 -08:00
shinyobjectz 4e570ce401 FC0a: bevy_ui's BorderGradient (the bottom layer over the border box, a node's own gradients over it clipped to the padding box; none without a border; a translucent background gradient over one refused); ui/styling/gradients ported 2026-11-07 15:18:13 -08:00
shinyobjectz 318b1939ab raea-page's premultiply pass (Premul, its WGSL and straight_target) moved to raea-sys-filters with the page's other fullscreen passes, raea-sys-page back under its 2000 lines 2026-11-07 15:08:26 -08:00
shinyobjectz d03eb9d7c9 FC0a: bevy_ui's gradients (BackgroundGradient: LinearGradient, RadialGradient, ConicGradient, ColorStops with hints, UiPosition, Bevy's radial shapes, Oklab by default) as CSS gradients, and a bevy_ui page blending in linear light as Bevy's UI does: vendor/vello_shaders' fine stage decodes every colour, ramp and texel from sRGB, blends, and encodes once (set_blend_linear, marked by data-raea-blend on each root Node); ui/styling/stacked_gradients ported 2026-11-07 15:05:29 -08:00
shinyobjectz 71a65438d8 FC0a: bevy_ui's stacking: every node a stacking context (ZIndex ranks among siblings above their parent), GlobalZIndex hoisted to the root's stacking context in Blitz, a cleared layered Canvas3D under the whole page; ui/layout/z_index ported (exact) 2026-11-07 14:49:48 -08:00
shinyobjectz 0730b9cd73 FC0a: InlineImage (a tinted picture in a Text's line), a Text's box its own measured block, as wide as its widest line once wrapped (bevy_text's laid-out size), Outline white by default; ui/text/inline_image and ui/window_fallthrough ported 2026-11-07 14:40:52 -08:00
shinyobjectz e3df1da170 FC0a: outline-offset and Bevy's outline corners in Blitz, corners resolved as Bevy's (CornerRadius, BorderRadius.px, clamped to the node), BorderColor per side, ImageNode in its own file; ui/styling/borders ported 2026-11-07 14:30:53 -08:00
shinyobjectz b4558ac472 FC0a: TextShadow and LetterSpacing on UI text, a centred or right-justified Text justified within its node's width; ui/widgets/button and ui/text/letter_spacing ported 2026-11-07 14:22:03 -08:00
shinyobjectz b952bb580b FC0a: a sliced UI picture takes an atlas cell (its rect in the layout, scaled to the sheet as Bevy's atlas UVs are); ui/images/ui_texture_atlas_slice ported 2026-11-07 14:14:59 -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 c6243796a3 raea a6df6e9b3 2026-11-06 21:07:12 -08:00
shinyobjectz 6153823132 raea aa607870a 2026-11-06 21:00:07 -08:00
shinyobjectz ad67361762 raea e2d2dd2c0 2026-11-06 20:49:59 -08:00