EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Merge branch 'main' into worktree-agent-abff9a10f06a98f2c
Brandon Thomas91f4a603a986
diff --cc docs/parity.mdindex 53c266c49,e50e3252d..328c80728--- a/docs/parity.md+++ b/docs/parity.md@@@ -154,9 -151,9 +151,9 @@@ the disk cache in the formats wave; th| Compositions | ≈ 81% | 3.3 | Mocha-style planar tracks for templates (CMP-7: Essential Graphics mirrored and linked properties landed in M13.11; Font and uniform Scale controls, Composition ▸ Open in Essential Graphics, Save Frame As ▸ Photoshop Layers / ProEXR and the VR Comp Editor landed in M13.7; the marker dialog, Composition Flowchart, Essential Graphics with master properties, `.ectemplate` templates and Responsive Design — Time landed: CMP-6, CMP-7) || Animation | 70% | 9.0 | puppet depth beyond pins, recording, rigging and follow-through (puppet pin recording with Record Options landed in M13.1; pin selection, rotate/scale handles, nulls for pins and Follow-Through in M13.14–M13.16), Wiggler/Smoother/Motion Sketch (motion-path handles and the graph editor transform box landed in M5.8; keyframe colour labels and Select Keyframe Label Group, Graph Editor snapping to markers / layer ends in M13.5) || Text | ≈ 96% | 0.3 | no extruded strokes (M13.12: the Variable Font Axes animator re-spaces the text — advances follow the animated axes; M13.6: variable font axes in the character style — `layer.setText variations`, the Character panel's Variable Font Axes fields — shape with HVAR / gvar advances and draw at that design-space position; OpenType features — stylistic sets, discretionary ligatures, contextual / stylistic alternates, swash, titling, ordinals, fractions, figure styles, true small caps / all small caps and superior / inferior glyphs with faux fallback — per character with the Character panel's OpenType popup and `text.fontFeatures` landed in M13.2; vertical Roman / Tate-Chu-Yoko, forced LTR paragraphs, caret on animated and path text, Variable Font Axes and Lottie style runs landed in M13.5; extruded, bevelled text in M7.6; per-character styles, paragraph settings, on-canvas editing and the `sourceText` style API in M9.9–M9.10) |-| Web | 97% | 0.2 | GPU effects in Render Queue / analysis workers (job workers render on their CPU), layer buffers in the browser's disk cache (frames only), no shared-memory threads inside one engine instance (the decided design is one engine instance per worker; a threaded build needs nightly `build-std`) (browser storage, Web Audio, Web Worker renders/analyses, WebGPU viewer and offline install landed in M15.2; viewer frames in frame workers fed by project diffs, Roto Brush propagation in a worker, non-blocking `wait: true` jobs and a browser Media Browser (File System Access folders, browser storage) in M13.10; WEB-1 in M13.24: GPU effects and the GPU compositor in the frame workers on their own WebGPU devices with deferred readbacks (frames render in passes; Backend Auto per comp), the disk cache in the Origin Private File System (written by the workers with sync access handles, LRU under the settings' limit, served after a reload), the storage manager (Settings ▸ Disk ▸ Browser Storage, `storage.info` / `storage.persist` / `storage.clear`), and a WGSL constant Chrome rejected (it disabled every GPU kernel in Chrome) fixed) |+| Web | 98% | 0.1 | No shared-memory threads inside one engine instance (the decided design is one engine instance per worker; a threaded build needs nightly `build-std`); Content-Aware Fill runs on the page (M13.30: Render Queue and analyses render on each job worker's own WebGPU device in passes, particles and Advanced 3D read back under keys, layer buffers in the browser's disk cache; browser storage, Web Audio, Web Worker renders/analyses, WebGPU viewer and offline install landed in M15.2; viewer frames in frame workers fed by project diffs, Roto Brush propagation in a worker, non-blocking `wait: true` jobs and a browser Media Browser (File System Access folders, browser storage) in M13.10; WEB-1 in M13.24: GPU effects and the GPU compositor in the frame workers on their own WebGPU devices with deferred readbacks (frames render in passes; Backend Auto per comp), the disk cache in the Origin Private File System (written by the workers with sync access handles, LRU under the settings' limit, served after a reload), the storage manager (Settings ▸ Disk ▸ Browser Storage, `storage.info` / `storage.persist` / `storage.clear`), and a WGSL constant Chrome rejected (it disabled every GPU kernel in Chrome) fixed) || 3D | 88% | 5.5 | multi-view layouts, the Extended Viewer for Advanced 3D comps (Classic 3D Extended Viewer landed in M13.5 UI completion); collapsed precomps of another size seen through the parent's camera render (fixed in M13.2); stereo rigs, orbit nulls, lights controlled by the camera, cameras/lights from glTF models, environment backgrounds, Advanced 3D motion blur, blend modes and track mattes landed in M7.7; Classic 3D iris-shaped bokeh with highlights, progressive depth of field on tilted layers and the focus-link commands landed in M13.5; Advanced 3D depth of field with the iris and highlight options, collapsed precomps as real Advanced 3D geometry and extruded text/shape strokes landed in M13.8; Advanced 3D (glTF/OBJ models, primitives, extruded text and shapes, PBR, image-based light, shadow maps, GPU rasteriser) in M7.4–M7.6; Advanced 3D end to end on the GPU (motion blur, iris depth of field, compositing) in M13.11 |- | Effects | ≈ 85% | 3.0 | GPU versions of the remaining effects (236 run on the GPU since M13.23, EFF-5: M13.23 added the 3D Channel and Immersive Video families, Apply Color LUT, the OCIO effects, Color Profile Converter and the simulations' render passes (Card Wipe included); M13.22 added the CC light family, the CC transitions, Block Dissolve, Radial Shadow, CC Bender / Blobbylize / Cylinder / Sphere / Spotlight / Environment, 3D Glasses, Numbers, Timecode and the time effects joined the 166 of M13.13; audio-driven effects and the stepped particle systems still render on the CPU) and the missing controls listed as partial in [effects.md](effects.md) (every After Effects effect exists since M9.11, M12.5 and M12.6; parameter names, order, twirl-downs, popups, units and defaults were aligned in M9.12) |+ | Effects | ≈ 85% | 3.0 | GPU versions of the remaining effects (243 run on the GPU since M13.29, EFF-5: M13.29 added the particle effects (CC Particle World / Systems II, Particle Playground, CC Ball Action, CC Pixel Polly, CC Scatterize, Curl Noise) and removed the fallbacks of Shatter's wireframe views, Foam's extras, Timewarp's Matte Layer, strong Warp Fisheye / Twist bends and custom `.ocio` configs; M13.23 added the 3D Channel and Immersive Video families, Apply Color LUT, the OCIO effects, Color Profile Converter and the simulations' render passes (Card Wipe included); M13.22 added the CC light family, the CC transitions, Block Dissolve, Radial Shadow, CC Bender / Blobbylize / Cylinder / Sphere / Spotlight / Environment, 3D Glasses, Numbers, Timecode and the time effects joined the 166 of M13.13; audio-driven effects still render on the CPU) and the missing controls listed as partial in [effects.md](effects.md) (every After Effects effect exists since M9.11, M12.5 and M12.6; parameter names, order, twirl-downs, popups, units and defaults were aligned in M9.12) || Interface | 75% | 5.0 | more Learn tutorials and pixel-level fidelity of dialogs (the Home ▸ Templates gallery (eight original built-in templates, user templates from File ▸ Save as Template…) and View ▸ Simulate Output ▸ My Custom RGB… landed in M13.25; Timeline layer reordering by drag, a non-snapping viewer pan, a working rename field and twirl arrows, and the full set of property reveal shortcuts — double presses, Alt+Shift keyframes, Ctrl+` — landed in M13.17–M13.20; the Home ▸ Learn tab with interactive tutorials and a UI fidelity pass landed in M13.5 UI completion; visual editors for Lumetri RGB / hue-saturation curves, Colorama's output cycle wheel, Glow's colour map and Reshape's correspondence points (viewer handles), a scrolling Preview panel and AE-style Composition / Timeline tabs (close, label swatch, viewer lock) landed in M13.10; Timeline outline and Project panel columns scroll horizontally, the Layer Style dialog, ROI resize handles, Pan Behind snapping and 3D Reference Axes landed in M13.5; native macOS menu bar, Timeline columns/search/reveal-add, Home screen with recent projects and all AE workspaces landed; viewer rulers/snapping/channels/snapshots landed in M0.13) || Project | ≈ 68% | 5.5 | auto-save, folder moves, OCIO displays beyond the built-in tone map (Color Engine with OCIO/ACES working spaces, HDR compand/tone mapping, Rec. 2100 PQ/HLG output, Feet + Frames, display colour management, Simulate Output and the locked viewer landed in M7.7; proxies and Interpret Footage fields / pixel aspect / alpha guess landed: PRJ-8, PRJ-3) || Masks & roto | 74% | 5.0 | Roto Brush's learned (3.0) segmentation model (variable-width mask feather points with the Mask Feather tool landed in M13.5; mask tracking and Mask Interpolation landed in M6.6; Roto Brush & Refine Edge with graph-cut segmentation, flow propagation, edge matting, decontamination and Freeze in M6.7) |@@@ -462,26 -457,33 +459,53 @@@ composited at 8 and 32 bpcdefault to the layer). Shatter's wireframe views and Foam's User Defined texture,Environment Map and flow-map preview render on the CPU.+ ## Update: M13.29 GPU effects, part D (EFF-5)++ 7 more effects run on the GPU (243 in all), and five CPU fallbacks are gone. Each case is+ checked against the CPU oracle (≤ 1/255 at 8 bpc, ≤ 1e-3 at 32 bpc) directly on a buffer (full+ and half resolution) and composited at 8 and 32 bpc; the CPU refactors behind the shared plans+ are pinned bit for bit by golden hashes (`crates/effects/tests/particle_golden.rs`,+ `timewarp_golden.rs`, `sim_golden.rs`).++ - **Particle render passes** (`gpu::fx_particles`): CC Particle World and CC Particle Systems II+ (every particle type and transfer mode; the stepped simulation stays on the CPU or the GPU+ `ParticleSim`, sorted and shaded as the CPU does), Particle Playground (cannon, grid, text+ strokes, layer exploder, property mappers, repel, wall; the Layer Map particles' frames are+ packed into one atlas), CC Ball Action, CC Pixel Polly and CC Scatterize (their plans read the+ frame back once: the particles take the layer's colours and, for Ball Action's twist, its+ luminance). Plans too large for one item table draw in several passes, each over the previous+ one, with the same per-pixel arithmetic.+ - **Curl Noise**: the fBm potential, its curl and the streamline trace as three kernels.+ - **Former fallbacks**: Shatter's wireframe views (the default view) draw their lines as+ sprites; Foam's User Defined texture, Environment Map and flow-map preview draw over the+ bubble sprites; Timewarp with a Matte Layer carries the masked frames and the foreground's and+ background's own vectors in its plan and builds both layers on the GPU; custom `.ocio` configs+ compile to the colour program (matrix and offset, exponent, log / log-affine, range, CDL, file+ LUTs, groups, inverses). Warp's Fisheye / Twist past 50 % or with a distortion keeps the CPU's+ f64 Newton solve (f32, even with more iterations, lands on other roots near the crease): the+ CPU solves the inverse map from the geometry alone and the GPU samples along it, so the chain+ stays on the GPU without a readback.++## Update: M13.30 web depth and polish++- **GPU in the browser's job workers** (WEB-1): each job worker opens its own WebGPU device+ (deferred readbacks) like the frame workers. The Render Queue's export and the analyses'+ frame loops are futures (`effectcraft_render::passes`, `offload::run_request_async`): every+ frame renders in passes on the device and the job awaits the GPU between them, so Render+ Queue renders and the input frames of Warp Stabilizer, 3D Camera Tracker, Track Motion, mask+ tracking and Roto Brush (prefetched before each step) use the GPU. GPU particles and+ Advanced 3D (`raster_3d`, `render_3d`) read back under keys, so they run on the device in+ frame and job workers too (a depth-of-field run still resolves on the CPU, its scenes on+ the GPU). `effectcraft.info().workers` reports the job workers' adapter and each job's passes+ and readbacks; the headless-Chrome smoke test measures them.+- **Layer buffers in the browser's disk cache**: frame workers back their layer caches with a+ `PrefetchStore`; the page plans which layer entries to read before a request from the+ previous frames' misses (`LayerPrefetch` over the shared `DiskIndex`, one LRU order for+ frames and layers), and slow buffers are written to `effectcraft-cache/v1/layers`.+- **Templates embed footage**: `templates.saveAs {embedFootage (default true), embedLimitMB+ (default 256)}`; `templates.create {projectPath?, footageDir?}` extracts it.+- **ICC A2B0 profiles** in View ▸ Simulate Output ▸ My Custom RGB (see above).+## Highest-value gaps, in order1. ~~On-canvas text editing and per-character styles~~ (landed: M9.9–M9.10).