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

Flowmap example help #11

Open
Forpee opened this issue May 18, 2021 · 1 comment
Open

Flowmap example help #11

Forpee opened this issue May 18, 2021 · 1 comment

Comments

@Forpee
Copy link

Forpee commented May 18, 2021

Hello,
I am in need of assistance regarding the flow-map example. I am trying to resize the image but when I try to do that with css the screen goes blank. Secondly when I add another div under the flow-map element, the mouse movement create a weird effect on the image.
here's my sandbox to demonstrate what I mean: https://codesandbox.io/s/react-curtains-flowmap-forked-ijie7?file=/src/App.js

Any help would be greatly appreciated.
Thx.

@martinlaxenaire
Copy link
Owner

Hi @Forpee,

To get a correct behaviour I think you should use your flowmap texture in a ShaderPass component instead of your Plane. In order for the flowmap shader to work properly, it should be associated with a fixed div covering the whole viewport.

See https://github.com/martinlaxenaire/curtainsjs/blob/master/examples/gsap-click-to-fullscreen-gallery/js/click.to.fullscreen.gallery.setup.js#L561 for an example implementation using curtainsjs.

Cheers,

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

2 participants