Skip to content

Conversation

@zalo
Copy link
Contributor

@zalo zalo commented Sep 11, 2025

Related issue: #31839

Description

Current Noise Behavior: https://rawcdn.githack.com/mrdoob/three.js/e33c7162cc881ae2301e067d71076e0ef6137029/examples/webgpu_postprocessing_ssgi.html

New Noise Behavior: https://rawcdn.githack.com/mrdoob/three.js/ce783910bcf441be07b9d2949945f1ba6ed6c296/examples/webgpu_postprocessing_ssgi.html

The SSGI Noise wasn't getting temporally jittered everywhere, this adds some jitter an additional UV node, allowing the noise to converge a little more smoothly.

Before/After of the TRAA Converged Noise Values:
NoiseComparison

The use of rand() here is a little suspicious; I wonder if it should be the InterleavedGradientNoise or something else to converge even better. You can see there is a persistent screen-space noise pattern that overlays everything...

Copilot AI review requested due to automatic review settings September 11, 2025 20:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the temporal noise implementation in the Screen Space Global Illumination (SSGI) effect to reduce noise artifacts and provide smoother convergence over time.

  • Adds temporal jittering to the SSGI noise calculation by incorporating _temporalDirection into the random UV sampling
  • Modifies the example HTML file to remove an unused parameter from the updatePostprocessing function

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
examples/jsm/tsl/display/SSGINode.js Updates noise calculation to include temporal direction for better temporal convergence
examples/webgpu_postprocessing_ssgi.html Removes unused parameter from updatePostprocessing function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Add PR number.
@Mugen87 Mugen87 merged commit 1c02d87 into mrdoob:dev Sep 12, 2025
6 of 7 checks passed
@Mugen87 Mugen87 changed the title Improve SSGI Temporal Noise SSGINode: Improve Temporal Noise. Sep 12, 2025
@Makio64
Copy link
Contributor

Makio64 commented Sep 15, 2025

so much better , thanks !

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.

3 participants