Repository navigation
The output is composed from guides of its own - #310
Merged
Merged
Conversation
Under a render scale of 1 the frame has two grids. The kernel's `guides` pass traces the camera's ray for every output pixel each frame, at one of eight places in the pixel: the surface's distance, colour and normal, and the light that is the pixel's own (what it sees directly, and the directional lights' direct light with a shadow ray). The traced grid keeps the lighting, its samples at their pixels' centres: the frame's jitter moved every traced sample over its pixel, a sample changed surface at an edge and texel under a normal map, and its histories started again each time. - `gcompose` gives an output pixel the denoised irradiance and specular light of the traced samples on its surface, times its colour, plus its light. `gupscale` keeps the output's history; `track`, `judge` and `reject` judge it as they judge the upscaler's. - A thing thinner than two output pixels that a guide saw is recorded with its distance and its place, and `gcarry` takes the record on by the two cameras while the guides of the frames after miss it (`Thin`): the history moves with the thing, is spared the clamp in motion, and is dropped where the thing has gone on. - Reconstruction `builtin` (the default) is this where the traced grid is coarser than the output. `builtin-upscaler` is the frame as it was, and what `builtin` runs at scale 1 and in a diagnostic view. - The guides and a medium's record lie after the traced pixels' direct light in the kernel's direct buffer, which grows the first time a frame composes its output. - A render test may name a render scale and a reconstruction method. Three of the upscaler's tests run at half scale too; a unit test holds a first frame's texture to the output's resolution under both kinds of light. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
What it is, what was measured against main (two scenes in motion, the benches, twelve clips against offline), what it costs, what was tried and not kept, and what is not done. 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.
What
Under a render scale of 1 the live frame now has two grids, each given what it is for:
guides, traces the camera's ray for every output pixel each frame, at one of eight places in the pixel: the surface's distance, colour and normal, and the light that is the pixel's own (what it sees directly, and the directional lights' direct light with a shadow ray of its own).gcomposegives an output pixel the denoised lighting of the traced samples on its surface, times its colour, plus its light.gupscalekeeps the output's history;track,judgeandrejectjudge it as they judge the upscaler's.Thin,gcarry): a thing thinner than two output pixels that a guide saw is recorded with its distance and carried by the two cameras while later frames' guides miss it. Its light moves with it, is spared the clamp in motion, and is dropped where the thing has gone on.The setting
reconstruction: "builtin"(the default) is the new frame wherever the traced grid is coarser than the output."builtin-upscaler"is the frame as it was, and whatbuiltinruns at scale 1 and in a diagnostic view. Withbuiltin-upscalerthe picture's measures and the frame's time are main's.Measured
All on an Apple M4 at half resolution, main → this.
bench-object-ghosting, ΔE over sixteen momentsTwelve clips against offline (main, this, this, main): ΔE better on six, the same on one, 0.01 to 0.05 worse on four (a home 2.87 → 2.92, metals and gems 2.32 → 2.35, refraction 0.88 → 0.89, a museum 1.28 → 1.29); detail up on nine; whole pixels' change from a frame to the next less on ten.
What it costs
Known and not done
bench-ghosting --quick --checkpasses, with more excess than main's (mid-turn 0.79 → 1.10, trail 5 → 10 pixels; a tenth of a second after a stop 1.46 → 1.67). Not explained.Tests
scaleand areconstruction).npm run typecheck,npm test(324 pass, 1 skipped), both wasm32 builds.THREERT_HWRT=0).docs/ROADMAP.md § 1a has the full measurements and what was tried and not kept; docs/RUNTIME.md "ThreeRT's own: the output composed from its guides" describes the frame.
🤖 Generated with Claude Code