Skip to content

Which of a reflection's two histories counts is not this frame's samples' to say - #301

Merged
wryyx merged 2 commits into
meshy-dev:mainfrom
wryyx:spec-history-by-geometry
Dec 1, 2026
Merged

wryyx merged 2 commits into
meshy-dev:mainfrom
wryyx:spec-history-by-geometry

Conversation

@wryyx

@wryyx wryyx commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

In a move stemporal reads a reflection's history in two places: where the surface point was, and where the reflected image was. Each counted by what the roughness says of its place times exp(-e²), e its distance from the mean of this frame's nine samples around. The two now count by the roughness alone; the nine samples' statistics are read only where a history is held to them (animated shading). One rule in live.wgsl, its notes, and a roadmap entry with the measurements.

Why

One path a pixel is heavy-tailed. Nine samples of a reflection that comes by rare bright ones are mostly dark, so of two histories the darker lay nearer them and won, frame after frame, for as long as the camera moved past: the specular history held less light than the samples it was made of.

Found by measuring the light a moving camera's picture holds against offline renders of the same instants (all figures: Apple M4, half resolution; two scenes recorded in lockstep while the camera plays bench-ghosting's moves and then a path of the scene's). A street at night keeps its light (1.00 standing still, 0.97 mid-strafe); a hall of machines, full of small bright things reflected in metal, reads 0.90 standing still and 0.85 to 0.87 moving. Taken apart by signal, linear sums against the offline render's:

the hall's specular signal over offline's standing still mid-turn mid-strafe stopping from 8 m/s 0.1 s on along its path
before 0.86 0.82 0.73 0.84 0.86 0.76
no specular history at all in a move (a probe) 0.86 0.89 0.92 0.89 0.86 0.83
this change 0.86 0.82 0.87 0.95 0.92 0.82

The kernel's samples hold the same share of the offline light moving or still; the upscaler's output is within 2 % of its input in a display-like measure. The loss was this choice.

What it changes

  • The hall's frame light over offline's: mid-strafe 0.85 → 0.89, mid-orbit 0.86 → 0.90, at the stop 0.87 → 0.95, a tenth of a second on 0.86 → 0.92. How unevenly that ratio lies over the frame: 15 to 26 % less in those. ΔE against offline 4.94 → 4.82, 4.98 → 4.94, 5.67 → 5.64, 5.28 → 5.20.
  • Standing still and in a turn nothing changes: without parallax there is one history.

What it costs

  • The hall's change from a frame to the next over the six frames after the stop: 1.97 → 2.04 (after the strafe 2.27 → 2.21). Eight seconds along its path ΔE 4.04 → 4.10.
  • Of twelve clips against offline, a turntable of jewellery reads ΔE 2.34 → 2.37.

Validation

  • bench-object-ghosting: its sixteen readings the same (a thrown lamp's trail a tenth of a second after its flight 84 → 74 px).
  • bench-ghosting --quick --check passes, its five readings within 0.02.
  • bench-temporal: the water and the lighting edit to the last digit; the street's dolly 1.99 / 2.04 / 2.00 / 1.59 → 2.01 / 2.06 / 1.96 / 1.58.
  • bench-window tokyo-turn and tokyo-orbit against offline: twenty rows the same to 0.01.
  • Twelve clips against offline: eleven within 0.01 in ΔE, the one above; frame time 0.0 to 0.7 % more.
  • The street's recording: its change from frame to frame, its detail and its ΔE the same at every moment.
  • Unit suite 292 pass; render suite 273 of 273.

Also found, left as it is

  • The street's walk passes potted bushes and a hedge that read 0.65 to 0.79 of the offline light, and still do with the camera held there for eight seconds. That is the live kernel's A_CUTOUT_EMITTERS (cutouts are opaque to emitters' shadow rays): with the bit off, 0.97 and 0.99, for 18 % more of the frame at the street's first view and 24 % over the walk.
  • The firefly cut on a young diffuse history takes 4 to 5 % of the hall's diffuse light as the camera stops, 1 to 2 % elsewhere.
  • The specular signal mid-turn (0.82 for 0.86 standing still) is not explained.

Not checked on Vulkan, nor in a browser. The recordings and their measures were made outside the repository.

🤖 Generated with Claude Code

wryyx and others added 2 commits December 2, 2026 02:32
…les' to say

When the camera or a surface moves, `stemporal` reads a reflection's history in two places: where the surface
point was, and where the reflected image was. Each counted by what the roughness says of its place, times
exp(-e^2), e its distance from the mean of the nine samples around in bands of their deviation.

One path a pixel is heavy-tailed. Nine samples of a reflection that comes by rare bright ones are mostly dark, so
of two histories the darker lay nearer them and won, frame after frame, for as long as the camera moved past: the
history held less light than the samples it was made of.

The two now count by the roughness alone, the reflection's being a history that was found at its place on
surfaces of this normal and roughness. The nine samples' statistics are read only where a history is held to
them (animated shading).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…tween a reflection's histories

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@wryyx
wryyx merged commit 92840f6 into meshy-dev:main Dec 1, 2026
10 checks passed
@wryyx
wryyx deleted the spec-history-by-geometry branch December 1, 2026 18:52
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