Skip to content

feat: shots and animation, then advanced light transport - #6

Merged
nodemode-ai merged 471 commits into
mainfrom
feat/shots-transport-0.10.0
Dec 4, 2026
Merged

nodemode-ai merged 471 commits into
mainfrom
feat/shots-transport-0.10.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

feat: shots and animation, then advanced light transport

Summary

Turn 5 of the plan: P13 shots and P14 animation (0.9.0), then P15 advanced light transport (0.10.0). 471 commits on main (5165147), in phase order: the seams, every P13 and P14 commit, chore(release): 0.9.0 (commit 251), every P15 commit with the GPU ports and the end-of-turn passes, chore(release): 0.10.0 (commit 471).

0.9.0, shots and animation:

  • Shots: named views that keep the camera, image style, environment, render settings, lights, visibility and variant choices, applied in one undo step and rendered by name (shot.*).
  • Material variants and model sets (variant.*, model_set.*), and the configurator: options, choices with material, show, hide, variant, model set and shot actions, requires and excludes rules, the nearest valid configuration on each choice, and config.render_all, one render per valid configuration.
  • Material templates that dress imported parts by material name, part name or file path, after an import or during it, with two of our own.
  • Measurements: distances, size boxes and angles pinned to parts, drawn in the viewport and, when asked, into renders.
  • Keyed animation (placement, camera and lens, material parameters, lights; step, linear, smooth, ease), turntables, orbits and camera paths, motion blur on the CPU, and frame sequences and movies (MP4, WebM, MOV, GIF) through ffmpeg run as a separate program, the family's LGPL build downloaded on request against pinned SHA-256 values.
  • The Shots and Configurator pages, template dialogs, the measure tool, the timeline and Render Animation, translated into 23 languages.

