Skip to content

A history that moves is resampled with the Catmull-Rom kernel - #302

Merged
wryyx merged 2 commits into
meshy-dev:mainfrom
wryyx:history-catmull-rom
Dec 1, 2026
Merged

wryyx merged 2 commits into
meshy-dev:mainfrom
wryyx:history-catmull-rom

Conversation

@wryyx

@wryyx wryyx commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

In motion both live denoisers fetched their histories bilinearly: the mean of four pixels at a new sub-pixel offset every frame, a blur that adds up over a history's length. Where the 4 × 4 pixels around the position, less the corners, all show this surface, the diffuse history (once it is long enough to be fetched at its pixel's centre, 16 frames) and the specular one (from 8 frames, at either of its two places) are now resampled with the Catmull-Rom kernel and held within the range of the four pixels around the position, since the kernel's negative lobes ring at a steep edge. Elsewhere, and for the histories' lengths and moments, bilinearly as before. Standing still nothing is resampled and nothing changes.

live.wgsl (dtemporal, spec_history) and a roadmap entry with the measurements.

What it changes

All figures: Apple M4, half resolution, on top of #301; two scenes recorded in lockstep while the camera plays bench-ghosting's moves and then a path of the scene's, against offline renders of the same instants.

a street at night mid-turn as the turn stops mid-strafe stopping from 8 m/s walking (three moments)
share of the offline detail 0.451 → 0.458 0.380 → 0.392 0.454 → 0.461 0.374 → 0.382 0.351 → 0.364, 0.403 → 0.410, 0.371 → 0.381
ΔE against offline 2.86 → 2.83 2.61 → 2.54 3.22 → 3.18 3.61 → 3.60 3.94 → 3.86, 4.07 → 3.98, 4.90 → 4.79

A hall of machines: 1 to 2 % more of the detail in its moves (mid-turn 0.453 → 0.461), ΔE 0 to 1 % less, its light against offline 0 to 2 % more. The picture's change from a frame to the next after a move: 4 × 4 block means the same on the street and 0 to 1 % less in the hall; per pixel 0 to 1 % more in both.

What it costs

  • Of twelve clips against offline, metals and gems on a turntable: ΔE 2.37 → 2.32 with 4 % more of the detail (0.298 → 0.311), and their whole pixels' change from a frame to the next 1.35 → 1.46. The other eleven within 0.01 in ΔE.
  • bench-ghosting --quick --check passes: a tenth of a second after the stop 1.39 → 1.46, mid-strafe 1.31 → 1.28, the others within 0.02.
  • bench-object-ghosting: ΔE the same at all sixteen moments; a thrown lamp's trail a tenth of a second after its flight 74 → 105 px at the same ΔE (3.67, 3.66).
  • Frame time over the twelve clips: from 1.4 % less to 0.3 % more.

Validation

  • Unit suite 292 pass; render suite 273 of 273.
  • Twelve clips against offline: all pass, as above.

Not done

The bounds on a moving history's length (moving_frames) were set for the bilinear tap's blur and are as they were. 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:53
In motion `dtemporal` and `spec_history` fetched their histories bilinearly: the mean of four pixels at a new
sub-pixel offset every frame, a blur that adds up over a history's length.

Where the 4 x 4 pixels around the position, less the corners, all show this surface, a diffuse history old enough
to be fetched at its pixel's centre and a specular one of eight frames or more are resampled with the Catmull-Rom
kernel instead, held within the range of the four pixels around the position (the kernel's negative lobes ring at
a steep edge). Elsewhere, and for the histories' lengths and moments, bilinearly as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@wryyx
wryyx merged commit ade79c0 into meshy-dev:main Dec 1, 2026
10 checks passed
@wryyx
wryyx deleted the history-catmull-rom branch December 1, 2026 19:12
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