react-postprocessing icon indicating copy to clipboard operation
react-postprocessing copied to clipboard

flickering with Bloom mipmapBlue + MeshRefractionMaterial

Open AaronLayton opened this issue 1 year ago • 7 comments

https://github.com/user-attachments/assets/be1a83b5-2c9c-43c3-a8d5-b38c0ff1b82e

I am getting a flickering when trying to use a bloom effect with mipmapBlur. As soon as I turn of the effect nothing flashes anymore.
I have tried varying all the values here but nothing is working. Any ideas?

 <EffectComposer>
        <N8AO aoRadius={0.15} intensity={4} distanceFalloff={2} />
        <Bloom
          luminanceThreshold={10.5}
          intensity={0.85}
          levels={9}
          mipmapBlur
        />
        <ToneMapping />
</EffectComposer>

Code_FcrSVN85qG

AaronLayton avatar Oct 09 '24 00:10 AaronLayton

Any update on this, I have upgraded to the latest packages for React 19 / Next 15 + all the ThreeJS related packages and I still get an issue

AaronLayton avatar Apr 03 '25 09:04 AaronLayton

https://github.com/user-attachments/assets/323c9ed3-7d9c-42c6-b950-fe615ada3e1b

<EffectComposer>
  <Bloom
    luminanceThreshold={1}
    intensity={0.1}
    levels={5}
    mipmapBlur
  />
  <ToneMapping />
</EffectComposer>
<instancedMesh
  key={name}
  castShadow
  args={[nodes[name].geometry, undefined, 65]}
  instanceMatrix={nodes[name].instanceMatrix}
>
  <MeshRefractionMaterial
    color={diamondColor}
    side={THREE.DoubleSide}
    envMap={env}
     aberrationStrength={0.12}
    toneMapped={false}
  />
</instancedMesh>

AaronLayton avatar Apr 03 '25 09:04 AaronLayton

I have the same problem https://github.com/pmndrs/drei/issues/2183

EugenIlchenko avatar Apr 03 '25 10:04 EugenIlchenko

Glad it's not just me @EugenIlchenko

I also have it where the Refraction just drops out and the model renders with a flat standard material

AaronLayton avatar Apr 03 '25 11:04 AaronLayton

Did you find a solution to this? @AaronLayton

christianstamati avatar May 22 '25 11:05 christianstamati

Did you find a solution to this? @AaronLayton

I did not @christianstamati - I ended up pinning the branch for now - it is still on my todo list to update, I figured I would give this Issue a while to see if there was any traction on it or if there were any updates to the package before trying again

AaronLayton avatar May 23 '25 23:05 AaronLayton

Check out this! It worked for me. https://github.com/pmndrs/drei/issues/2183

christianstamati avatar May 24 '25 05:05 christianstamati