0.10.0, light transport:

  • On the CPU: nested media with priorities, absorption, volumes and random-walk subsurface; spectral rendering with dispersion (CIE data from colour-science, BSD-3-Clause, in NOTICE.md and THIRD-PARTY-NOTICES.txt); photon caustics; cutaways with caps; rounded edges; fibres.
  • On the GPU: media, motion blur, spectral rendering, cutaways and rounded edges, each compiled out of the kernel when unused. The GPU refuses loudly, with stable codes, caustics, fibres, more than 4 overlapping media, more than 32 cutaways, a colour cap over a thin film and rounded edges next to caps, and the CPU renders them. transport.features says which engine renders what.
  • The light transport controls, an engine gaps pass (schemas, references kept when parts and cameras are removed, spectral colour fixes, sun light links) and a window polish pass (renders through Final Render's options, the outline and gizmo on the timeline, keyed camera navigation, faster playback).
  • HASHOUT logs for all of Turn 5, docs (SHOTS, CONFIGURATOR, TEMPLATES, MEASURE, ANIMATION, VIDEO, TRANSPORT, and MATERIALS, GPU-ENGINE, OUTPUT, FILE-FORMAT, ARCHITECTURE updated), the skill kit, and an independent QA pass with its fixes.

No new dependencies. ffmpeg is never linked or shipped. The catalogue has 238 commands at 0.9.0 and 241 at 0.10.0 (112 document, 38 engine, 76 group commands, 15 aliases); ./formshot agents sync regenerated the manifest and tool reference in each release commit.

Commits

  • Seams: 6
  • P13 shots: shots 16, variants and model sets 13, configurator 13, templates 12, measurements 16, Shots page 16, Configurator page 13
  • P14 animation: keys 14, rigs 12, motion blur 15, sequences and movies 17, timeline 17, Render Animation 13
  • Translations 30, wiring 11, documents and logs 16
  • chore(release): 0.9.0: 1
  • P15 transport: media 15, spectral 14, caustics 14, cutaways 12, rounded edges 12, fibres 14
  • GPU ports: media 14, motion blur and spectral 14, cutaways and rounded edges 14
  • Light transport page 12, engine gaps 17, window polish 15, translations 10, documents 14, logs 14, lead fixes and notes 9, QA 5
  • chore(release): 0.10.0: 1

The short hashes change when the commits are signed.

Version

0.8.0 to 0.9.0 to 0.10.0, each bump the last commit of its release, in every version site the 0.8.0 release used (VERSION, package.json and package-lock.json, version.ts, tauri.conf.json, src-tauri Cargo.toml and Cargo.lock, backend __init__.py, the sixteen native crates and native/Cargo.lock, fsh-py, the engine usage line, README, CONTRIBUTING, NOTICE, SECURITY, ARCHITECTURE, the harness skill, the HASHOUT headers, the agent manifest). CHANGELOG.md has both sections and now gives dates in US Eastern time.

Checks

Every step of the five CI jobs, run by hand on Ubuntu from a fresh clone of this branch:

  • frontend: npm ci, npm audit --audit-level=low (0 vulnerabilities), typecheck, build: pass.
  • engine: ./formshot engine check (cargo check and clippy over the workspace, all targets, -D warnings, Rust 1.99.1): pass. Also clippy of fsh-wasm for wasm32: pass. The 0.9.0 commit on its own also passes clippy (native and wasm32) and the window typecheck.
  • backend: venv, pip install -r requirements.txt, compileall, import app.main: pass.
  • desktop-shell: frontend build, sidecar placeholder, cargo check --locked, cargo clippy --locked -- -D warnings: pass.
  • scripts: bash -n, py_compile, the em dash and emoji scan: pass.

Phase exits, run through the engine:

  • P13: one config.render_all wrote every valid configuration of a product with a rule (8 in one run, 5 in QA's), each picture matching its name, and the open document did not change.
  • P14: formshot-engine render model.glb out.mp4 --turntable 36 wrote a 36-frame H.264 MP4 from the 0.9.0 tree, and MPEG-4 Part 2 with an ffmpeg that has no H.264 encoder.
  • P15: every feature renders its reference scene on the CPU; on software Vulkan the GPU matches it (media 0.0006 to 0.0031, spectral 0.000001, cutaways 0.00001, rounded edges 0.000001, motion blur within 0.00001) or refuses with its code (caustics, fibres).

Unchanged: the seven templates and the sample render byte-identically to 0.8.0 on the CPU and on software Vulkan, and 0.8.0 projects re-save byte for byte. A project with every new block re-saves and recovers from its crash journal byte for byte. The pages ran in headless Chrome against the real engine with no layout shift under 4x CPU throttling.

Not run: any physical GPU (all GPU work ran on lavapipe); the window's own WebGPU engine with the new features; movies on macOS and Windows and the real family ffmpeg release; a hardware H.264 encoder; the Tauri desktop app beyond cargo check and cargo clippy; native review of the translations.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

Translucent (subsurface for wax, skin and marble) and volume (an index-matched transmissive box with scattering for smoke and fog) are appended to the catalogue with param specs for the new fields; generic shows every new field and the glass page shows medium_priority. Existing types keep their parameters. Ran cargo check -p fsh-scene.
A new phase module evaluates the Henyey-Greenstein phase function and samples it exactly by inverting its cosine distribution, for scattering in volumes and subsurface walks. Ran cargo clippy -p fsh-materials.
Optics::wavelength_ior evaluates the Cauchy law through n_d with the material's Abbe number at any wavelength, beside the RGB channel version kept for RGB mode. Ran cargo clippy -p fsh-materials with warnings denied.
A new medium module turns transmission colour, depth and scatter into absorption and scattering coefficients as OpenPBR defines them, and subsurface colour, radius and scale into extinction and a single-scattering albedo by OpenPBR's van de Hulst inversion. Ran cargo clippy -p fsh-materials.
A new cutaway module wraps the accel scene: every closest and any-hit query steps past target surfaces inside a cutaway's removed volume (at most 64 times) and returns the nearest cap where the boundary crosses the inside of a closed target, so camera, bounce and shadow rays agree. The geometry layer turns cap hits into a point, a boundary normal and a material context, and a changed cutaway forces a rebuild. Ran cargo check -p fsh-render-cpu.
One line in the integrator's hit region swaps the instance record for a cap whose cutaway caps in a colour, a matte material in that colour; part-material caps keep the part's record, so ids, material ids and alpha stay the cut part's. Ran cargo check -p fsh-render-cpu.
The snapshot gains a fibres list, built after the instances, with every instance's curves capped at two million segments in total (thinned evenly past it) and totals for reporting. Ran cargo clippy -p fsh-scene.
cutaway.set_enabled turns several cutaways on or off and cutaway.set_targets sets, adds to, removes from or clears their target lists, both undoable through the transaction and answering none when nothing changes; add, change and remove were already scene.add_cutaway, scene.set_cutaway and scene.remove. Ran cargo check -p fsh-scene.
Twelve fibre parameter specs join the generic and fabric type pages; the comb direction and the seed stay command-only since the page has no vector or integer editor. Ran cargo clippy -p fsh-scene.
A new media module reads each part's interior medium, subsurface medium, nesting priority and index-matched boundary from its material into InstanceData, and keeps the media a path is inside as a fixed-size stack ordered by priority and entry. Nothing uses it yet. Ran cargo check -p fsh-render-cpu.
With a transmission depth above 0 the surface no longer tints refraction; instead the path records entering and leaving the part on its medium stack and each segment inside is attenuated by exp(-sigma_t d), so the transmission colour is reached at the depth. Depth 0 takes none of these branches. Ran cargo check -p fsh-render-cpu.
The sphere primitive's seam corners differ in the last bits (sin of a full turn is not zero), so welding by exact position called it open and it got no caps; corners within a millionth of the mesh's size now share an id through a grid search. Ran cargo check -p fsh-render-cpu.
Segments inside a scattering medium draw a free-flight distance in one channel picked by throughput and weight by the mixture pdf over channels; a scattering event samples the Henyey-Greenstein phase function, counts as a diffuse bounce and runs roulette. Medium draws use their own sampler dimensions far in the PCG range. Ran cargo check -p fsh-render-cpu.
A curve primitive of truncated cones (radius varying from root to tip) with an entering-only ray test solved in double precision about the ray's closest approach, and a binned-SAH BVH over segments built from polylines. Checked hits against analytic cylinder and cone answers and a brute-force search in a scratch program; ran cargo clippy -p fsh-accel.
A Feature refusal with code cutaways and one sentence is listed when an enabled cutaway in the snapshot cuts at least one instance (an empty target list cuts every part), so the caller renders such scenes on the CPU instead of drawing them uncut. Ran cargo check -p fsh-render-gpu.
FibreScene wraps the instance scene and places curve BVHs on instances by caller id, so closest-hit and occlusion queries see fibres under their instance's transform and mask; fibre hits carry a flag bit in prim and expand to tangent, across, fibre index and point. Ran cargo clippy -p fsh-accel.
Each scattering event samples one light with the phase function as the BSDF, MIS-weighted against phase sampling; its shadow ray is attenuated by the media it crosses and passes index-matched boundaries, while refracting boundaries still block it as before. A delta crossing of such a boundary after a scattering event keeps that event's pdf so MIS stays consistent. Ran cargo check -p fsh-render-cpu.
Parts with a medium priority above 0 follow Schmidt and Budge: a surface inside a medium of higher priority is a false hit, crossed without interaction while the stack records it, and a real interface refracts with the index of the highest-priority medium beyond it instead of air. Priority 0 parts keep today's interfaces against air. Ran cargo check -p fsh-render-cpu.
A part with subsurface weight picks the subsurface closure with that probability: its BSDF without the diffuse lobe, plus an entry carrying the energy a white diffuse base would reflect. The entry walks inside the part with free flights and Henyey-Greenstein turns until it reaches a surface, where it leaves through a white Lambertian lobe with light sampling; IntegratorSettings::max_subsurface_steps (256) caps the walk and ends the path. Ran cargo clippy -p fsh-render-cpu.
Refusals::check adds Feature refusals nested_media, volume and subsurface, each naming the first material that uses it, only for scenes whose parts use a medium priority, a transmission depth or a subsurface weight, so the caller renders them on the CPU. Ran cargo clippy -p fsh-render-gpu.
Every material type except fabric and emissive lists edge_radius (a length in metres, slider to 1 cm) and edge_other_parts on its page. Ran cargo check -p fsh-scene.
New edges module: short probe chords through discs around the hit on three axes collect nearby surface, and their normals blend into a rounded shading normal with balance-heuristic weights over the axes. Probes draw from their own sampler dimensions past the catcher and AO ranges. Ran cargo clippy -p fsh-render-cpu.
InstanceData keeps the radius and the cross-part flag of its material, read on build and on a material refresh, so the edges module finds them at a hit. The previous commit needs this field to build. Ran cargo clippy -p fsh-render-cpu.
One call in the sample loop replaces ns with the rounded normal, lifted like a bent normal so its mirror direction stays above the surface; materials without a radius skip it before drawing any sample. Ran cargo clippy -p fsh-render-cpu.
A fibre BSDF with R, TT and TRT lobes and a residual: d'Eon's energy-conserving longitudinal lobe, trimmed logistic azimuthal lobes, Fresnel and absorption per order, absorption mapped from a colour, and lobe and azimuth importance sampling; Scatter picks it or the layered surface. A scratch white furnace gave exactly 1 by importance sampling on white fibres at four roughnesses, and the uniform estimate within 5 percent noise.
The CPU geometry places the snapshot's fibres on their instances through a fibre scene (curve BVHs cached by curve identity), answers fibre hits with their surface point, and rebuilds instead of refreshing materials when fibres are involved. Ran cargo clippy -p fsh-render-cpu.
At a fibre hit the integrator moves the hit to the fibre's root for materials and passes and scatters with the fibre BSDF coloured by the base colour there or the fibre's own colour. Ran cargo clippy -p fsh-render-cpu.
The GPU path adds a fibres feature refusal when the snapshot carries any fibre curves, so such jobs go to the CPU engine. Not run yet.
The CIE 1931 2 degree colour-matching functions at 1 nm and the S0, S1, S2 daylight basis at 5 nm, 360 to 830 nm, generated from colour-science's BSD-3-Clause datasets and checked equal to the CIE's own table within 5e-13. Not run.
The spectral module samples a hero wavelength and two rotations from the visible density, uplifts ACEScg colours with Jakob and Hanika's sigmoid (own Gauss-Newton solver under the ACES white's daylight, table lookup for varying colours), builds emitter and Kelvin spectra and converts three samples to ACEScg. Ran clippy on fsh-render-cpu and a scratch check: the white emitter films to 1.000, greys round-trip exactly.
FormShot 0.9.0 closes the shots phase and the animation phase: shots, material variants and model sets, the configurator with rules and config.render_all, material templates for imports, measurements, keyed animation with turntables, orbits and camera paths, motion blur on the CPU (the GPU refuses moving scenes), and frame sequences and movies through ffmpeg, with their pages, the timeline and Render Animation in the window. CHANGELOG.md gains its section and now gives dates in US Eastern time.

Version sites moved from 0.8.0 to 0.9.0: VERSION, frontend package.json and the two package-lock.json root entries, version.ts, tauri.conf.json, src-tauri Cargo.toml and its Cargo.lock entry, backend __init__.py, the sixteen native crate manifests and their native/Cargo.lock entries, fsh-py pyproject.toml, the formshot-engine usage line, the current-version lines of README, CONTRIBUTING, NOTICE, SECURITY, ARCHITECTURE, the harness skill and the HASHOUT log headers, the command counts (238: 110 document, 38 engine, 75 group commands, 15 aliases), the rendering skill's shots and animation workflows, and the agent manifest and rendering skill tool reference regenerated by ./formshot agents sync from a 0.9.0 engine build.

Run: cargo clippy --locked on the workspace and on fsh-wasm for wasm32 with -D warnings, cargo metadata --locked in src-tauri, formshot-engine version (0.9.0), ./formshot agents check (clean), python3 -m json.tool on package.json, package-lock.json, tauri.conf.json and agents/manifest.json, the em dash and emoji scan of the change, config.render_all (two configurations written) and a 36-frame turntable MP4 from this tree's engine.
SurfaceParams gains OpenPBR's transmission_scatter, transmission_scatter_anisotropy and subsurface_scatter_anisotropy and a nested-dielectric medium_priority at the end of the struct, defaulted, validated and left out of the JSON when default so older documents re-save byte for byte. Ran cargo check -p fsh-scene.
render.set_settings described motion blur and spectral rendering as CPU only with the GPU refusing them, which agents read from the catalogue; both render on the GPU now. Ran formshot-engine catalogue and checked the two descriptions.
Logs the render.source route, measurements in renders, the sequence toast, rigs from anim.status, the playback preview, posed reads, keyed camera navigation, the templates menu entry and motion blur from the summary. Not run.
Records the six strings in the animation and configurator namespaces and that Finnish still holds English. Not run.
Records the seven render and four shots strings and the Finnish gap. Not run.
Adds the transport settings, hero wavelength rendering with its colour-science data, and the spectral media, cap and sun link fixes. Not run.
Adds the photon method, its classes and gathering, and how the renderer runs a photon pass before each sample. Not run.
Adds the cutaway settings and commands, the CPU cut and cap rules, the rounded edge material fields and the probe method. Not run.
Adds the curve intersection and fibre scene, the fibre lobes, the material fields and growth, and the CPU integration. Not run.
The last translation pass left the keyed camera, render route, measurement and shot count strings in English in fi.json of four namespaces; they now use the Finnish terms those namespaces already use. Checked with the i18n check and json.tool.
Adds the CutScene, FibredScene and Closure layering, the per-instance fields and the sampler dimension ranges. Not run.
Adds the 352 byte frame and tables blocks, the kernel features, the five GPU ports with their parity figures, the remaining refusals and the self-check flags. Not run.
The labels section asked GET /api/textures whether uploads exist, but the service only answers POST there, so in the browser the 404 kept Add a label disabled with a reason saying the route is missing. It now probes the way the graph image picker does. Ran npm run build and headless Chrome on the Material page: the Add button is enabled with its normal title.
The configurator's Show in Shots opened the Shots page and emitted ui.shots.reveal, but nothing listened, so the shot was never shown. The Shots list now selects, scrolls to and focuses that row, waiting for the list to load when the page mounts first. Checked in headless Chrome at 4x CPU throttling: the row is selected, focused and in view, with no layout shift and no list node added or removed.
Logs the transport features store, the material groups, the cutaway editor, the spectral section and the namespace, and adds the new files to the map. Not run.
Adds the generated schemas, the reference hooks for removed nodes, cameras and materials, defaults for set commands, and the kelvin light field. Not run.
The translation log entry said fi.json still held English for the last seventeen strings; it now names the commit that translated them and the terms used. Not run.
Adds the media phase and coefficient maths, the new material fields and types, and the CPU media loop to the native log. Not run.
Adds transport.features, anim.status rigs and posed reads, the measurement queue field and the CLI boolean flags. Not run.
Lists the new media, spectral, caustics, cutaway, edge, fibre, transport and GPU files in their crates. Not run.
render with --frames or --turntable and a .tif output wrote 8-bit frames because render_sequence never forwarded the float flag to anim.render. It now does, as render_queued does for stills. Ran formshot-engine render sample seq.tif --frames 1-2 --float=yes: both frames are 32-bit float TIFFs (8-bit before).
Since the engine gaps pass, scene.remove freezes pinned measurement points, drops removed nodes from size boxes, removes the tracks and turntables on the node and moves a camera path's look-at to a point; MEASURE.md and ANIMATION.md still described the earlier behaviour. FILE-FORMAT.md now names the five new document blocks and the new render and material fields. Not run.
anim.render with frames [5, 2] answered that the range is outside the animation's frames, which is not the problem. A reversed range now gets its own sentence. Ran formshot-engine dispatch: [5, 2] and [1, 999] on the sample answer the two messages; clippy -D warnings on fsh-commands and fsh-cli is clean.
The first line of render's usage named only picture formats although render writes mp4, webm, mov and gif movies. Ran formshot-engine help and render sample one.gif, which ffprobe reads as a gif.
The GPU renders spectral scenes since its port (QA measured 0.000001 against the CPU), but the Final Render hint still ended with "CPU engine only for now". The sentence is dropped from the English string and from each language's translation, which keep the rest of their wording; the CPU badge beside the switch still shows when the GPU refuses the scene. Checked with tsc and the i18n check.
QA rendered a GIF of a document with no keys and got 151 identical frames, while VIDEO.md promised one frame. The engine keeps rendering the timeline's range (the dialog already warns that nothing moves), so the page now says that and points to Final Render for a single still. Not run beyond QA's reproduction.
FormShot 0.10.0 closes the advanced light transport phase: nested media, volumes and subsurface scattering, spectral rendering with dispersion, photon caustics, cutaways with caps, rounded edges and fibres on the CPU; media, motion blur, spectral rendering, cutaways and rounded edges on the GPU within the CPU's picture, with stable refusals for the rest; transport.features; the light transport controls; an engine gaps pass, a window polish pass, documents, HASHOUT logs for all of Turn 5 and an independent QA pass with its fixes. CHANGELOG.md gains its section.

Version sites moved from 0.9.0 to 0.10.0: VERSION, frontend package.json and the two package-lock.json root entries, version.ts, tauri.conf.json, src-tauri Cargo.toml and its Cargo.lock entry, backend __init__.py, the sixteen native crate manifests and their native/Cargo.lock entries, fsh-py pyproject.toml, the formshot-engine usage line, the current-version lines of README, CONTRIBUTING, NOTICE, SECURITY, ARCHITECTURE, the harness skill and the HASHOUT log headers, the command counts (241: 112 document, 38 engine, 76 group commands, 15 aliases), the rendering skill's light transport workflow, and the agent manifest and rendering skill tool reference regenerated by ./formshot agents sync from a 0.10.0 engine build.

Run: cargo clippy --locked on the workspace and on fsh-wasm for wasm32 with -D warnings, cargo metadata --locked in src-tauri, formshot-engine version (0.10.0), ./formshot agents check (clean), python3 -m json.tool on package.json, package-lock.json, tauri.conf.json and agents/manifest.json, tsc, and the em dash and emoji scan of the change.
@nodemode-ai
nodemode-ai merged commit fd5f6c0 into main Dec 4, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the feat/shots-transport-0.10.0 branch December 5, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant