Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current state of SSR #269

Open
msdcssd opened this issue Mar 16, 2024 · 0 comments
Open

Current state of SSR #269

msdcssd opened this issue Mar 16, 2024 · 0 comments

Comments

@msdcssd
Copy link

msdcssd commented Mar 16, 2024

Is SSR still supported? I'm asking because there's no trace of it in the documentation https://docs.pmnd.rs/react-postprocessing/effect-composer

I've tried to use it with the latest r3f, drei and three but no luck so far.

    "@react-three/drei": "^9.102.3",
    "@react-three/fiber": "^8.15.19",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "three": "^0.162.0"

For now I've switched to a simple custom hook with Three's EffectComposer because there seems to be various issues when using RP-EffectComposer with the latest versions listed above.

That's too bad because this (old) demo looks great, especially the reflection roughness looks fantastic
Building dynamic envmaps

Using the latest dependencies there seem to be other issues as well, for example the code sample from the main page with Drei's Lightformers

<Canvas>
  <EffectComposer>
    <DepthOfField focusDistance={0} focalLength={0.02} bokehScale={2} height={480} />
    <Bloom luminanceThreshold={0} luminanceSmoothing={0.9} height={300} />
    <Noise opacity={0.02} />
    <Vignette eskil={false} offset={0.1} darkness={1.1} />
  </EffectComposer>
</Canvas>

I'm no shader expert so I have no idea why it happens, but it looks like the effects are accumulating over time without clearing or something.
I'm using animated Environment Lightformers just like in this demo
https://codesandbox.io/p/sandbox/zealous-https-lwo219

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

No branches or pull requests

1 participant