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

using <EffectComposer> or <Effects> from r3/drei #69

Closed
forerunrun opened this issue Oct 18, 2023 · 2 comments
Closed

using <EffectComposer> or <Effects> from r3/drei #69

forerunrun opened this issue Oct 18, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@forerunrun
Copy link

forerunrun commented Oct 18, 2023

Is it possible to use the <EffectComposer> component from drei within the <Canvas> provided by react-three-map or is this a current limitation? I tried to get some <Effects> in and also tried using <EffectComposer> but all setups seem to clear the render buffers resulting in the mapbox render not being renderered under the three scene...

I was going to have a look into the possible upcoming features now to see if this is already documented, if not do you think this will be a possible future feature @RodrigoHamuy ?

EDIT: I see here there's a postprocessing todo https://github.com/users/RodrigoHamuy/projects/1?pane=issue&itemId=31099754 is this still in the pipeline to be worked on or do you think it's not possble currently?

@RodrigoHamuy
Copy link
Owner

Is a current limitation. I haven't managed to find a way to avoid <EffectComposer> from clearing the screen. One thing I may try in the future is to simply create a separated <canvas> that sits right on top of the one from MapLibre/MapBox, so even if cleared, it will still work with transparent background. I'm sorry I have been really busy so not sure when I will have time to do this >.<

@RodrigoHamuy
Copy link
Owner

This is now possible through the overlay prop:
https://rodrigohamuy.github.io/react-three-map/?story=postprocessing--default
Cc @forerunrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants