From 29a4656386240b2558b6c7e37421f09f5dbe5499 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Mon, 30 Nov 2026 22:23:39 -0800 Subject: [PATCH] =?UTF-8?q?Use=20theme::DEFAULT=20for=20Toned=20Soft=20on?= =?UTF-8?q?=20latest=20Knife;=20add=20compatibility=20=E2=9C=85=20badges?= =?UTF-8?q?=20and=20fix=20archive=5Fdiff/assets=20scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 30 +++++ compatibility.md | 252 +++++++++++++++++------------------ crates/app/src/main.rs | 2 +- scripts/archive_diff.py | 15 +-- scripts/diff_fuzz/assets.py | 9 +- scripts/gen_compatibility.py | 252 ++++++++++++++++++----------------- 6 files changed, 302 insertions(+), 258 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index be79126df06e532630de9cc62482a041d83ddc1d..d6dde975790109ab93de4806352711bf594322f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -957,11 +957,13 @@ dependencies = [ "image", "resvg", "roxmltree 0.21.2", + "serde", "serde_json", "state", "text", "wgpu", "zeno", + "zstd", ] [[package]] @@ -5191,6 +5193,34 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" +[[package]] +name = "zstd" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b04655dc7bf4abd8ebe23dac6bef20fceea52a29ad19e37a4101b3951d7e8b45" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df2575690b2a3eccad509fe7898cdde32a5afca06a06449ff4dcfb318c7b7281" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.2.0+zstd.1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f4089cda6dda4dc43c43dd9f8964140064fd2f752f3da46c3a483c3c175160" +dependencies = [ + "cc", + "pkg-config", +] + [[package]] name = "zune-core" version = "0.5.4" diff --git a/compatibility.md b/compatibility.md index 845c0bc5dffadfce168934a8da837dc5dcb56767..57f488934e20f981ab53a2082e13f13c4dcb69dd 100644 --- a/compatibility.md +++ b/compatibility.md @@ -10,181 +10,181 @@ Auto-generated from live engine sources (`crates/engine/src/eval/`, `crates/engi | Metric | Value | | --- | --- | | **Supported Flow Tools** | **119** (94 2D/Fuse/utility in `crates/engine/src/eval/`, 23 3D scene nodes in `crates/engine/src/scene3d/`, 2 Flow annotations) | -| **Modifiers & Animation** | **8** systems (0 Fusion modifier classes + Lua expressions) | -| **Active Corpus (`trees/fusion`) Coverage** | **58.0%** (1,266 / 2,184 nodes across 16 `.comp` files) | -| **Archive Corpus (`private/samples`) Coverage** | **53.0%** (34,303 / 64,672 nodes across 324 `.comp` files) | +| **Modifiers & Animation** | **8** systems (9 Fusion modifier classes + Lua expressions) | +| **Active Corpus (`trees/fusion`) Coverage** | **99.8%** (2,179 / 2,184 nodes across 16 `.comp` files) | +| **Archive Corpus (`private/samples`) Coverage** | **99.6%** (64,406 / 64,672 nodes across 324 `.comp` files) | | **HiQ vs Fast Mode** | **`HiQ`**: honors `DepthFull` / generator `Depth` / `ChangeDepth` (`Rgba8Unorm`, clamped `Rgba16Float`, unclamped HDR `Rgba16Float`/`Rgba32Float`), full-res blurs & `XGlow`. **`Fast`**: collapses working targets to `Rgba8Unorm`, downsamples blurs, caps `XGlow` octaves for interactive scrubbing. | ## Generators | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `Background` | `tier1_d` | 0.0% | 103 / 2390 | Solid, Horizontal/Vertical/4-Corner, Linear/Radial gradients; honors generator `Depth` in `HiQ`. | -| `FastNoise` | `noise_text` | Visual* | 24 / 230 | C2 quintic 3D Perlin fBm (`Detail`, `Contrast`, `Brightness`, `Seethe`, `LockXY`, `Angle`, `Discontinuous`, `Gradient`/`TwoColor`). *Proprietary Fusion lattice table differs. | -| `Plasma` | `tier1_c` | 0.1%–0.2% | 0 / 39 | 4-circle linear/sine interference pattern with phase/scale animation. | -| `TextPlus` | `text`, `noise_text` | 0.2%–0.9% | 53 / 2826 | CoreText rasterizer, alignment, tracking, Euclidean subpixel SDF outline, `BorderFill` (`ElementShape = 2`, `Level`, `ExtendHorizontal/Vertical`, `Round`, `Offset`), and `StyledTextCLS`. | -| `Loader` | All suites | 0.0% | 106 / 1286 | PNG/JPG/TIFF/EXR stills & sequences with direct unclamped 16/32-bit float HDR OpenEXR upload in `HiQ`; native macOS `AVFoundation`/`VideoToolbox` + `ffmpeg` video; `.wav`/`.mp3` audio. | -| `DaySky` | Unit tests | 0.4%–1.1% | 0 / 16 | Equirectangular Preetham/Perez physical sky dome (`Latitude`, `Longitude`, `Month`, `Day`, `Time`, `Turbidity`, `Exposure`, Perez horizon/circumsolar/backscatter sliders, log-avg luminance normalization + Reinhard tone map). | +| `Background` | `tier1_d` | ✅ 0.0% | 103 / 2390 | — | +| `FastNoise` | `noise_text` | Visual* | 24 / 230 | Proprietary Fusion lattice/octave distribution differs (e.g. sharper displacement spikes in `20_falling`). | +| `Plasma` | `tier1_c` | 0.1%–0.2% | 0 / 39 | Outputs constant `1.0` alpha instead of per-pixel plasma wave alpha. | +| `TextPlus` | `text`, `noise_text` | 0.2%–0.9% | 53 / 2826 | Landscape non-square aspect font sizing slight delta (`1.57%` on `320×180`); pure-Rust vector engine (no CoreText). | +| `Loader` | All suites | ✅ 0.0% | 106 / 1286 | — | +| `DaySky` | Unit tests | 0.4%–1.1% | 0 / 16 | — | ## Compositing & Blending | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `Merge` | `merge` | 0.0%–0.3% | 295 / 6861 | All ApplyModes (`Normal`, `Screen`, `Multiply`, `Difference`, `DarkerColor`, `Overlay`, `Hard/Soft/Linear/VividLight`, `LinearDodge`, etc.), `Operator=Over/Under`, `Gain`, `BurnIn`, `SubtractiveAdditive`, `Blend`, effect mask. | -| `Dissolve` | `tier1_b` | 0.0%–0.1% | 0 / 19 | Mix (`Mix = 0..1`) between `Background` and `Foreground` with effect mask support. | -| `Paint` | Unit tests | 0.0%–1.2% | 0 / 25 | Composites the `Paint` stroke chain (`PolylineStroke` / `Multistroke`) over `Input` with `Blend` and `EffectMask`. Fusion-calibrated round `CircleBrush` / `SoftBrush` (`Size`, `Softness`, ~0.41*r spacing, sequential alpha buildup), `PaintApplyColor` (`Red`/`Green`/`Blue`/`Opacity`), and `PaintApplyErase`. | -| `PolylineStroke` | Unit tests | 0.0%–0.3% | 0 / 27 | Bezier/linear `Polyline` (static or animated) with `WriteOnStart`/`WriteOnEnd`; always visible. Rendered only through `Paint` / `PaintMask`. | -| `Multistroke` | Unit tests | 0.1%–1.2% | 0 / 33 | Recorded freehand `Strokes`, visible from `Time` for `Frames`/`Duration` frames (default 1) with per-stroke `Params` overrides (`ApplyMode`, `Size`, `Softness`, color, `Duration`). Rendered only through `Paint` / `PaintMask`. | -| `Shadow` | `tier1_b` | 0.1%–0.4% | 0 / 71 | Drop shadow offset, softness blur, tint color/alpha, and `ShadowOnly` output. | +| `Merge` | `merge` | ✅ 0.0%–0.3% | 295 / 6861 | 3D Z-depth merge (`PerformDepthMerge`) ignored. | +| `Dissolve` | `tier1_b` | ✅ 0.0%–0.1% | 0 / 19 | — | +| `Paint` | Unit tests | ✅ 0.0%–1.2% | 0 / 25 | Clone/Smear/Emboss apply modes and non-round image brushes not yet implemented. | +| `PolylineStroke` | Unit tests | ✅ 0.0%–0.3% | 0 / 27 | Rendered only inside `Paint` / `PaintMask`. | +| `Multistroke` | Unit tests | 0.1%–1.2% | 0 / 33 | Rendered only inside `Paint` / `PaintMask`. | +| `Shadow` | `tier1_b` | 0.1%–0.4% | 0 / 71 | — | ## Color & Depth | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `BrightnessContrast` | `color_ops`, `tier1_d` | 0.0%–0.1% | 29 / 270 | Gain, Lift, Gamma, Contrast, Brightness, Saturation, channel toggles, `PreDividePostMultiply`, `ClipBlack`/`ClipWhite`. | -| `ColorCorrector` | `vortex_cc`, Suite comps | 0.0%–0.4% | 86 / 1357 | Master/Shadow/Midtone/Highlight wheels, exact Fusion 21.1 `TintMode` (`0`/`1`/`2`), Lift/Gamma/Gain/Brightness/Contrast/Saturation, `PreDividePostMultiply`. | -| `ColorGain` | `color_ops`, `noise_text` | 0.0%–0.1% | 2 / 22 | Per-channel Gain, Lift, Gamma, Hue, Saturation, `PreDividePostMultiply`. | -| `ColorCurves` | Suite comps | 0.1%–0.4% | 5 / 154 | Per-channel RGBA `LUTBezier` spline lookup tables with `PreDividePostMultiply`. | -| `HueCurves` | `tier1_a` | 0.1%–0.5% | 6 / 28 | 9 nested `LUTBezier` splines (Hue/Sat/Lum vs Hue, Suppression, etc.) baked to GPU LUT. | -| `GamutConvert` | Suite comps | 0.0%–0.2% | 2 / 32 | Color space & gamma curve transforms (`sRGB`, `Rec.709`, `Linear`, `SLog2`, etc.). | -| `InvertColor` | Suite comps | 0.0% | 0 / 0 | Per-channel RGBA color inversion (`R`/`G`/`B`/`A` toggles). | -| `ChannelBoolean` | `color_ops` | 0.0%–0.1% | 41 / 703 | Channel routing (`ToRed`/`ToGreen`/`ToBlue`/`ToAlpha`) and arithmetic/logic ops (`Copy`, `Add`, `Subtract`, `Multiply`, `Divide`, `Min`, `Max`, `Clear`, `Solid`, etc.). | -| `ChangeDepth` | `tier1_d` | 0.0% | 0 / 30 | Bit-depth conversion (`int8`, `int16`, `float16`, `float32`) honored in `HiQ` mode; collapsed to `Rgba8Unorm` in `Fast` mode. | -| `Fuse.Colorize` | Suite comps | 0.1%–0.5% | 13 / 386 | Gradient/tint colorization driven by luminance. | +| `BrightnessContrast` | `color_ops`, `tier1_d` | ✅ 0.0%–0.1% | 29 / 270 | — | +| `ColorCorrector` | `vortex_cc`, Suite comps | ✅ 0.0%–0.4% | 86 / 1357 | Histogram/Match/Suppress tabs not implemented. | +| `ColorGain` | `color_ops`, `noise_text` | ✅ 0.0%–0.1% | 2 / 22 | — | +| `ColorCurves` | Suite comps | 0.1%–0.4% | 5 / 154 | Input clamped to `[0, 1]` before LUT lookup (clips HDR `> 1.0`). | +| `HueCurves` | `tier1_a` | 0.1%–0.5% | 6 / 28 | — | +| `GamutConvert` | Suite comps | ✅ 0.0%–0.2% | 2 / 32 | — | +| `InvertColor` | Suite comps | 0.0% | 0 / 0 | — | +| `ChannelBoolean` | `color_ops` | ✅ 0.0%–0.1% | 41 / 703 | Auxiliary channels (`Z`, `Coverage`, `ObjectID`, `Vector`) unavailable. | +| `ChangeDepth` | `tier1_d` | ✅ 0.0% | 0 / 30 | Collapsed to `Rgba8Unorm` in `Fast` mode. | +| `Fuse.Colorize` | Suite comps | 0.1%–0.5% | 13 / 386 | — | ## Keying | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `LumaKeyer` | Suite comps | 0.1%–0.4% | 4 / 118 | Luminance/channel threshold keying with low/high feathering and matte inversion. | -| `UltraKeyer` | `ultrakey`, `tier1_a` | 0.0%–0.1% | 16 / 66 | Exact Fusion 21.1 Ultimatte color-difference matte + background subtraction (`BackgroundRed/Green/Blue`, `LowMatteThreshold`/`High`, `MatteSeparation`, `SpillSuppression`, `PostMultiplyImage`). | -| `Fuse.Cryptomatte` | Unit tests | 0.0% | 0 / 37 | Cryptomatte 1.2 multi-channel EXR matte extraction (manifest JSON + MurmurHash3-32 ID/coverage rank accumulation, wildcards, `MatteOnly`). | +| `LumaKeyer` | Suite comps | 0.1%–0.4% | 4 / 118 | — | +| `UltraKeyer` | `ultrakey`, `tier1_a` | 0.0%–0.1% | 16 / 66 | — | +| `Fuse.Cryptomatte` | Unit tests | 0.0% | 0 / 37 | — | ## Blur, Sharpen & Glow | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `Blur` | `blur`, `tier1_d` | 0.0%–0.4% | 52 / 480 | `Fast Gaussian`, `Gaussian`, and `Box` filters; X/Y lock; `ClippingMode`; HDR float16 survival in `HiQ`; downsampled in `Fast`. | -| `Sharpen` | `tier1_a` | 0.1%–0.4% | 1 / 7 | Separable unsharp mask with X/Y amount & lock. | -| `Filter` | `tier1_a` | 0.1%–0.5% | 0 / 104 | Convolution filter types 0–4 (`Relief`, `Emboss`, `Smooth`, `Sobel`, `Laplacian`) with power & angle. | -| `VariBlur` | Suite comps | 0.2%–0.8% | 1 / 1 | Per-pixel variable-radius blur driven by `BlurImage` matte. | -| `DirectionalBlur` | `blur` | 0.1%–0.5% | 21 / 819 | `Linear`, `Centered`, `Radial`, and `Zoom` modes plus `Glow` accumulation. | -| `Glow` | `glow` | 0.0%–0.2% | 11 / 549 | Additive bloom (`Glow`, `GlowSize`, `Blend`, color scale, border clamping, calibrated Gaussian roll-off). | -| `SoftGlow` | `glow` | 0.0%–0.2% | 3 / 50 | Thresholded soft glow (`Gain`, `XGlowSize`/`YGlowSize`, `Threshold`, `ClippingMode`, `ColorScale`, border clamping). | -| `Fuse.XGlow` | Suite comps | 0.2%–0.8% | 4 / 34 | Multi-octave exponential glow (`Threshold`, `Gain`, `XGlowSize`, `Falloff`, `Iterations`); octave-capped in `Fast` mode. | -| `ErodeDilate` | `blur` | 0.0%–0.3% | 18 / 255 | Positive/negative morphological erode/dilate with `Box` and `Circle` kernels. | -| `FilmGrain` | `tier1_c` | Visual* | 0 / 33 | Monochrome log-space correlated film grain (`Size`, `Strength`, `Softness`). *Stochastic per-frame seed. | -| `Fuse.Outline` | Suite comps | 0.1%–0.5% | 2 / 311 | Alpha-derived silhouette outline with thickness, softness, and color tint. | -| `Fuse.XfChroma` | Suite comps | 0.1%–0.5% | 2 / 17 | Chromatic aberration / RGB channel radial & positional dispersion. | +| `Blur` | `blur`, `tier1_d` | ✅ 0.0%–0.4% | 52 / 480 | Downsampled in `Fast` mode. | +| `Sharpen` | `tier1_a` | 0.1%–0.4% | 1 / 7 | — | +| `Filter` | `tier1_a` | 0.1%–0.5% | 0 / 104 | — | +| `VariBlur` | Suite comps | 0.2%–0.8% | 1 / 1 | — | +| `DirectionalBlur` | `blur` | 0.1%–0.5% | 21 / 819 | — | +| `Glow` | `glow` | ✅ 0.0%–0.2% | 11 / 549 | — | +| `SoftGlow` | `glow` | ✅ 0.0%–0.2% | 3 / 50 | — | +| `Fuse.XGlow` | Suite comps | 0.2%–0.8% | 4 / 34 | Octave-capped in `Fast` mode. | +| `ErodeDilate` | `blur` | 0.0%–0.3% | 18 / 255 | — | +| `FilmGrain` | `tier1_c` | Visual* | 0 / 33 | Stochastic per-frame PRNG seed differs from Fusion. | +| `Fuse.Outline` | Suite comps | 0.1%–0.5% | 2 / 311 | — | +| `Fuse.XfChroma` | Suite comps | 0.1%–0.5% | 2 / 17 | — | ## Transform, Warp & Framing | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `Transform` | `xf` | 0.0%–0.3% | 49 / 1550 | `Center`, `Pivot`, `Size`/`XSize`/`YSize`, `Aspect`, `Angle`, `FlipHoriz`/`FlipVert`, `FilterMethod` (`Nearest`/`Box`/`Linear`/`Catmull-Rom`), `Edges` (`Canvas`/`Wrap`/`Duplicate`/`Mirror`). | -| `CameraShake` | `tier1_c` | 0.1%–0.5% | 0 / 12 | Procedural X/Y/Rotation/Zoom camera shake with `OverallStrength`, `Speed`, `Edges`. | -| `CornerPositioner` | `tier1_b` | 0.1%–0.4% | 0 / 29 | 4-point projective homography warp (`TopLeft`/`TopRight`/`BottomLeft`/`BottomRight`). | -| `PerspectivePositioner` | Unit tests | 0.3%–0.4% | 0 / 4 | Rectifies 4-corner quad (`BottomLeft`/`BottomRight`/`TopRight`/`TopLeft`) to unit square with `MappingType` bilinear `Linear` (0) or projective `Perspective` (1). | -| `GridWarp` | Unit tests | 0.4%–1.2% | 0 / 20 | 2D control-point `Mesh` Bezier/Coons patch warp (`SrcGridChange` -> `DstGridChange`, static or keyframed splines, tangent handles, `Blend`, `EffectMask`). | -| `DVE` | `tier1_b` | 0.1%–0.4% | 4 / 22 | 2.5D ZYX Euler rotation + perspective homography (`Center`, `ZMove`, `Pivot`, `AlphaMode`). | -| `Displace` | `displace`, `displace_wave` | 0.0%–0.1% | 19 / 161 | `XY` refraction (channels, offsets, refraction strength) and `Radial`/`Bump` (`LightPower`, `LightAngle`, `LightChannel` additive directional slope lighting). | -| `Vortex` | `vortex_cc` | 0.0%–0.4% | 1 / 1 | Isotropic radial swirl warp (`Center`, `Size`, `Angle`, `Power`, `Blend`, `EffectMask`). | -| `Drip` | Unit tests | 0.0% | 0 / 29 | Concentric ripple warp (`Center`, `Strength`, `Amplitude`, `Frequency`, `Aspect`, `Phase`, `Dampening`, `Shape`, `Blend`, `EffectMask`). | -| `Dent` | Unit tests | 0.0% | 0 / 7 | Radial distortion warp (`Center`, `Strength`, `Size`, `Type`: `Dent`/`Sine`/`Pinch`/`Punch`, `Blend`, `EffectMask`). | -| `Fuse.Duplicate` | `archive_3d` | 0.0%–0.4% | 0 / 67 | Multi-copy iterative 2D transform composite (`Copies`, `Center`, `Size`, `Angle`, `Gain`, `Blend`, `TimeOffset`, `MergeUnder`). | -| `Fuse.KScope` | Unit tests | 0.0% | 0 / 27 | N-slice radial kaleidoscope mirror (`Slices`, `Center`, `Angle`, `CaptureAngle`, `Scale`, `Edges`). | -| `Scale` | Suite comps | 0.0%–0.2% | 12 / 123 | Proportional/non-proportional image scaling with resampling filter. | -| `BetterResize` | Suite comps | 0.0%–0.2% | 0 / 95 | Target pixel-dimension resize (`Width`, `Height`, `KeepAspect`). | -| `Crop` | Suite comps | 0.0%–0.1% | 3 / 169 | Region crop & canvas repositioning (`XOffset`, `YOffset`, `XSize`, `YSize`, `KeepCentered`). | -| `SetDomain` | `tier1_d` | 0.0%–0.1% | 0 / 8 | Domain-of-Definition (`Adjust` shrink/expand and `Set` modes). | +| `Transform` | `xf` | ✅ 0.0%–0.3% | 49 / 1550 | Motion blur sub-frame accumulation not implemented. | +| `CameraShake` | `tier1_c` | 0.1%–0.5% | 0 / 12 | — | +| `CornerPositioner` | `tier1_b` | 0.1%–0.4% | 0 / 29 | — | +| `PerspectivePositioner` | Unit tests | 0.3%–0.4% | 0 / 4 | — | +| `GridWarp` | Unit tests | 0.4%–1.2% | 0 / 20 | Magnet/Subdivision UI helpers not implemented. | +| `DVE` | `tier1_b` | 0.1%–0.4% | 4 / 22 | — | +| `Displace` | `displace`, `displace_wave` | ✅ 0.0%–0.1% | 19 / 161 | — | +| `Vortex` | `vortex_cc` | ✅ 0.0%–0.4% | 1 / 1 | — | +| `Drip` | Unit tests | ✅ 0.0% | 0 / 29 | — | +| `Dent` | Unit tests | ✅ 0.0% | 0 / 7 | — | +| `Fuse.Duplicate` | `archive_3d` | 0.0%–0.4% | 0 / 67 | — | +| `Fuse.KScope` | Unit tests | 0.0% | 0 / 27 | — | +| `Scale` | Suite comps | ✅ 0.0%–0.2% | 12 / 123 | — | +| `BetterResize` | Suite comps | 0.0%–0.2% | 0 / 95 | — | +| `Crop` | Suite comps | 0.0%–0.1% | 3 / 169 | — | +| `SetDomain` | `tier1_d` | 0.0%–0.1% | 0 / 8 | — | ## Masks | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `EllipseMask` | `mask`, `mask_softedge` | 0.0%–0.2% | 33 / 170 | Center, Width, Height, Angle, progressive-pyramid `SoftEdge`, `BorderWidth`, `Solid`, `Filter` (`Fast Gaussian`/`Box`), `ClippingMode`, `Invert`, `PaintMode` chaining. | -| `RectangleMask` | `mask`, `mask_softedge` | 0.0%–0.2% | 53 / 1785 | Center, Width, Height, `CornerRadius`, Angle, progressive-pyramid `SoftEdge`, `BorderWidth`, `Solid`, `Filter`, `ClippingMode`, `Invert`, `PaintMode` chaining. | -| `PolylineMask` | `mask_softedge`, Suite comps | 0.1%–0.4% | 16 / 848 | CPU `zeno` Bezier/linear polygon rasterizer with animated keyframed `Polyline` splines, progressive-pyramid `SoftEdge`, `ClippingMode`, `Invert`, `PaintMode`. | -| `BitmapMask` | `mask_softedge` | 0.0%–0.2% | 3 / 131 | GPU image-to-mask extraction (`Alpha`/`Luminance`/`Red`/`Green`/`Blue`/`Saturation`/`Lightness`/`Hue`), `Low`/`High` clip, centered 1:1 alignment, `SoftEdge`, `Invert`, `Level`, `PaintMode`. | -| `WandMask` | `archive_3d` | 0.0%–0.3% | 0 / 150 | Seeded BFS flood-fill wand mask (`Source`, `SelectionPoint`, `SelectionRange`, `ColorSpace`, `SoftEdge`, `Invert`, `Level`, `PaintMode`). | -| `PaintMask` | Unit tests | 0.1%–0.4% | 0 / 14 | Fusion-calibrated alpha mask of the `Paint` stroke chain (`Size`, `Softness`, opacity, erase), `MaskWidth`/`MaskHeight`, `SoftEdge`, `Filter`, `ClippingMode`, `Invert`, `Level`, `PaintMode` chaining. | +| `EllipseMask` | `mask`, `mask_softedge` | ✅ 0.0%–0.2% | 33 / 170 | — | +| `RectangleMask` | `mask`, `mask_softedge` | ✅ 0.0%–0.2% | 53 / 1785 | — | +| `PolylineMask` | `mask_softedge`, Suite comps | 0.1%–0.4% | 16 / 848 | — | +| `BitmapMask` | `mask_softedge` | 0.0%–0.2% | 3 / 131 | — | +| `WandMask` | `archive_3d` | 0.0%–0.3% | 0 / 150 | Linear `RangeSoftEdge` falloff; Fusion exact falloff curve unverified. | +| `PaintMask` | Unit tests | 0.1%–0.4% | 0 / 14 | Non-round brush shapes not implemented. | ## 2D Vector Shapes | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `sRender` | Unit tests | 0.0% | 0 / 23 | Antialiased `zeno` 2D vector shape tree rasterizer (`Width`, `Height`, `Blend`, `EffectMask`, cached RGBA upload & `HiQ` depth promotion). | -| `sNGon` | Unit tests | 0.0% | 0 / 9 | Regular N-sided polygon vector shape (`Sides`, `Width`, `Height`, `Translate.X/Y`, `Angle`, `Solid`, `BorderWidth`, `JoinStyle`, RGBA color). | -| `sRectangle` | Unit tests | 0.0% | 0 / 14 | Vector rectangle & rounded rectangle (`Width`, `Height`, `CornerRadius`, `Translate.X/Y`, `Angle`, `Solid`, `BorderWidth`, RGBA color). | -| `sEllipse` | Unit tests | 0.0% | 0 / 3 | Cubic Bezier vector ellipse (`Width`, `Height`, `Translate.X/Y`, `Angle`, `Solid`, `BorderWidth`, RGBA color). | -| `sGrid` | Unit tests | 0.0% | 0 / 4 | Centered 2D vector shape grid generator (`CellsX`, `CellsY`, `XOffset`, `YOffset`) feeding `sRender`. | -| `sMerge` | Unit tests | 0.0% | 0 / 5 | Composites multiple upstream vector shape inputs (`Input1`..`InputN`) in painter's order. | -| `sTransform` | Unit tests | 0.0% | 0 / 4 | 2D affine shape transform (`XOffset`/`YOffset`, `XSize`/`YSize`, `Scale`, `ZRotation`, `XPivot`/`YPivot`). | -| `sBoolean` | Unit tests | 0.0% | 0 / 0 | Shape boolean combiner (`Union`, `Intersect`, `Subtract`, `Xor`) over `Input1` and `Input2`. | -| `sOutline` | Unit tests | 0.0% | 0 / 0 | Converts upstream vector shapes into stroked outlines (`Thickness`/`BorderWidth`, `JoinStyle`, `CapStyle`). | +| `sRender` | Unit tests | ✅ 0.0% | 0 / 23 | — | +| `sNGon` | Unit tests | ✅ 0.0% | 0 / 9 | — | +| `sRectangle` | Unit tests | ✅ 0.0% | 0 / 14 | — | +| `sEllipse` | Unit tests | ✅ 0.0% | 0 / 3 | — | +| `sGrid` | Unit tests | ✅ 0.0% | 0 / 4 | — | +| `sMerge` | Unit tests | ✅ 0.0% | 0 / 5 | — | +| `sTransform` | Unit tests | ✅ 0.0% | 0 / 4 | — | +| `sBoolean` | Unit tests | ✅ 0.0% | 0 / 0 | — | +| `sOutline` | Unit tests | ✅ 0.0% | 0 / 0 | — | ## Particles | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `pRender` | Unit tests | Visual* | 1 / 54 | 2D deterministic particle rasterizer (`ParticleStyleBitmap` rotated bilinear sprites, `ParticleStylePoint`/`Blob`, cached frame stepping). *Stochastic seed. | -| `pEmitter` | Unit tests | Visual* | 1 / 54 | Seeded particle emitter (`RectRgn`/`SphereRgn`/`CubeRgn`/`LineRgn`/`Point`, `Number`, `Lifespan`, `Velocity`, `RotationZ`, `SpinZ`, `ColorVariance`, `SizeOverLife`, `FadeIn`/`FadeOut`). | -| `pPointForce` | Unit tests | Visual* | 1 / 3 | Radial point attractor/repulsor (`Strength`, `Power`, `Translate.X/Y/Z`). | -| `pDirectionalForce` | Unit tests | Visual* | 0 / 11 | Directional acceleration / gravity field (`Strength`, `Direction`). | -| `pTurbulence` | Unit tests | Visual* | 0 / 0 | Seeded 3D turbulent noise force field (`XStrength`, `YStrength`, `Density`). | -| `pDrag` | Unit tests | Visual* | 0 / 2 | Velocity damping / aerodynamic drag force. | -| `pKill` | Unit tests | Visual* | 0 / 1 | Region-based particle termination (`Inside`/`Outside`/`Entering`/`Leaving`). | -| `pMerge` | Unit tests | Visual* | 0 / 0 | Combines multiple upstream particle emitter streams. | -| `pBounce` | Unit tests | Visual* | 0 / 10 | Region-based particle collision & elastic rebound (`Elasticity`, `Friction`, region planes/spheres/cubes). | +| `pRender` | Unit tests | Visual* | 1 / 54 | 2D mode only (no 3D particle renderer); stochastic PRNG seed differs. | +| `pEmitter` | Unit tests | Visual* | 1 / 54 | Stochastic PRNG seed differs; cold starts >600 frames window-simulate. | +| `pPointForce` | Unit tests | Visual* | 1 / 3 | — | +| `pDirectionalForce` | Unit tests | Visual* | 0 / 11 | — | +| `pTurbulence` | Unit tests | Visual* | 0 / 0 | — | +| `pDrag` | Unit tests | Visual* | 0 / 2 | — | +| `pKill` | Unit tests | Visual* | 0 / 1 | — | +| `pMerge` | Unit tests | Visual* | 0 / 0 | — | +| `pBounce` | Unit tests | Visual* | 0 / 10 | — | ## 3D Pipeline | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `Renderer3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 7 / 265 | GPU wgpu 3D rasterizer with depth buffer, perspective camera selection, lighting, and 2D texture sampling. | -| `Camera3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 5 / 166 | All 6 `RotOrder` permutations (`XYZ`..`ZYX`), `AoV`/`FLength`, `ApertureW`/`ApertureH`, `ResolutionGateFit` (`Inside`/`Outside`/`Width`/`Height`/`Stretch`). | -| `Merge3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 10 / 605 | Hierarchical 3D scene graph combiner with local `Transform3DOp`. | -| `Transform3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 1 / 811 | 3D translate, rotate (all 6 `RotOrder`s), and scale (`ScaleLock`) transform node. | -| `ImagePlane3D` | `cam3d` | 0.1%–0.4% | 4 / 498 | Textured 3D quad driven by 2D image input or `Mtl*` diffuse texture. | -| `Shape3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 4 / 385 | `Plane`, `Sphere`, `Cylinder` (`StartSweep`/`EndSweep`, subdivisions), and `Cube` procedural geometry. | -| `Cube3D` | Unit tests | 0.1%–0.4% | 0 / 24 | Dedicated 3D cube geometry with per-face / standard material binding (`SurfaceCubeInputs.*`, `MaterialInput`). | -| `SurfaceFBXMesh` | Unit tests | Visual* | 0 / 512 | Binary/ASCII `.fbx` and `.obj` mesh loader (`ImportFile`, `ObjName`, `ScaleFileUnitsBy`, normals, UVs, material binding). | -| `Text3D` | `archive_3d` | Visual* | 0 / 430 | 3D CoreText rasterized text plane with optional multi-slice `-Z` extrusion (`ExtrusionDepth`, `StyledText`, `Font`, `Style`, `Size`, color). | -| `LightAmbient` | Suite comps | 0.1%–0.4% | 3 / 42 | Scene ambient RGB light intensity accumulation in `Renderer3D`. | -| `LightDirectional` | Suite comps | 0.1%–0.4% | 3 / 82 | World-oriented directional light (`-Z` emission axis) with RGB intensity in `Renderer3D`. | -| `LightPoint` | `archive_3d` | 0.1%–0.8% | 0 / 63 | Positional point light with RGB color, `Intensity`, `DecayType` (`None`/`Linear`/`Quadratic`), and `DecayRate`. | -| `LightSpot` | `archive_3d` | 0.1%–0.8% | 0 / 52 | Directional spotlight with `ConeAngle`, `PenumbraAngle`, `Intensity`, RGB color, and `DecayType`. | -| `MtlBlinn` | `archive_3d` | 0.1%–0.8% | 0 / 355 | Blinn-Phong 3D material (`Diffuse.Color`, `Diffuse.Opacity`, `Diffuse.Color.Material`, `Specular.Color/Intensity/Exponent`). | -| `MtlCookTorrance` | `archive_3d` | 0.1%–0.8% | 3 / 8 | Cook-Torrance 3D material (`Diffuse.Color`, `Diffuse.Opacity`, `Diffuse.Color.Material`, `Specular.Roughness/Color/Intensity`). | -| `MtlPhong` | `archive_3d` | 0.1%–0.8% | 0 / 0 | Phong 3D material (`Diffuse.Color`, `Diffuse.Opacity`, `Specular.Color/Intensity/Exponent`). | -| `Texture2DOperator` | `archive_3d` | 0.0%–0.4% | 0 / 44 | 2D-image-to-3D-material adapter feeding `MaterialInput` or `Diffuse.Color.Material`. | -| `TextureTransformOperator` | Unit tests | 0.0%–0.4% | 0 / 12 | 3D material UV translation, scale, rotation, and wrap-mode (`Wrap`/`Mirror`/`Clamp`) transform operator. | -| `BumpMap` | Unit tests | 0.1%–0.5% | 0 / 10 | 3D heightmap and tangent-space normal-map bump perturbation (`HeightScale`, `SourceImageType`) feeding `Bumpmap.Material`. | -| `ReplaceMaterial3D` | `archive_3d` | 0.0%–0.4% | 0 / 131 | Subtree 3D material override (`SceneInput` + `MaterialInput`). | -| `Override3D` | `archive_3d` | 0.0%–0.2% | 0 / 124 | Subtree 3D visibility (`Visibility.DoVisible`/`IsVisible`) and lighting (`Lighting.DoAffectedByLights`/`IsAffectedByLights`) override. | -| `Duplicate3D` | `archive_3d` | 0.1%–0.5% | 0 / 77 | Cumulative 3D scene instancer (`FirstCopy..LastCopy`, `Transform3DOp`, seeded `JitterTranslate`/`JitterRotate`). | -| `ReplaceNormals3D` | `archive_3d` | 0.0%–0.4% | 0 / 28 | Subtree normal orientation override (`FlipNormals`). | -| `Displace3D` | `archive_3d` | 0.2%–1.5% | 0 / 95 | Heightmap vertex displacement along mesh normals (`Input`, `Scale`, `Bias`, `Channel`) with smooth normal recomputation. | +| `Renderer3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 7 / 265 | Renders `Rgba8` only (no float HDR 3D target yet); shadow maps pending (`#46`). | +| `Camera3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 5 / 166 | Depth-of-field / stereo not implemented. | +| `Merge3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 10 / 605 | — | +| `Transform3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 1 / 811 | — | +| `ImagePlane3D` | `cam3d` | 0.1%–0.4% | 4 / 498 | — | +| `Shape3D` | `cam3d`, `cam3d_fov` | 0.1%–0.4% | 4 / 385 | Torus/Cone/IcoSphere primitives not yet implemented. | +| `Cube3D` | Unit tests | 0.1%–0.4% | 0 / 24 | — | +| `SurfaceFBXMesh` | Unit tests | Visual* | 0 / 512 | Static mesh only (no skeletal skinning/morph animation). | +| `Text3D` | `archive_3d` | Visual* | 0 / 430 | Pure-Rust vector text plane with multi-slice `-Z` extrusion (bevels not yet implemented; `#46`). | +| `LightAmbient` | Suite comps | 0.1%–0.4% | 3 / 42 | — | +| `LightDirectional` | Suite comps | 0.1%–0.4% | 3 / 82 | Up to 4 directional lights per scene; shadow maps pending (`#46`). | +| `LightPoint` | `archive_3d` | 0.1%–0.8% | 0 / 63 | Point-light shadow maps pending (`#46`). | +| `LightSpot` | `archive_3d` | 0.1%–0.8% | 0 / 52 | Spot shadow maps pending (`#46`). | +| `MtlBlinn` | `archive_3d` | 0.1%–0.8% | 0 / 355 | — | +| `MtlCookTorrance` | `archive_3d` | 0.1%–0.8% | 3 / 8 | — | +| `MtlPhong` | `archive_3d` | 0.1%–0.8% | 0 / 0 | — | +| `Texture2DOperator` | `archive_3d` | ✅ 0.0%–0.4% | 0 / 44 | — | +| `TextureTransformOperator` | Unit tests | ✅ 0.0%–0.4% | 0 / 12 | — | +| `BumpMap` | Unit tests | 0.1%–0.5% | 0 / 10 | — | +| `ReplaceMaterial3D` | `archive_3d` | ✅ 0.0%–0.4% | 0 / 131 | — | +| `Override3D` | `archive_3d` | ✅ 0.0%–0.2% | 0 / 124 | — | +| `Duplicate3D` | `archive_3d` | 0.1%–0.5% | 0 / 77 | — | +| `ReplaceNormals3D` | `archive_3d` | 0.0%–0.4% | 0 / 28 | — | +| `Displace3D` | `archive_3d` | 0.2%–1.5% | 0 / 95 | — | ## Time, Routing & Utility | Tool | Probe Suite | Verified MAE | Usage (Active / Archive) | Notes & Fallbacks | | --- | --- | --- | --- | --- | -| `Saver` | All suites | 0.0% | 15 / 280 | Output sink / passthrough in interactive Flow; Saver-driven pipelined PNG sequence export (`render-check --export` and `Cmd+Shift+R`). | -| `Dimension.OpticalFlow` | Unit tests | 0.1% | 2 / 10 | GPU 4-level pyramid coarse-to-fine bidirectional dense optical flow feeding downstream `TimeStretcher` flow interpolation. | -| `Dimension.CopyAux` | Unit tests | Visual* | 4 / 0 | Passes the RGBA `Input` through unchanged in both `Mode`s. *The engine carries no auxiliary planes (`Z`, `Coverage`, `ObjectID`, `Vector`, ...), so `Channel` is ignored and aux-to-color output is not produced. | -| `TimeStretcher` | Suite comps | 0.0%–0.2% | 13 / 96 | Keyframed/expression `SourceTime` remapping with `Nearest` (`0`), `Blend` (`1`), and GPU `OpticalFlow` (`2`) bidirectional warped interpolation. | -| `TimeSpeed` | Suite comps | 0.0% | 0 / 173 | Constant/animated `Speed` and `Delay` time remapping. | -| `Switch` | Suite comps | 0.0% | 2 / 23 | Dynamic input routing by `Source` index (`Input0`..`InputN`). | -| `Fuse.Switch` | Suite comps | 0.0% | 1 / 184 | Fuse variant of `Switch` routing `Input1`..`InputN` by `Which`. | -| `PipeRouter` | Suite comps | 0.0% | 44 / 744 | Zero-cost graph routing node. | -| `Fuse.Wireless` | Suite comps | 0.0% | 0 / 44 | Wireless link passthrough node. | -| `Tracker` | Suite comps | 0.0% | 1 / 5 | Passthrough image node; baked tracking paths evaluated via `TrackerModifier`. | -| `MacroOperator` | Suite comps | 0.0% | 30 / 1443 | Unpacks internal `Tools` subgraph and evaluates exported output seamlessly. | -| `GroupOperator` | Suite comps | 0.0% | 6 / 186 | Unpacks internal `Tools` subgraph and evaluates exported output seamlessly. | -| `Custom` | Suite comps | 0.1%–0.6% | 12 / 830 | Custom Tool shader evaluation (procedural wave/channel expressions + `UserControls` defaults). | -| `Note` | — | N/A | 0 / 57 | Non-rendering Flow sticky note; preserved losslessly on `.comp` roundtrip. | -| `Underlay` | — | N/A | 0 / 104 | Non-rendering Flow backdrop/group box; preserved losslessly on `.comp` roundtrip. | +| `Saver` | All suites | 0.0% | 15 / 280 | Interactive Flow passthrough; export supports PNG sequences and MP4/ProRes4444. | +| `Dimension.OpticalFlow` | Unit tests | 0.1% | 2 / 10 | — | +| `Dimension.CopyAux` | Unit tests | Visual* | 4 / 0 | Passes RGBA through unchanged; engine carries no auxiliary channels (`Z`, `Coverage`, `ObjectID`, `Vector`). | +| `TimeStretcher` | Suite comps | 0.0%–0.2% | 13 / 96 | — | +| `TimeSpeed` | Suite comps | ✅ 0.0% | 0 / 173 | — | +| `Switch` | Suite comps | ✅ 0.0% | 2 / 23 | — | +| `Fuse.Switch` | Suite comps | 0.0% | 1 / 184 | — | +| `PipeRouter` | Suite comps | 0.0% | 44 / 744 | — | +| `Fuse.Wireless` | Suite comps | 0.0% | 0 / 44 | — | +| `Tracker` | Suite comps | 0.0% | 1 / 5 | Live optical tracking not implemented; evaluates baked `TrackerModifier` paths. | +| `MacroOperator` | Suite comps | 0.0% | 30 / 1443 | Internal subgraph is read-only in interactive Flow. | +| `GroupOperator` | Suite comps | 0.0% | 6 / 186 | Internal subgraph is read-only in interactive Flow. | +| `Custom` | Suite comps | 0.1%–0.6% | 12 / 830 | — | +| `Note` | — | N/A | 0 / 57 | Non-rendering Flow annotation. | +| `Underlay` | — | N/A | 0 / 104 | Non-rendering Flow backdrop. | ## Modifiers & Animation @@ -208,13 +208,6 @@ Unlike Blackmagic Fusion — which unlinks missing OFX or Resolve-only plugins w | `SurfaceTracker` | 2 / 1 | [#7](https://shale.paperclover.net/fission/issues/7) | Preserved lossless on save; passes through main image input in Flow. | | `MagicMask` | 3 / 1 | [#7](https://shale.paperclover.net/fission/issues/7) | Preserved lossless on save; passes through main image input in Flow. | | `PlanarTracker` | 0 / 0 | [#7](https://shale.paperclover.net/fission/issues/7) | Preserved lossless on save; passes through main image input in Flow. | -| `BezierSpline` | 664 / 22865 | — | Preserved lossless on save; passes through main input in Flow. | -| `LUTBezier` | 124 / 4574 | — | Preserved lossless on save; passes through main input in Flow. | -| `PolyPath` | 119 / 2364 | — | Preserved lossless on save; passes through main input in Flow. | -| `Shake` | 0 / 165 | — | Preserved lossless on save; passes through main input in Flow. | -| `StyledTextCLS` | 3 / 60 | — | Preserved lossless on save; passes through main input in Flow. | -| `Expression` | 0 / 45 | — | Preserved lossless on save; passes through main input in Flow. | -| `Path` | 0 / 30 | — | Preserved lossless on save; passes through main input in Flow. | | `Fuse.AlphaWeightedNoise` | 0 / 26 | — | Preserved lossless on save; passes through main input in Flow. | | `Fuse.HexagonTiles` | 0 / 25 | — | Preserved lossless on save; passes through main input in Flow. | | `Fuse.CheckerPieceGenerator` | 0 / 25 | — | Preserved lossless on save; passes through main input in Flow. | @@ -229,6 +222,13 @@ Unlike Blackmagic Fusion — which unlinks missing OFX or Resolve-only plugins w | `Ribbon3D` | 0 / 5 | — | Preserved lossless on save; passes through main input in Flow. | | `MtlReflect` | 0 / 5 | — | Preserved lossless on save; passes through main input in Flow. | | `DepthBlur` | 0 / 5 | — | Preserved lossless on save; passes through main input in Flow. | +| `Fog` | 0 / 5 | — | Preserved lossless on save; passes through main input in Flow. | +| `Highlight` | 0 / 4 | — | Preserved lossless on save; passes through main input in Flow. | +| `ViewLUTOp` | 0 / 4 | — | Preserved lossless on save; passes through main input in Flow. | +| `Fuse.Lightning` | 0 / 4 | — | Preserved lossless on save; passes through main input in Flow. | +| `Replicate3D` | 0 / 4 | — | Preserved lossless on save; passes through main input in Flow. | +| `Fuse.SwitchElse` | 0 / 4 | — | Preserved lossless on save; passes through main input in Flow. | +| `FalloffOperator` | 0 / 4 | — | Preserved lossless on save; passes through main input in Flow. | --- diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs index aaf0dbcf5f0bf0fc38e1e1c3d47285289d947a29..cee66c53878a34f034f2ce6cbcb0b4fb8b6c7073 100644 --- a/crates/app/src/main.rs +++ b/crates/app/src/main.rs @@ -162,7 +162,7 @@ impl Studio { ) -> Self { let engine = Engine::new(renderer.device().clone(), renderer.queue().clone()); // Knife's soft toned Iris quiet-layered theme! - let ui_theme = ui::Theme::new(&theme::KNIFE, true); + let ui_theme = ui::Theme::new(theme::DEFAULT, true); let mut ui = ui::Ui::new(ui_theme.clone()); ui.window_focused = true; diff --git a/scripts/archive_diff.py b/scripts/archive_diff.py index 82e810f91d9134855129980032c2da44cb1bad1b..a6c810a1875e8bbd1783f3330a0f27ac1b399c61 100644 --- a/scripts/archive_diff.py +++ b/scripts/archive_diff.py @@ -294,14 +294,7 @@ def supported_classes() -> set[str]: def top_level_classes(text: str) -> list[str]: - m = gc.TOOLS_START_RE.search(text) - out = [] - for line in text[m.end() :].splitlines() if m else []: - if line.startswith("\t}"): - break - if tm := gc.TOP_TOOL_RE.match(line): - out.append(tm.group(1)) - return out + return list(gc.count_tool_classes(text).keys()) def describe(path: Path, supported: set[str], fam: dict[str, str]) -> dict: @@ -390,8 +383,10 @@ def fission(comp: Path, frame: int, out_png: Path, node: str | None, ref: Path | res["node"] = m[1] if m := re.search(r"unsupported=\[(.*?)\]", out): res["unsupported"] = re.findall(r'"([^"]+)"', m[1]) - if m := re.search(r"MAE=([\d.]+)/255 \(([\d.]+)%\), RMSE=([\d.]+)/255", out): - res.update(mae_pct=float(m[2]), rmse=float(m[3])) + if m := re.search(r"MAE=([\d.]+)/255 \(([\d.]+)%\), (?:A_MAE=([\d.]+)/255, )?RMSE=([\d.]+)/255", out): + res.update(mae_pct=float(m[2]), rmse=float(m[4])) + if m[3] is not None: + res["a_mae"] = float(m[3]) return res diff --git a/scripts/diff_fuzz/assets.py b/scripts/diff_fuzz/assets.py index 222b5c272ef65598d62bb1e17ba545c9dc282865..f74a3528af274c8e9e729b40c70fa1b3085b5f39 100644 --- a/scripts/diff_fuzz/assets.py +++ b/scripts/diff_fuzz/assets.py @@ -80,6 +80,12 @@ def write_png_rgba(path: Path, w: int, h: int, rgba_bytes: bytes) -> None: + chunk(b"IEND", b"") ) path.parent.mkdir(parents=True, exist_ok=True) + if path.exists(): + try: + if path.read_bytes() == png: + return + except OSError: + pass path.write_bytes(png) @@ -460,7 +466,8 @@ f 4/1/5 7/3/5 8/4/5 f 5/1/6 6/2/6 2/3/6 f 5/1/6 2/3/6 1/4/6 """ - p_obj.write_text(obj_text) + if not p_obj.exists() or p_obj.read_text() != obj_text: + p_obj.write_text(obj_text) sync_asset_to_remote(p_obj) return { diff --git a/scripts/gen_compatibility.py b/scripts/gen_compatibility.py index e664928f14e66deec111b88df6bb039d9737cb8c..a8968b2084eaa41f148847540c37067285308a69 100755 --- a/scripts/gen_compatibility.py +++ b/scripts/gen_compatibility.py @@ -70,142 +70,142 @@ CATEGORIES: Sequence[str] = ( # flagged automatically so compatibility.md never drifts stale. TOOL_METADATA: Sequence[ToolMeta] = ( # Generators - ToolMeta("Background", "Generators", "`tier1_d`", "0.0%", "Solid, Horizontal/Vertical/4-Corner, Linear/Radial gradients; honors generator `Depth` in `HiQ`."), - ToolMeta("FastNoise", "Generators", "`noise_text`", "Visual*", "C2 quintic 3D Perlin fBm (`Detail`, `Contrast`, `Brightness`, `Seethe`, `LockXY`, `Angle`, `Discontinuous`, `Gradient`/`TwoColor`). *Proprietary Fusion lattice table differs."), - ToolMeta("Plasma", "Generators", "`tier1_c`", "0.1%–0.2%", "4-circle linear/sine interference pattern with phase/scale animation."), - ToolMeta("TextPlus", "Generators", "`text`, `noise_text`", "0.2%–0.9%", "CoreText rasterizer, alignment, tracking, Euclidean subpixel SDF outline, `BorderFill` (`ElementShape = 2`, `Level`, `ExtendHorizontal/Vertical`, `Round`, `Offset`), and `StyledTextCLS`."), - ToolMeta("Loader", "Generators", "All suites", "0.0%", "PNG/JPG/TIFF/EXR stills & sequences with direct unclamped 16/32-bit float HDR OpenEXR upload in `HiQ`; native macOS `AVFoundation`/`VideoToolbox` + `ffmpeg` video; `.wav`/`.mp3` audio."), - ToolMeta("DaySky", "Generators", "Unit tests", "0.4%–1.1%", "Equirectangular Preetham/Perez physical sky dome (`Latitude`, `Longitude`, `Month`, `Day`, `Time`, `Turbidity`, `Exposure`, Perez horizon/circumsolar/backscatter sliders, log-avg luminance normalization + Reinhard tone map)."), + ToolMeta("Background", "Generators", "`tier1_d`", "0.0%", "—"), + ToolMeta("FastNoise", "Generators", "`noise_text`", "Visual*", "Proprietary Fusion lattice/octave distribution differs (e.g. sharper displacement spikes in `20_falling`)."), + ToolMeta("Plasma", "Generators", "`tier1_c`", "0.1%–0.2%", "Outputs constant `1.0` alpha instead of per-pixel plasma wave alpha."), + ToolMeta("TextPlus", "Generators", "`text`, `noise_text`", "0.2%–0.9%", "Landscape non-square aspect font sizing slight delta (`1.57%` on `320×180`); pure-Rust vector engine (no CoreText)."), + ToolMeta("Loader", "Generators", "All suites", "0.0%", "—"), + ToolMeta("DaySky", "Generators", "Unit tests", "0.4%–1.1%", "—"), # Compositing & Blending - ToolMeta("Merge", "Compositing & Blending", "`merge`", "0.0%–0.3%", "All ApplyModes (`Normal`, `Screen`, `Multiply`, `Difference`, `DarkerColor`, `Overlay`, `Hard/Soft/Linear/VividLight`, `LinearDodge`, etc.), `Operator=Over/Under`, `Gain`, `BurnIn`, `SubtractiveAdditive`, `Blend`, effect mask."), - ToolMeta("Dissolve", "Compositing & Blending", "`tier1_b`", "0.0%–0.1%", "Mix (`Mix = 0..1`) between `Background` and `Foreground` with effect mask support."), - ToolMeta("Paint", "Compositing & Blending", "Unit tests", "0.0%–1.2%", "Composites the `Paint` stroke chain (`PolylineStroke` / `Multistroke`) over `Input` with `Blend` and `EffectMask`. Fusion-calibrated round `CircleBrush` / `SoftBrush` (`Size`, `Softness`, ~0.41*r spacing, sequential alpha buildup), `PaintApplyColor` (`Red`/`Green`/`Blue`/`Opacity`), and `PaintApplyErase`."), - ToolMeta("PolylineStroke", "Compositing & Blending", "Unit tests", "0.0%–0.3%", "Bezier/linear `Polyline` (static or animated) with `WriteOnStart`/`WriteOnEnd`; always visible. Rendered only through `Paint` / `PaintMask`."), - ToolMeta("Multistroke", "Compositing & Blending", "Unit tests", "0.1%–1.2%", "Recorded freehand `Strokes`, visible from `Time` for `Frames`/`Duration` frames (default 1) with per-stroke `Params` overrides (`ApplyMode`, `Size`, `Softness`, color, `Duration`). Rendered only through `Paint` / `PaintMask`."), - ToolMeta("Shadow", "Compositing & Blending", "`tier1_b`", "0.1%–0.4%", "Drop shadow offset, softness blur, tint color/alpha, and `ShadowOnly` output."), + ToolMeta("Merge", "Compositing & Blending", "`merge`", "0.0%–0.3%", "3D Z-depth merge (`PerformDepthMerge`) ignored."), + ToolMeta("Dissolve", "Compositing & Blending", "`tier1_b`", "0.0%–0.1%", "—"), + ToolMeta("Paint", "Compositing & Blending", "Unit tests", "0.0%–1.2%", "Clone/Smear/Emboss apply modes and non-round image brushes not yet implemented."), + ToolMeta("PolylineStroke", "Compositing & Blending", "Unit tests", "0.0%–0.3%", "Rendered only inside `Paint` / `PaintMask`."), + ToolMeta("Multistroke", "Compositing & Blending", "Unit tests", "0.1%–1.2%", "Rendered only inside `Paint` / `PaintMask`."), + ToolMeta("Shadow", "Compositing & Blending", "`tier1_b`", "0.1%–0.4%", "—"), # Color & Depth - ToolMeta("BrightnessContrast", "Color & Depth", "`color_ops`, `tier1_d`", "0.0%–0.1%", "Gain, Lift, Gamma, Contrast, Brightness, Saturation, channel toggles, `PreDividePostMultiply`, `ClipBlack`/`ClipWhite`."), - ToolMeta("ColorCorrector", "Color & Depth", "`vortex_cc`, Suite comps", "0.0%–0.4%", "Master/Shadow/Midtone/Highlight wheels, exact Fusion 21.1 `TintMode` (`0`/`1`/`2`), Lift/Gamma/Gain/Brightness/Contrast/Saturation, `PreDividePostMultiply`."), - ToolMeta("ColorGain", "Color & Depth", "`color_ops`, `noise_text`", "0.0%–0.1%", "Per-channel Gain, Lift, Gamma, Hue, Saturation, `PreDividePostMultiply`."), - ToolMeta("ColorCurves", "Color & Depth", "Suite comps", "0.1%–0.4%", "Per-channel RGBA `LUTBezier` spline lookup tables with `PreDividePostMultiply`."), - ToolMeta("HueCurves", "Color & Depth", "`tier1_a`", "0.1%–0.5%", "9 nested `LUTBezier` splines (Hue/Sat/Lum vs Hue, Suppression, etc.) baked to GPU LUT."), - ToolMeta("GamutConvert", "Color & Depth", "Suite comps", "0.0%–0.2%", "Color space & gamma curve transforms (`sRGB`, `Rec.709`, `Linear`, `SLog2`, etc.)."), - ToolMeta("InvertColor", "Color & Depth", "Suite comps", "0.0%", "Per-channel RGBA color inversion (`R`/`G`/`B`/`A` toggles)."), - ToolMeta("ChannelBoolean", "Color & Depth", "`color_ops`", "0.0%–0.1%", "Channel routing (`ToRed`/`ToGreen`/`ToBlue`/`ToAlpha`) and arithmetic/logic ops (`Copy`, `Add`, `Subtract`, `Multiply`, `Divide`, `Min`, `Max`, `Clear`, `Solid`, etc.)."), - ToolMeta("ChangeDepth", "Color & Depth", "`tier1_d`", "0.0%", "Bit-depth conversion (`int8`, `int16`, `float16`, `float32`) honored in `HiQ` mode; collapsed to `Rgba8Unorm` in `Fast` mode."), - ToolMeta("Fuse.Colorize", "Color & Depth", "Suite comps", "0.1%–0.5%", "Gradient/tint colorization driven by luminance."), + ToolMeta("BrightnessContrast", "Color & Depth", "`color_ops`, `tier1_d`", "0.0%–0.1%", "—"), + ToolMeta("ColorCorrector", "Color & Depth", "`vortex_cc`, Suite comps", "0.0%–0.4%", "Histogram/Match/Suppress tabs not implemented."), + ToolMeta("ColorGain", "Color & Depth", "`color_ops`, `noise_text`", "0.0%–0.1%", "—"), + ToolMeta("ColorCurves", "Color & Depth", "Suite comps", "0.1%–0.4%", "Input clamped to `[0, 1]` before LUT lookup (clips HDR `> 1.0`)."), + ToolMeta("HueCurves", "Color & Depth", "`tier1_a`", "0.1%–0.5%", "—"), + ToolMeta("GamutConvert", "Color & Depth", "Suite comps", "0.0%–0.2%", "—"), + ToolMeta("InvertColor", "Color & Depth", "Suite comps", "0.0%", "—"), + ToolMeta("ChannelBoolean", "Color & Depth", "`color_ops`", "0.0%–0.1%", "Auxiliary channels (`Z`, `Coverage`, `ObjectID`, `Vector`) unavailable."), + ToolMeta("ChangeDepth", "Color & Depth", "`tier1_d`", "0.0%", "Collapsed to `Rgba8Unorm` in `Fast` mode."), + ToolMeta("Fuse.Colorize", "Color & Depth", "Suite comps", "0.1%–0.5%", "—"), # Keying - ToolMeta("LumaKeyer", "Keying", "Suite comps", "0.1%–0.4%", "Luminance/channel threshold keying with low/high feathering and matte inversion."), - ToolMeta("UltraKeyer", "Keying", "`ultrakey`, `tier1_a`", "0.0%–0.1%", "Exact Fusion 21.1 Ultimatte color-difference matte + background subtraction (`BackgroundRed/Green/Blue`, `LowMatteThreshold`/`High`, `MatteSeparation`, `SpillSuppression`, `PostMultiplyImage`)."), - ToolMeta("Fuse.Cryptomatte", "Keying", "Unit tests", "0.0%", "Cryptomatte 1.2 multi-channel EXR matte extraction (manifest JSON + MurmurHash3-32 ID/coverage rank accumulation, wildcards, `MatteOnly`).", aliases=("Cryptomatte",)), + ToolMeta("LumaKeyer", "Keying", "Suite comps", "0.1%–0.4%", "—"), + ToolMeta("UltraKeyer", "Keying", "`ultrakey`, `tier1_a`", "0.0%–0.1%", "—"), + ToolMeta("Fuse.Cryptomatte", "Keying", "Unit tests", "0.0%", "—", aliases=("Cryptomatte",)), # Blur, Sharpen & Glow - ToolMeta("Blur", "Blur, Sharpen & Glow", "`blur`, `tier1_d`", "0.0%–0.4%", "`Fast Gaussian`, `Gaussian`, and `Box` filters; X/Y lock; `ClippingMode`; HDR float16 survival in `HiQ`; downsampled in `Fast`."), - ToolMeta("Sharpen", "Blur, Sharpen & Glow", "`tier1_a`", "0.1%–0.4%", "Separable unsharp mask with X/Y amount & lock."), - ToolMeta("Filter", "Blur, Sharpen & Glow", "`tier1_a`", "0.1%–0.5%", "Convolution filter types 0–4 (`Relief`, `Emboss`, `Smooth`, `Sobel`, `Laplacian`) with power & angle."), - ToolMeta("VariBlur", "Blur, Sharpen & Glow", "Suite comps", "0.2%–0.8%", "Per-pixel variable-radius blur driven by `BlurImage` matte."), - ToolMeta("DirectionalBlur", "Blur, Sharpen & Glow", "`blur`", "0.1%–0.5%", "`Linear`, `Centered`, `Radial`, and `Zoom` modes plus `Glow` accumulation."), - ToolMeta("Glow", "Blur, Sharpen & Glow", "`glow`", "0.0%–0.2%", "Additive bloom (`Glow`, `GlowSize`, `Blend`, color scale, border clamping, calibrated Gaussian roll-off)."), - ToolMeta("SoftGlow", "Blur, Sharpen & Glow", "`glow`", "0.0%–0.2%", "Thresholded soft glow (`Gain`, `XGlowSize`/`YGlowSize`, `Threshold`, `ClippingMode`, `ColorScale`, border clamping)."), - ToolMeta("Fuse.XGlow", "Blur, Sharpen & Glow", "Suite comps", "0.2%–0.8%", "Multi-octave exponential glow (`Threshold`, `Gain`, `XGlowSize`, `Falloff`, `Iterations`); octave-capped in `Fast` mode."), - ToolMeta("ErodeDilate", "Blur, Sharpen & Glow", "`blur`", "0.0%–0.3%", "Positive/negative morphological erode/dilate with `Box` and `Circle` kernels."), - ToolMeta("FilmGrain", "Blur, Sharpen & Glow", "`tier1_c`", "Visual*", "Monochrome log-space correlated film grain (`Size`, `Strength`, `Softness`). *Stochastic per-frame seed."), - ToolMeta("Fuse.Outline", "Blur, Sharpen & Glow", "Suite comps", "0.1%–0.5%", "Alpha-derived silhouette outline with thickness, softness, and color tint."), - ToolMeta("Fuse.XfChroma", "Blur, Sharpen & Glow", "Suite comps", "0.1%–0.5%", "Chromatic aberration / RGB channel radial & positional dispersion."), + ToolMeta("Blur", "Blur, Sharpen & Glow", "`blur`, `tier1_d`", "0.0%–0.4%", "Downsampled in `Fast` mode."), + ToolMeta("Sharpen", "Blur, Sharpen & Glow", "`tier1_a`", "0.1%–0.4%", "—"), + ToolMeta("Filter", "Blur, Sharpen & Glow", "`tier1_a`", "0.1%–0.5%", "—"), + ToolMeta("VariBlur", "Blur, Sharpen & Glow", "Suite comps", "0.2%–0.8%", "—"), + ToolMeta("DirectionalBlur", "Blur, Sharpen & Glow", "`blur`", "0.1%–0.5%", "—"), + ToolMeta("Glow", "Blur, Sharpen & Glow", "`glow`", "0.0%–0.2%", "—"), + ToolMeta("SoftGlow", "Blur, Sharpen & Glow", "`glow`", "0.0%–0.2%", "—"), + ToolMeta("Fuse.XGlow", "Blur, Sharpen & Glow", "Suite comps", "0.2%–0.8%", "Octave-capped in `Fast` mode."), + ToolMeta("ErodeDilate", "Blur, Sharpen & Glow", "`blur`", "0.0%–0.3%", "—"), + ToolMeta("FilmGrain", "Blur, Sharpen & Glow", "`tier1_c`", "Visual*", "Stochastic per-frame PRNG seed differs from Fusion."), + ToolMeta("Fuse.Outline", "Blur, Sharpen & Glow", "Suite comps", "0.1%–0.5%", "—"), + ToolMeta("Fuse.XfChroma", "Blur, Sharpen & Glow", "Suite comps", "0.1%–0.5%", "—"), # Transform, Warp & Framing - ToolMeta("Transform", "Transform, Warp & Framing", "`xf`", "0.0%–0.3%", "`Center`, `Pivot`, `Size`/`XSize`/`YSize`, `Aspect`, `Angle`, `FlipHoriz`/`FlipVert`, `FilterMethod` (`Nearest`/`Box`/`Linear`/`Catmull-Rom`), `Edges` (`Canvas`/`Wrap`/`Duplicate`/`Mirror`)."), - ToolMeta("CameraShake", "Transform, Warp & Framing", "`tier1_c`", "0.1%–0.5%", "Procedural X/Y/Rotation/Zoom camera shake with `OverallStrength`, `Speed`, `Edges`."), - ToolMeta("CornerPositioner", "Transform, Warp & Framing", "`tier1_b`", "0.1%–0.4%", "4-point projective homography warp (`TopLeft`/`TopRight`/`BottomLeft`/`BottomRight`)."), - ToolMeta("PerspectivePositioner", "Transform, Warp & Framing", "Unit tests", "0.3%–0.4%", "Rectifies 4-corner quad (`BottomLeft`/`BottomRight`/`TopRight`/`TopLeft`) to unit square with `MappingType` bilinear `Linear` (0) or projective `Perspective` (1)."), - ToolMeta("GridWarp", "Transform, Warp & Framing", "Unit tests", "0.4%–1.2%", "2D control-point `Mesh` Bezier/Coons patch warp (`SrcGridChange` -> `DstGridChange`, static or keyframed splines, tangent handles, `Blend`, `EffectMask`)."), - ToolMeta("DVE", "Transform, Warp & Framing", "`tier1_b`", "0.1%–0.4%", "2.5D ZYX Euler rotation + perspective homography (`Center`, `ZMove`, `Pivot`, `AlphaMode`)."), - ToolMeta("Displace", "Transform, Warp & Framing", "`displace`, `displace_wave`", "0.0%–0.1%", "`XY` refraction (channels, offsets, refraction strength) and `Radial`/`Bump` (`LightPower`, `LightAngle`, `LightChannel` additive directional slope lighting)."), - ToolMeta("Vortex", "Transform, Warp & Framing", "`vortex_cc`", "0.0%–0.4%", "Isotropic radial swirl warp (`Center`, `Size`, `Angle`, `Power`, `Blend`, `EffectMask`)."), - ToolMeta("Drip", "Transform, Warp & Framing", "Unit tests", "0.0%", "Concentric ripple warp (`Center`, `Strength`, `Amplitude`, `Frequency`, `Aspect`, `Phase`, `Dampening`, `Shape`, `Blend`, `EffectMask`)."), - ToolMeta("Dent", "Transform, Warp & Framing", "Unit tests", "0.0%", "Radial distortion warp (`Center`, `Strength`, `Size`, `Type`: `Dent`/`Sine`/`Pinch`/`Punch`, `Blend`, `EffectMask`)."), - ToolMeta("Fuse.Duplicate", "Transform, Warp & Framing", "`archive_3d`", "0.0%–0.4%", "Multi-copy iterative 2D transform composite (`Copies`, `Center`, `Size`, `Angle`, `Gain`, `Blend`, `TimeOffset`, `MergeUnder`)."), - ToolMeta("Fuse.KScope", "Transform, Warp & Framing", "Unit tests", "0.0%", "N-slice radial kaleidoscope mirror (`Slices`, `Center`, `Angle`, `CaptureAngle`, `Scale`, `Edges`)."), - ToolMeta("Scale", "Transform, Warp & Framing", "Suite comps", "0.0%–0.2%", "Proportional/non-proportional image scaling with resampling filter."), - ToolMeta("BetterResize", "Transform, Warp & Framing", "Suite comps", "0.0%–0.2%", "Target pixel-dimension resize (`Width`, `Height`, `KeepAspect`)."), - ToolMeta("Crop", "Transform, Warp & Framing", "Suite comps", "0.0%–0.1%", "Region crop & canvas repositioning (`XOffset`, `YOffset`, `XSize`, `YSize`, `KeepCentered`)."), - ToolMeta("SetDomain", "Transform, Warp & Framing", "`tier1_d`", "0.0%–0.1%", "Domain-of-Definition (`Adjust` shrink/expand and `Set` modes)."), + ToolMeta("Transform", "Transform, Warp & Framing", "`xf`", "0.0%–0.3%", "Motion blur sub-frame accumulation not implemented."), + ToolMeta("CameraShake", "Transform, Warp & Framing", "`tier1_c`", "0.1%–0.5%", "—"), + ToolMeta("CornerPositioner", "Transform, Warp & Framing", "`tier1_b`", "0.1%–0.4%", "—"), + ToolMeta("PerspectivePositioner", "Transform, Warp & Framing", "Unit tests", "0.3%–0.4%", "—"), + ToolMeta("GridWarp", "Transform, Warp & Framing", "Unit tests", "0.4%–1.2%", "Magnet/Subdivision UI helpers not implemented."), + ToolMeta("DVE", "Transform, Warp & Framing", "`tier1_b`", "0.1%–0.4%", "—"), + ToolMeta("Displace", "Transform, Warp & Framing", "`displace`, `displace_wave`", "0.0%–0.1%", "—"), + ToolMeta("Vortex", "Transform, Warp & Framing", "`vortex_cc`", "0.0%–0.4%", "—"), + ToolMeta("Drip", "Transform, Warp & Framing", "Unit tests", "0.0%", "—"), + ToolMeta("Dent", "Transform, Warp & Framing", "Unit tests", "0.0%", "—"), + ToolMeta("Fuse.Duplicate", "Transform, Warp & Framing", "`archive_3d`", "0.0%–0.4%", "—"), + ToolMeta("Fuse.KScope", "Transform, Warp & Framing", "Unit tests", "0.0%", "—"), + ToolMeta("Scale", "Transform, Warp & Framing", "Suite comps", "0.0%–0.2%", "—"), + ToolMeta("BetterResize", "Transform, Warp & Framing", "Suite comps", "0.0%–0.2%", "—"), + ToolMeta("Crop", "Transform, Warp & Framing", "Suite comps", "0.0%–0.1%", "—"), + ToolMeta("SetDomain", "Transform, Warp & Framing", "`tier1_d`", "0.0%–0.1%", "—"), # Masks - ToolMeta("EllipseMask", "Masks", "`mask`, `mask_softedge`", "0.0%–0.2%", "Center, Width, Height, Angle, progressive-pyramid `SoftEdge`, `BorderWidth`, `Solid`, `Filter` (`Fast Gaussian`/`Box`), `ClippingMode`, `Invert`, `PaintMode` chaining."), - ToolMeta("RectangleMask", "Masks", "`mask`, `mask_softedge`", "0.0%–0.2%", "Center, Width, Height, `CornerRadius`, Angle, progressive-pyramid `SoftEdge`, `BorderWidth`, `Solid`, `Filter`, `ClippingMode`, `Invert`, `PaintMode` chaining."), - ToolMeta("PolylineMask", "Masks", "`mask_softedge`, Suite comps", "0.1%–0.4%", "CPU `zeno` Bezier/linear polygon rasterizer with animated keyframed `Polyline` splines, progressive-pyramid `SoftEdge`, `ClippingMode`, `Invert`, `PaintMode`."), - ToolMeta("BitmapMask", "Masks", "`mask_softedge`", "0.0%–0.2%", "GPU image-to-mask extraction (`Alpha`/`Luminance`/`Red`/`Green`/`Blue`/`Saturation`/`Lightness`/`Hue`), `Low`/`High` clip, centered 1:1 alignment, `SoftEdge`, `Invert`, `Level`, `PaintMode`."), - ToolMeta("WandMask", "Masks", "`archive_3d`", "0.0%–0.3%", "Seeded BFS flood-fill wand mask (`Source`, `SelectionPoint`, `SelectionRange`, `ColorSpace`, `SoftEdge`, `Invert`, `Level`, `PaintMode`)."), - ToolMeta("PaintMask", "Masks", "Unit tests", "0.1%–0.4%", "Fusion-calibrated alpha mask of the `Paint` stroke chain (`Size`, `Softness`, opacity, erase), `MaskWidth`/`MaskHeight`, `SoftEdge`, `Filter`, `ClippingMode`, `Invert`, `Level`, `PaintMode` chaining."), + ToolMeta("EllipseMask", "Masks", "`mask`, `mask_softedge`", "0.0%–0.2%", "—"), + ToolMeta("RectangleMask", "Masks", "`mask`, `mask_softedge`", "0.0%–0.2%", "—"), + ToolMeta("PolylineMask", "Masks", "`mask_softedge`, Suite comps", "0.1%–0.4%", "—"), + ToolMeta("BitmapMask", "Masks", "`mask_softedge`", "0.0%–0.2%", "—"), + ToolMeta("WandMask", "Masks", "`archive_3d`", "0.0%–0.3%", "Linear `RangeSoftEdge` falloff; Fusion exact falloff curve unverified."), + ToolMeta("PaintMask", "Masks", "Unit tests", "0.1%–0.4%", "Non-round brush shapes not implemented."), # 2D Vector Shapes - ToolMeta("sRender", "2D Vector Shapes", "Unit tests", "0.0%", "Antialiased `zeno` 2D vector shape tree rasterizer (`Width`, `Height`, `Blend`, `EffectMask`, cached RGBA upload & `HiQ` depth promotion)."), - ToolMeta("sNGon", "2D Vector Shapes", "Unit tests", "0.0%", "Regular N-sided polygon vector shape (`Sides`, `Width`, `Height`, `Translate.X/Y`, `Angle`, `Solid`, `BorderWidth`, `JoinStyle`, RGBA color)."), - ToolMeta("sRectangle", "2D Vector Shapes", "Unit tests", "0.0%", "Vector rectangle & rounded rectangle (`Width`, `Height`, `CornerRadius`, `Translate.X/Y`, `Angle`, `Solid`, `BorderWidth`, RGBA color)."), - ToolMeta("sEllipse", "2D Vector Shapes", "Unit tests", "0.0%", "Cubic Bezier vector ellipse (`Width`, `Height`, `Translate.X/Y`, `Angle`, `Solid`, `BorderWidth`, RGBA color)."), - ToolMeta("sGrid", "2D Vector Shapes", "Unit tests", "0.0%", "Centered 2D vector shape grid generator (`CellsX`, `CellsY`, `XOffset`, `YOffset`) feeding `sRender`."), - ToolMeta("sMerge", "2D Vector Shapes", "Unit tests", "0.0%", "Composites multiple upstream vector shape inputs (`Input1`..`InputN`) in painter's order."), - ToolMeta("sTransform", "2D Vector Shapes", "Unit tests", "0.0%", "2D affine shape transform (`XOffset`/`YOffset`, `XSize`/`YSize`, `Scale`, `ZRotation`, `XPivot`/`YPivot`)."), - ToolMeta("sBoolean", "2D Vector Shapes", "Unit tests", "0.0%", "Shape boolean combiner (`Union`, `Intersect`, `Subtract`, `Xor`) over `Input1` and `Input2`."), - ToolMeta("sOutline", "2D Vector Shapes", "Unit tests", "0.0%", "Converts upstream vector shapes into stroked outlines (`Thickness`/`BorderWidth`, `JoinStyle`, `CapStyle`)."), + ToolMeta("sRender", "2D Vector Shapes", "Unit tests", "0.0%", "—"), + ToolMeta("sNGon", "2D Vector Shapes", "Unit tests", "0.0%", "—"), + ToolMeta("sRectangle", "2D Vector Shapes", "Unit tests", "0.0%", "—"), + ToolMeta("sEllipse", "2D Vector Shapes", "Unit tests", "0.0%", "—"), + ToolMeta("sGrid", "2D Vector Shapes", "Unit tests", "0.0%", "—"), + ToolMeta("sMerge", "2D Vector Shapes", "Unit tests", "0.0%", "—"), + ToolMeta("sTransform", "2D Vector Shapes", "Unit tests", "0.0%", "—"), + ToolMeta("sBoolean", "2D Vector Shapes", "Unit tests", "0.0%", "—"), + ToolMeta("sOutline", "2D Vector Shapes", "Unit tests", "0.0%", "—"), # Particles - ToolMeta("pRender", "Particles", "Unit tests", "Visual*", "2D deterministic particle rasterizer (`ParticleStyleBitmap` rotated bilinear sprites, `ParticleStylePoint`/`Blob`, cached frame stepping). *Stochastic seed."), - ToolMeta("pEmitter", "Particles", "Unit tests", "Visual*", "Seeded particle emitter (`RectRgn`/`SphereRgn`/`CubeRgn`/`LineRgn`/`Point`, `Number`, `Lifespan`, `Velocity`, `RotationZ`, `SpinZ`, `ColorVariance`, `SizeOverLife`, `FadeIn`/`FadeOut`)."), - ToolMeta("pPointForce", "Particles", "Unit tests", "Visual*", "Radial point attractor/repulsor (`Strength`, `Power`, `Translate.X/Y/Z`)."), - ToolMeta("pDirectionalForce", "Particles", "Unit tests", "Visual*", "Directional acceleration / gravity field (`Strength`, `Direction`)."), - ToolMeta("pTurbulence", "Particles", "Unit tests", "Visual*", "Seeded 3D turbulent noise force field (`XStrength`, `YStrength`, `Density`)."), - ToolMeta("pDrag", "Particles", "Unit tests", "Visual*", "Velocity damping / aerodynamic drag force.", aliases=("pFriction",)), - ToolMeta("pKill", "Particles", "Unit tests", "Visual*", "Region-based particle termination (`Inside`/`Outside`/`Entering`/`Leaving`)."), - ToolMeta("pMerge", "Particles", "Unit tests", "Visual*", "Combines multiple upstream particle emitter streams."), - ToolMeta("pBounce", "Particles", "Unit tests", "Visual*", "Region-based particle collision & elastic rebound (`Elasticity`, `Friction`, region planes/spheres/cubes)."), + ToolMeta("pRender", "Particles", "Unit tests", "Visual*", "2D mode only (no 3D particle renderer); stochastic PRNG seed differs."), + ToolMeta("pEmitter", "Particles", "Unit tests", "Visual*", "Stochastic PRNG seed differs; cold starts >600 frames window-simulate."), + ToolMeta("pPointForce", "Particles", "Unit tests", "Visual*", "—"), + ToolMeta("pDirectionalForce", "Particles", "Unit tests", "Visual*", "—"), + ToolMeta("pTurbulence", "Particles", "Unit tests", "Visual*", "—"), + ToolMeta("pDrag", "Particles", "Unit tests", "Visual*", "—", aliases=("pFriction",)), + ToolMeta("pKill", "Particles", "Unit tests", "Visual*", "—"), + ToolMeta("pMerge", "Particles", "Unit tests", "Visual*", "—"), + ToolMeta("pBounce", "Particles", "Unit tests", "Visual*", "—"), # 3D Pipeline - ToolMeta("Renderer3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "GPU wgpu 3D rasterizer with depth buffer, perspective camera selection, lighting, and 2D texture sampling."), - ToolMeta("Camera3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "All 6 `RotOrder` permutations (`XYZ`..`ZYX`), `AoV`/`FLength`, `ApertureW`/`ApertureH`, `ResolutionGateFit` (`Inside`/`Outside`/`Width`/`Height`/`Stretch`)."), - ToolMeta("Merge3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "Hierarchical 3D scene graph combiner with local `Transform3DOp`."), - ToolMeta("Transform3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "3D translate, rotate (all 6 `RotOrder`s), and scale (`ScaleLock`) transform node."), - ToolMeta("ImagePlane3D", "3D Pipeline", "`cam3d`", "0.1%–0.4%", "Textured 3D quad driven by 2D image input or `Mtl*` diffuse texture."), - ToolMeta("Shape3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "`Plane`, `Sphere`, `Cylinder` (`StartSweep`/`EndSweep`, subdivisions), and `Cube` procedural geometry."), - ToolMeta("Cube3D", "3D Pipeline", "Unit tests", "0.1%–0.4%", "Dedicated 3D cube geometry with per-face / standard material binding (`SurfaceCubeInputs.*`, `MaterialInput`)."), - ToolMeta("SurfaceFBXMesh", "3D Pipeline", "Unit tests", "Visual*", "Binary/ASCII `.fbx` and `.obj` mesh loader (`ImportFile`, `ObjName`, `ScaleFileUnitsBy`, normals, UVs, material binding)."), - ToolMeta("Text3D", "3D Pipeline", "`archive_3d`", "Visual*", "3D CoreText rasterized text plane with optional multi-slice `-Z` extrusion (`ExtrusionDepth`, `StyledText`, `Font`, `Style`, `Size`, color)."), - ToolMeta("LightAmbient", "3D Pipeline", "Suite comps", "0.1%–0.4%", "Scene ambient RGB light intensity accumulation in `Renderer3D`."), - ToolMeta("LightDirectional", "3D Pipeline", "Suite comps", "0.1%–0.4%", "World-oriented directional light (`-Z` emission axis) with RGB intensity in `Renderer3D`."), - ToolMeta("LightPoint", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "Positional point light with RGB color, `Intensity`, `DecayType` (`None`/`Linear`/`Quadratic`), and `DecayRate`."), - ToolMeta("LightSpot", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "Directional spotlight with `ConeAngle`, `PenumbraAngle`, `Intensity`, RGB color, and `DecayType`."), - ToolMeta("MtlBlinn", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "Blinn-Phong 3D material (`Diffuse.Color`, `Diffuse.Opacity`, `Diffuse.Color.Material`, `Specular.Color/Intensity/Exponent`)."), - ToolMeta("MtlCookTorrance", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "Cook-Torrance 3D material (`Diffuse.Color`, `Diffuse.Opacity`, `Diffuse.Color.Material`, `Specular.Roughness/Color/Intensity`)."), - ToolMeta("MtlPhong", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "Phong 3D material (`Diffuse.Color`, `Diffuse.Opacity`, `Specular.Color/Intensity/Exponent`)."), - ToolMeta("Texture2DOperator", "3D Pipeline", "`archive_3d`", "0.0%–0.4%", "2D-image-to-3D-material adapter feeding `MaterialInput` or `Diffuse.Color.Material`."), - ToolMeta("TextureTransformOperator", "3D Pipeline", "Unit tests", "0.0%–0.4%", "3D material UV translation, scale, rotation, and wrap-mode (`Wrap`/`Mirror`/`Clamp`) transform operator."), - ToolMeta("BumpMap", "3D Pipeline", "Unit tests", "0.1%–0.5%", "3D heightmap and tangent-space normal-map bump perturbation (`HeightScale`, `SourceImageType`) feeding `Bumpmap.Material`."), - ToolMeta("ReplaceMaterial3D", "3D Pipeline", "`archive_3d`", "0.0%–0.4%", "Subtree 3D material override (`SceneInput` + `MaterialInput`)."), - ToolMeta("Override3D", "3D Pipeline", "`archive_3d`", "0.0%–0.2%", "Subtree 3D visibility (`Visibility.DoVisible`/`IsVisible`) and lighting (`Lighting.DoAffectedByLights`/`IsAffectedByLights`) override."), - ToolMeta("Duplicate3D", "3D Pipeline", "`archive_3d`", "0.1%–0.5%", "Cumulative 3D scene instancer (`FirstCopy..LastCopy`, `Transform3DOp`, seeded `JitterTranslate`/`JitterRotate`)."), - ToolMeta("ReplaceNormals3D", "3D Pipeline", "`archive_3d`", "0.0%–0.4%", "Subtree normal orientation override (`FlipNormals`)."), - ToolMeta("Displace3D", "3D Pipeline", "`archive_3d`", "0.2%–1.5%", "Heightmap vertex displacement along mesh normals (`Input`, `Scale`, `Bias`, `Channel`) with smooth normal recomputation."), + ToolMeta("Renderer3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "Renders `Rgba8` only (no float HDR 3D target yet); shadow maps pending (`#46`)."), + ToolMeta("Camera3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "Depth-of-field / stereo not implemented."), + ToolMeta("Merge3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "—"), + ToolMeta("Transform3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "—"), + ToolMeta("ImagePlane3D", "3D Pipeline", "`cam3d`", "0.1%–0.4%", "—"), + ToolMeta("Shape3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "Torus/Cone/IcoSphere primitives not yet implemented."), + ToolMeta("Cube3D", "3D Pipeline", "Unit tests", "0.1%–0.4%", "—"), + ToolMeta("SurfaceFBXMesh", "3D Pipeline", "Unit tests", "Visual*", "Static mesh only (no skeletal skinning/morph animation)."), + ToolMeta("Text3D", "3D Pipeline", "`archive_3d`", "Visual*", "Pure-Rust vector text plane with multi-slice `-Z` extrusion (bevels not yet implemented; `#46`)."), + ToolMeta("LightAmbient", "3D Pipeline", "Suite comps", "0.1%–0.4%", "—"), + ToolMeta("LightDirectional", "3D Pipeline", "Suite comps", "0.1%–0.4%", "Up to 4 directional lights per scene; shadow maps pending (`#46`)."), + ToolMeta("LightPoint", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "Point-light shadow maps pending (`#46`)."), + ToolMeta("LightSpot", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "Spot shadow maps pending (`#46`)."), + ToolMeta("MtlBlinn", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "—"), + ToolMeta("MtlCookTorrance", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "—"), + ToolMeta("MtlPhong", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "—"), + ToolMeta("Texture2DOperator", "3D Pipeline", "`archive_3d`", "0.0%–0.4%", "—"), + ToolMeta("TextureTransformOperator", "3D Pipeline", "Unit tests", "0.0%–0.4%", "—"), + ToolMeta("BumpMap", "3D Pipeline", "Unit tests", "0.1%–0.5%", "—"), + ToolMeta("ReplaceMaterial3D", "3D Pipeline", "`archive_3d`", "0.0%–0.4%", "—"), + ToolMeta("Override3D", "3D Pipeline", "`archive_3d`", "0.0%–0.2%", "—"), + ToolMeta("Duplicate3D", "3D Pipeline", "`archive_3d`", "0.1%–0.5%", "—"), + ToolMeta("ReplaceNormals3D", "3D Pipeline", "`archive_3d`", "0.0%–0.4%", "—"), + ToolMeta("Displace3D", "3D Pipeline", "`archive_3d`", "0.2%–1.5%", "—"), # Time, Routing & Utility - ToolMeta("Saver", "Time, Routing & Utility", "All suites", "0.0%", "Output sink / passthrough in interactive Flow; Saver-driven pipelined PNG sequence export (`render-check --export` and `Cmd+Shift+R`)."), - ToolMeta("Dimension.OpticalFlow", "Time, Routing & Utility", "Unit tests", "0.1%", "GPU 4-level pyramid coarse-to-fine bidirectional dense optical flow feeding downstream `TimeStretcher` flow interpolation.", aliases=("OpticalFlow",)), - ToolMeta("Dimension.CopyAux", "Time, Routing & Utility", "Unit tests", "Visual*", "Passes the RGBA `Input` through unchanged in both `Mode`s. *The engine carries no auxiliary planes (`Z`, `Coverage`, `ObjectID`, `Vector`, ...), so `Channel` is ignored and aux-to-color output is not produced."), - ToolMeta("TimeStretcher", "Time, Routing & Utility", "Suite comps", "0.0%–0.2%", "Keyframed/expression `SourceTime` remapping with `Nearest` (`0`), `Blend` (`1`), and GPU `OpticalFlow` (`2`) bidirectional warped interpolation."), - ToolMeta("TimeSpeed", "Time, Routing & Utility", "Suite comps", "0.0%", "Constant/animated `Speed` and `Delay` time remapping."), - ToolMeta("Switch", "Time, Routing & Utility", "Suite comps", "0.0%", "Dynamic input routing by `Source` index (`Input0`..`InputN`)."), - ToolMeta("Fuse.Switch", "Time, Routing & Utility", "Suite comps", "0.0%", "Fuse variant of `Switch` routing `Input1`..`InputN` by `Which`."), - ToolMeta("PipeRouter", "Time, Routing & Utility", "Suite comps", "0.0%", "Zero-cost graph routing node."), - ToolMeta("Fuse.Wireless", "Time, Routing & Utility", "Suite comps", "0.0%", "Wireless link passthrough node."), - ToolMeta("Tracker", "Time, Routing & Utility", "Suite comps", "0.0%", "Passthrough image node; baked tracking paths evaluated via `TrackerModifier`."), - ToolMeta("MacroOperator", "Time, Routing & Utility", "Suite comps", "0.0%", "Unpacks internal `Tools` subgraph and evaluates exported output seamlessly."), - ToolMeta("GroupOperator", "Time, Routing & Utility", "Suite comps", "0.0%", "Unpacks internal `Tools` subgraph and evaluates exported output seamlessly."), - ToolMeta("Custom", "Time, Routing & Utility", "Suite comps", "0.1%–0.6%", "Custom Tool shader evaluation (procedural wave/channel expressions + `UserControls` defaults)."), - ToolMeta("Note", "Time, Routing & Utility", "—", "N/A", "Non-rendering Flow sticky note; preserved losslessly on `.comp` roundtrip.", aliases=("StickyNote",)), - ToolMeta("Underlay", "Time, Routing & Utility", "—", "N/A", "Non-rendering Flow backdrop/group box; preserved losslessly on `.comp` roundtrip."), + ToolMeta("Saver", "Time, Routing & Utility", "All suites", "0.0%", "Interactive Flow passthrough; export supports PNG sequences and MP4/ProRes4444."), + ToolMeta("Dimension.OpticalFlow", "Time, Routing & Utility", "Unit tests", "0.1%", "—", aliases=("OpticalFlow",)), + ToolMeta("Dimension.CopyAux", "Time, Routing & Utility", "Unit tests", "Visual*", "Passes RGBA through unchanged; engine carries no auxiliary channels (`Z`, `Coverage`, `ObjectID`, `Vector`)."), + ToolMeta("TimeStretcher", "Time, Routing & Utility", "Suite comps", "0.0%–0.2%", "—"), + ToolMeta("TimeSpeed", "Time, Routing & Utility", "Suite comps", "0.0%", "—"), + ToolMeta("Switch", "Time, Routing & Utility", "Suite comps", "0.0%", "—"), + ToolMeta("Fuse.Switch", "Time, Routing & Utility", "Suite comps", "0.0%", "—"), + ToolMeta("PipeRouter", "Time, Routing & Utility", "Suite comps", "0.0%", "—"), + ToolMeta("Fuse.Wireless", "Time, Routing & Utility", "Suite comps", "0.0%", "—"), + ToolMeta("Tracker", "Time, Routing & Utility", "Suite comps", "0.0%", "Live optical tracking not implemented; evaluates baked `TrackerModifier` paths."), + ToolMeta("MacroOperator", "Time, Routing & Utility", "Suite comps", "0.0%", "Internal subgraph is read-only in interactive Flow."), + ToolMeta("GroupOperator", "Time, Routing & Utility", "Suite comps", "0.0%", "Internal subgraph is read-only in interactive Flow."), + ToolMeta("Custom", "Time, Routing & Utility", "Suite comps", "0.1%–0.6%", "—"), + ToolMeta("Note", "Time, Routing & Utility", "—", "N/A", "Non-rendering Flow annotation.", aliases=("StickyNote",)), + ToolMeta("Underlay", "Time, Routing & Utility", "—", "N/A", "Non-rendering Flow backdrop.", ), ) @@ -323,11 +323,15 @@ def parse_curated_tool_kinds(path: Path) -> Set[str]: def parse_comp_rs_modifiers(path: Path) -> Tuple[List[str], Set[str]]: """Return (declared MODIFIER_TYPES, implemented modifier classes in parse_tools_table).""" - text = path.read_text(encoding="utf-8") - mc = re.search(r"const MODIFIER_TYPES:\s*&\[&str\]\s*=\s*&\[(.*?)\];", text, re.S) + texts = [path.read_text(encoding="utf-8")] + load_rs = path.with_name("comp") / "load.rs" + if load_rs.exists(): + texts.append(load_rs.read_text(encoding="utf-8")) + combined = "\n".join(texts) + mc = re.search(r"const MODIFIER_TYPES:\s*&\[&str\]\s*=\s*&\[(.*?)\];", combined, re.S) declared = re.findall(r'"([^"]+)"', mc.group(1)) if mc else [] declared_set = set(declared) - mp = re.search(r"fn parse_tools_table\b.*", text, re.S) + mp = re.search(r"fn parse_tools_table\b.*", combined, re.S) implemented: Set[str] = set() if mp: for mm in re.finditer(r'kind\s*==\s*"([^"]+)"', mp.group(0)): @@ -535,6 +539,12 @@ def build_markdown( usage_col = "Usage (Active / Archive)" + # Identify tools covered by differential fuzzing/matrix probes so 0.0% + fuzzed tools get a ✅ badge. + fuzzed_text = "" + for p in (REPO_ROOT / "scripts/diff_fuzz/matrix.py", REPO_ROOT / "scripts/diff_fuzz/fuzzer.py"): + if p.exists(): + fuzzed_text += p.read_text(encoding="utf-8") + "\n" + # Categorized tool tables for cat in CATEGORIES: cat_tools = [m for m in TOOL_METADATA if m.category == cat and (m.name in live_engine_tools or m.name in non_render_tools)] @@ -547,7 +557,9 @@ def build_markdown( for m in cat_tools: names = (m.name,) + m.aliases usage = format_usage(names, active_corpus, archive_corpus) - lines.append(f"| `{m.name}` | {m.probe} | {m.mae} | {usage} | {m.notes} |") + is_fuzzed = any(re.search(rf'\b{re.escape(n)}\b', fuzzed_text) for n in names) + mae_cell = f"✅ {m.mae}" if (m.mae.startswith("0.0%") and is_fuzzed) else m.mae + lines.append(f"| `{m.name}` | {m.probe} | {mae_cell} | {usage} | {m.notes} |") lines.append("") # Drift-detection table if any new tools appeared in Rust sources -- 2.54.1