Repository navigation
Conversation
bhouston
force-pushed
the
traa-projection-history-fix
branch
from
October 27, 2026 16:47
111ea08 to
ff0f01e
Compare
Collaborator
|
This PR combines two changes.
I doubt we need the second one. The previous depth is off by at most 1 pixel because jitter stays within +-0.5 pixel per frame. TRAA's disocclusion test already tolerates that:
So it seems the suggested code does not change the existing history decision. I would say we only fix this if there is a clear visible improvement. |
Collaborator
|
Closing in favor of #35313. |
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.
TRAA currently replaces an existing camera view offset and regenerates custom projection matrices while applying jitter. Preserve the camera's projection by translating in clip space, restore it after rendering, and ignore cleanup when no jitter was applied. Also account for the previous/current projection jitter difference when sampling depth history, since velocity excludes jitter while the depth buffer includes it.
Extracted from #35228. The history-copy optimization remains separate.
Live Demo Links:
https://raw.githack.com/bhouston/three.js/traa-projection-history-fix/examples/webgpu_postprocessing_traa.html
webgpu_postprocessing_traamodified to callcamera.setViewOffset( 2560, 1440, 640, 360, 1280, 720 )(a 2× zoom into the center). Before, TRAA discards the view offset:Validation: