| ... | ... | @@ -73,15 +73,15 @@ CATEGORIES: Sequence[str] = ( |
| 73 | 73 | TOOL_METADATA: Sequence[ToolMeta] = ( |
| 74 | 74 | # Generators |
| 75 | 75 | ToolMeta("Background", "Generators", "`tier1_d`", "0.0%", "—"), |
| 76 | | ToolMeta("FastNoise", "Generators", "`noise_text`", "0.0%", ""), |
| 76 | ToolMeta("FastNoise", "Generators", "`noise_text`", "0.0%", "—"), |
| 77 | 77 | ToolMeta("Plasma", "Generators", "`tier1_c`", "0.1%–0.2%", "—"), |
| 78 | | ToolMeta("TextPlus", "Generators", "`text`, `noise_text`", "0.2%–0.8%", "Pure-Rust vector engine (no CoreText)."), |
| 78 | ToolMeta("TextPlus", "Generators", "`text`, `noise_text`", "0.2%–0.8%", "—"), |
| 79 | 79 | ToolMeta("Loader", "Generators", "All suites", "0.0%", "—"), |
| 80 | 80 | ToolMeta("DaySky", "Generators", "Unit tests", "0.4%–1.1%", "—"), |
| 81 | 81 | ToolMeta("Fuse.CheckerPieceGenerator", "Generators", "Unit tests", "0.0%", "—"), |
| 82 | 82 | |
| 83 | 83 | # Compositing & Blending |
| 84 | | ToolMeta("Merge", "Compositing & Blending", "`merge`", "0.0%–0.3%", "3D Z-depth merge (`PerformDepthMerge`) ignored."), |
| 84 | ToolMeta("Merge", "Compositing & Blending", "`merge`", "0.0%–0.3%", "3D Z-depth merge (`PerformDepthMerge`) not implemented."), |
| 85 | 85 | ToolMeta("Dissolve", "Compositing & Blending", "`tier1_b`", "0.0%–0.1%", "—"), |
| 86 | 86 | ToolMeta("Paint", "Compositing & Blending", "Unit tests", "0.0%–1.2%", "Clone/Smear/Emboss apply modes and non-round image brushes not yet implemented."), |
| 87 | 87 | ToolMeta("PolylineStroke", "Compositing & Blending", "Unit tests", "0.0%–0.3%", "Rendered only inside `Paint` / `PaintMask`."), |
| ... | ... | @@ -92,7 +92,7 @@ TOOL_METADATA: Sequence[ToolMeta] = ( |
| 92 | 92 | ToolMeta("BrightnessContrast", "Color & Depth", "`color_ops`, `tier1_d`", "0.0%–0.1%", "—"), |
| 93 | 93 | ToolMeta("ColorCorrector", "Color & Depth", "`vortex_cc`, Suite comps", "0.0%–0.4%", "Histogram/Match/Suppress tabs not implemented."), |
| 94 | 94 | ToolMeta("ColorGain", "Color & Depth", "`color_ops`, `noise_text`", "0.0%–0.1%", "—"), |
| 95 | | ToolMeta("ColorCurves", "Color & Depth", "Suite comps", "0.0%–0.1%", ""), |
| 95 | ToolMeta("ColorCurves", "Color & Depth", "Suite comps", "0.0%–0.1%", "—"), |
| 96 | 96 | ToolMeta("HueCurves", "Color & Depth", "`tier1_a`", "0.1%–0.5%", "—"), |
| 97 | 97 | ToolMeta("GamutConvert", "Color & Depth", "Suite comps", "0.0%–0.2%", "—"), |
| 98 | 98 | ToolMeta("InvertColor", "Color & Depth", "Suite comps", "0.0%", "—"), |
| ... | ... | @@ -146,7 +146,7 @@ TOOL_METADATA: Sequence[ToolMeta] = ( |
| 146 | 146 | ToolMeta("RectangleMask", "Masks", "`mask`, `mask_softedge`", "0.0%–0.2%", "—"), |
| 147 | 147 | ToolMeta("PolylineMask", "Masks", "`mask_softedge`, Suite comps", "0.1%–0.4%", "—"), |
| 148 | 148 | ToolMeta("BitmapMask", "Masks", "`mask_softedge`", "0.0%–0.2%", "—"), |
| 149 | | ToolMeta("WandMask", "Masks", "`archive_3d`", "0.0%–0.3%", ""), |
| 149 | ToolMeta("WandMask", "Masks", "`archive_3d`", "0.0%–0.3%", "—"), |
| 150 | 150 | ToolMeta("PaintMask", "Masks", "Unit tests", "0.1%–0.4%", "Non-round brush shapes not implemented."), |
| 151 | 151 | |
| 152 | 152 | # 2D Vector Shapes |
| ... | ... | @@ -177,10 +177,10 @@ TOOL_METADATA: Sequence[ToolMeta] = ( |
| 177 | 177 | ToolMeta("Merge3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "—"), |
| 178 | 178 | ToolMeta("Transform3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "—"), |
| 179 | 179 | ToolMeta("ImagePlane3D", "3D Pipeline", "`cam3d`", "0.1%–0.4%", "—"), |
| 180 | | ToolMeta("Shape3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "Torus/Cone/IcoSphere primitives not yet implemented."), |
| 180 | ToolMeta("Shape3D", "3D Pipeline", "`cam3d`, `cam3d_fov`", "0.1%–0.4%", "—"), |
| 181 | 181 | ToolMeta("Cube3D", "3D Pipeline", "Unit tests", "0.1%–0.4%", "—"), |
| 182 | 182 | ToolMeta("SurfaceFBXMesh", "3D Pipeline", "Unit tests", "Visual*", "Static mesh only (no skeletal skinning/morph animation)."), |
| 183 | | ToolMeta("Text3D", "3D Pipeline", "`archive_3d`", "Visual*", "Pure-Rust vector text plane with multi-slice `-Z` extrusion (bevels not yet implemented; `#46`)."), |
| 183 | ToolMeta("Text3D", "3D Pipeline", "`archive_3d`", "Visual*", "Bevels not implemented."), |
| 184 | 184 | ToolMeta("LightAmbient", "3D Pipeline", "Suite comps", "0.1%–0.4%", "—"), |
| 185 | 185 | ToolMeta("LightDirectional", "3D Pipeline", "Suite comps", "0.1%–0.4%", "Up to 4 directional lights per scene; shadow maps pending (`#46`)."), |
| 186 | 186 | ToolMeta("LightPoint", "3D Pipeline", "`archive_3d`", "0.1%–0.8%", "—"), |
| ... | ... | @@ -524,20 +524,17 @@ def build_markdown( |
| 524 | 524 | all_supported_classes = all_supported_tools | impl_modifiers |
| 525 | 525 | |
| 526 | 526 | lines: List[str] = [] |
| 527 | | lines.append("# Fusion 21.1 Compatibility Matrix") |
| 527 | lines.append("<!-- Auto-generated by scripts/gen_compatibility.py. Do not edit by hand. -->") |
| 528 | 528 | lines.append("") |
| 529 | | lines.append( |
| 530 | | f"Auto-generated from live engine sources (`{EVAL_DIR_LABEL}`, " |
| 531 | | f"`{SCENE3D_DIR_LABEL}`, `crates/model/src/comp.rs`) and real Fusion `.comp` corpora " |
| 532 | | "via `python3 scripts/gen_compatibility.py`." |
| 533 | | ) |
| 529 | lines.append("# Fusion 21.1 Compatibility") |
| 534 | 530 | lines.append("") |
| 535 | 531 | lines.append( |
| 536 | | f"- **Tracked Gaps & Issues:** [shale.paperclover.net/fission/issues]({SHALE_ISSUES_URL})\n" |
| 537 | | f"- **Conformance Probes:** [`scripts/fusion_probes.py`](scripts/fusion_probes.py)\n" |
| 538 | | f"- **Per-Node Fuzzer:** [`scripts/fuzz_node.py`](scripts/fuzz_node.py) over the Fusion-introspected " |
| 539 | | f"[`scripts/tool_catalog.json`](scripts/tool_catalog.json) (`scripts/fusion_introspect.py`), scored in " |
| 540 | | f"[`scripts/accuracy_ledger.json`](scripts/accuracy_ledger.json)" |
| 532 | f"Fission currently supports **{len(all_supported_tools)}** tool types across 2D/3D compositing, all with high accuracy. " |
| 533 | "This document tracks the progress on parity with Blackmagic Fusion Studio. " |
| 534 | "The main metric, **accuracy**, is the inverse of the image's " |
| 535 | "[mean absolute error](https://en.wikipedia.org/wiki/Mean_absolute_error), " |
| 536 | "meaning `100%` accuracy means the pixels are all identical. " |
| 537 | "For details, see [`scripts/fuzz_node.py`](scripts/fuzz_node.py)." |
| 541 | 538 | ) |
| 542 | 539 | lines.append("") |
| 543 | 540 | |
| ... | ... | @@ -546,28 +543,19 @@ def build_markdown( |
| 546 | 543 | lines.append("") |
| 547 | 544 | lines.append("| Metric | Value |") |
| 548 | 545 | lines.append("| --- | --- |") |
| 549 | | lines.append( |
| 550 | | f"| **Supported Flow Tools** | **{len(all_supported_tools)}** " |
| 551 | | f"({len(eval_tools)} 2D/Fuse/utility in `{EVAL_DIR_LABEL}`, {len(scene3d_tools - eval_tools)} 3D scene nodes in `{SCENE3D_DIR_LABEL}`, 2 Flow annotations) |" |
| 552 | | ) |
| 553 | | lines.append( |
| 554 | | f"| **Modifiers & Animation** | **{len(MODIFIER_METADATA)}** systems " |
| 555 | | f"({len(impl_modifiers)} Fusion modifier classes + Lua expressions) |" |
| 556 | | ) |
| 546 | lines.append(f"| **Supported Flow Tools** | **{len(all_supported_tools)}** |") |
| 547 | lines.append(f"| **Modifiers & Animation** | **{len(MODIFIER_METADATA)}** |") |
| 557 | 548 | fuzzed = {n: e for n, e in ledger.get("tools", {}).items() if n in live_engine_tools} |
| 558 | 549 | if fuzzed: |
| 559 | 550 | mean = sum(e["mean_accuracy"] for e in fuzzed.values()) / len(fuzzed) |
| 560 | | supported_tools_cell = f"**{format_accuracy(mean)}** ({len(fuzzed)} / {len(live_engine_tools)} supported tools fuzzed)" |
| 551 | supported_tools_cell = f"**{format_accuracy(mean)}**" |
| 561 | 552 | else: |
| 562 | | supported_tools_cell = "_Not measured (run `python3 scripts/fuzz_node.py --all`)_" |
| 553 | supported_tools_cell = "_Not measured_" |
| 563 | 554 | paper = ledger.get("paper_clover") |
| 564 | 555 | if paper: |
| 565 | | paper_cell = ( |
| 566 | | f"**{format_accuracy(paper['mean_accuracy'])}** ({paper['suite']['cases']} suite frames + " |
| 567 | | f"{paper['archive']['cases']} archive comps)" |
| 568 | | ) |
| 556 | paper_cell = f"**{format_accuracy(paper['mean_accuracy'])}**" |
| 569 | 557 | else: |
| 570 | | paper_cell = "_Not measured (run `python3 scripts/fuzz_node.py --paper-clover`)_" |
| 558 | paper_cell = "_Not measured_" |
| 571 | 559 | # Denominators queried directly from stock Fusion Render Node 21.1 (`fu:GetRegList()` visible CT_Tool) |
| 572 | 560 | # and WeSuckLess/Reactor (`Atoms/**/*.fuse`, 2026-12-01). |
| 573 | 561 | fusion_builtin_total = 378 |
| ... | ... | @@ -586,37 +574,11 @@ def build_markdown( |
| 586 | 574 | if t in all_supported_tools |
| 587 | 575 | ) |
| 588 | 576 | reactor_pct = 100.0 * len(reactor_supported) / reactor_fuses_total |
| 589 | | reactor_names = ", ".join(t.removeprefix("Fuse.") for t in reactor_supported) |
| 590 | 577 | |
| 591 | | lines.append(f"| **Paper Clover Comps Accuracy** | {paper_cell} |") |
| 578 | lines.append(f"| **Accuracy across [paper clover](https://paperclover.net)'s compositions** | {paper_cell} |") |
| 592 | 579 | lines.append(f"| **Supported Tool Accuracy** | {supported_tools_cell} |") |
| 593 | | lines.append( |
| 594 | | f"| **Coverage of Fusion's Built-in Tools** | **{builtin_pct:.1f}%** " |
| 595 | | f"({builtin_supported} / {fusion_builtin_total} built-in Fusion 21.1 Flow tools) |" |
| 596 | | ) |
| 597 | | lines.append( |
| 598 | | f"| **Coverage of All Fuses on Reactor** | **{reactor_pct:.1f}%** " |
| 599 | | f"({len(reactor_supported)} / {reactor_fuses_total:,} Fuses on Reactor: {reactor_names}) |" |
| 600 | | ) |
| 601 | | lines.append( |
| 602 | | f"| **Active Corpus (`trees/fusion`) Coverage** | " |
| 603 | | f"{format_coverage(active_corpus, all_supported_classes, '_Skipped (`/Volumes/Project/trees/fusion` not mounted)_')} |" |
| 604 | | ) |
| 605 | | lines.append( |
| 606 | | f"| **Archive Corpus (`private/samples`) Coverage** | " |
| 607 | | f"{format_coverage(archive_corpus, all_supported_classes, '_Skipped (`private/samples` not present)_')} |" |
| 608 | | ) |
| 609 | | lines.append( |
| 610 | | "| **HiQ vs Fast Mode** | " |
| 611 | | "**`HiQ`**: honors `DepthFull` / generator `Depth` / `ChangeDepth` (`Rgba8Unorm`, clamped `Rgba16Float`, unclamped HDR `Rgba16Float`/`Rgba32Float`), full-res blurs & `XGlow`. " |
| 612 | | "**`Fast`**: collapses working targets to `Rgba8Unorm`, downsamples blurs, caps `XGlow` octaves for interactive scrubbing. |" |
| 613 | | ) |
| 614 | | lines.append("") |
| 615 | | lines.append( |
| 616 | | "Accuracy is `100% − MAE%` against Fusion 21.1 renders. A single value is the mean over a live fuzz run " |
| 617 | | "(`scripts/fuzz_node.py`: frame 0 at defaults plus stratified parameter variations); a range is the legacy " |
| 618 | | "hand-curated probe-suite MAE for tools not yet fuzzed. `Visual*` marks stochastic tools judged by eye." |
| 619 | | ) |
| 580 | lines.append(f"| **Coverage of Fusion's Built-in Tools** | **{builtin_pct:.1f}%** |") |
| 581 | lines.append(f"| **Coverage of All Fuses on Reactor** | **{reactor_pct:.1f}%** |") |
| 620 | 582 | lines.append("") |
| 621 | 583 | |
| 622 | 584 | # Categorized tool tables |
| ... | ... | @@ -626,12 +588,20 @@ def build_markdown( |
| 626 | 588 | continue |
| 627 | 589 | lines.append(f"## {cat}") |
| 628 | 590 | lines.append("") |
| 629 | | lines.append("| Tool | Accuracy | Notes & Fallbacks |") |
| 591 | if cat == "3D Pipeline": |
| 592 | lines.append( |
| 593 | "Each 3D tool's accuracy is measured by rendering it inside a lit `Merge3D` + `Camera3D` + `Renderer3D` " |
| 594 | "(`RendererOpenGL`) scene while varying that tool's own parameters. `Renderer3D` accuracy varies " |
| 595 | "`Renderer3D`'s own settings (lighting, shadows, overscan, etc.) on a fixed 3D scene, whereas each " |
| 596 | "shape, light, camera, and material row varies that specific tool's inputs." |
| 597 | ) |
| 598 | lines.append("") |
| 599 | lines.append("| Tool | Accuracy | Notes |") |
| 630 | 600 | lines.append("| --- | --- | --- |") |
| 631 | 601 | for m in cat_tools: |
| 632 | 602 | entry = fuzzed.get(m.name) |
| 633 | 603 | acc_cell = format_accuracy(entry["mean_accuracy"]) if entry else legacy_accuracy(m.mae) |
| 634 | | lines.append(f"| `{m.name}` | {acc_cell} | {m.notes} |") |
| 604 | lines.append(f"| `{m.name}` | {acc_cell} | {m.notes or '—'} |") |
| 635 | 605 | lines.append("") |
| 636 | 606 | |
| 637 | 607 | # Drift-detection table if any new tools appeared in Rust sources |
| ... | ... | @@ -650,12 +620,12 @@ def build_markdown( |
| 650 | 620 | # Modifiers & Animation table |
| 651 | 621 | lines.append("## Modifiers & Animation") |
| 652 | 622 | lines.append("") |
| 653 | | lines.append("| Modifier / System | Probe Suite | Notes |") |
| 654 | | lines.append("| --- | --- | --- |") |
| 623 | lines.append("| Modifier / System | Notes |") |
| 624 | lines.append("| --- | --- |") |
| 655 | 625 | for mm in MODIFIER_METADATA: |
| 656 | | lines.append(f"| {mm.display_name} | {mm.probe} | {mm.notes} |") |
| 626 | lines.append(f"| {mm.display_name} | {mm.notes} |") |
| 657 | 627 | for name in uncategorized_mods: |
| 658 | | lines.append(f"| `{name}` | — | _Uncategorized modifier detected in `comp.rs`._ |") |
| 628 | lines.append(f"| `{name}` | _Uncategorized modifier detected in `comp.rs`._ |") |
| 659 | 629 | lines.append("") |
| 660 | 630 | |
| 661 | 631 | # Preserved & Passthrough (Roundtrip-Safe) section |
| ... | ... | @@ -669,35 +639,11 @@ def build_markdown( |
| 669 | 639 | ) |
| 670 | 640 | lines.append("") |
| 671 | 641 | |
| 672 | | # Combine curated unsupported list with any top real-world unsupported tools from corpora |
| 673 | | curated_by_name = {u.name: u for u in UNSUPPORTED_NOTES} |
| 674 | | combined_unsup: Counter[str] = Counter() |
| 675 | | if active_corpus is not None: |
| 676 | | for k, v in active_corpus[1].items(): |
| 677 | | if k not in all_supported_classes: |
| 678 | | combined_unsup[k] += v |
| 679 | | if archive_corpus is not None: |
| 680 | | for k, v in archive_corpus[1].items(): |
| 681 | | if k not in all_supported_classes: |
| 682 | | combined_unsup[k] += v |
| 683 | | |
| 684 | | # Order: curated items first (preserving logical grouping), then any remaining high-frequency unsupported tools |
| 685 | | display_unsup: List[str] = [u.name for u in UNSUPPORTED_NOTES] |
| 686 | | for k, _ in combined_unsup.most_common(25): |
| 687 | | if k not in curated_by_name and len(display_unsup) < 24: |
| 688 | | display_unsup.append(k) |
| 689 | | |
| 690 | | lines.append("| Tool Class | Issue | Behavior & Notes |") |
| 642 | lines.append("| Tool Class | Issue | Notes |") |
| 691 | 643 | lines.append("| --- | --- | --- |") |
| 692 | | for name in display_unsup: |
| 693 | | meta = curated_by_name.get(name) |
| 694 | | if meta is not None: |
| 695 | | issue_str = f"[#{meta.issue}]({SHALE_ISSUES_URL}/{meta.issue})" if meta.issue else "—" |
| 696 | | behavior = meta.behavior |
| 697 | | else: |
| 698 | | issue_str = "—" |
| 699 | | behavior = "Preserved lossless on save; passes through main input in Flow." |
| 700 | | lines.append(f"| `{name}` | {issue_str} | {behavior} |") |
| 644 | for meta in UNSUPPORTED_NOTES: |
| 645 | issue_str = f"[#{meta.issue}]({SHALE_ISSUES_URL}/{meta.issue})" if meta.issue else "—" |
| 646 | lines.append(f"| `{meta.name}` | {issue_str} | {meta.behavior} |") |
| 701 | 647 | lines.append("") |
| 702 | 648 | |
| 703 | 649 | lines.append("---") |