Repository navigation
Which of a reflection's two histories counts is not this frame's samples' to say - #301
Merged
Merged
Conversation
…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>
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 a move
stemporalreads 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 inlive.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 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
What it costs
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 --checkpasses, 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-windowtokyo-turn and tokyo-orbit against offline: twenty rows the same to 0.01.Also found, left as it is
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.Not checked on Vulkan, nor in a browser. The recordings and their measures were made outside the repository.
🤖 Generated with Claude Code