question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

postProcess TAARenderPass become pale

See original GitHub issue

Describe the bug

I am using “taapass” according to the case of threejs’ official website, but I find it is different from the example. I have the phenomenon of all white here

sampleLevel = 5.0 1658916455559 sampleLevel = 0.0 1658916521510

Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. See error

Code

 this.composer = new EffectComposer(this.renderer);
        // const pass = new SMAAPass( this.width * this.renderer.getPixelRatio(), this.height * this.renderer.getPixelRatio() );
        // this.composer.addPass( pass );
        let renderPass = new RenderPass(this.scene, state.activeCamera);
        renderPass.enabled = false;
        this.composer.addPass( renderPass );
        let copyPass = new ShaderPass( CopyShader );
        this.composer.addPass( copyPass );
        let taaRenderPass = new TAARenderPass( this.scene, state.activeCamera, 0xffffff,1);
        taaRenderPass.unbiased = false;
        taaRenderPass.sampleLevel = 5;
        this.composer.addPass( taaRenderPass );
        this.renderer.setSize( window.innerWidth,  window.innerHeight);
        this.composer.setSize(  window.innerWidth,  window.innerHeight );

Live example

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem (drag and drop the image).

Platform:

  • Device: Desktop
  • OS: Windows
  • Browser: Chrome
  • Three.js version: “^0.142.0”,

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
luojiongcommented, Jul 28, 2022

I have solved the problem by setting the background color of “body” to black thanks !

2reactions
Lipacinpcommented, Jul 27, 2022

The problem on my side was coming from html background.

Set your canvas background color to black in CSS.

You can keep the color of your scene white if you want.

This bugs occurs on my side since the buffer use alpha for SSAA and TAA (RGBFormat --> RGBAFormat).

#24239

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to apply post-processing EffectComposer render passes ...
js I have a red plane in the background and a rotating white cube in the foreground. I'm trying to add a TAARenderPass...
Read more >
TAARenderPass: Pass over-brightens scene, shows ... - GitHub
Describe the bug When using TAARenderPass, certain valid settings result in incorrect ... postProcess TAARenderPass become pale #24387.
Read more >
How to use post-processing – three.js docs
Post-processing is a widely used approach to implement such effects. First, the scene is rendered to a render target which represents a buffer...
Read more >
Post Processing with three.js - Steemit
First let's look at how to use the GlitchPass . This is a cool glitchy effect that makes your scene look like it...
Read more >
Post Process Materials - Unreal Engine Documentation
CompositionGraphDebug to get a dump of the full graph. The graph is actually not only doing post processing but also some parts of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found