Repository navigation
A history that moves is resampled with the Catmull-Rom kernel - #302
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 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
bench-ghosting --quick --checkpasses: 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).Validation
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