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

useMask hook and Mask component doesn't work with the current version of three.js #1949

Closed
Dooqp opened this issue May 2, 2024 · 4 comments
Labels
bug Something isn't working Stale Inactive issue

Comments

@Dooqp
Copy link

Dooqp commented May 2, 2024

  • three version: 0.164.0
  • @react-three/fiber version: 8.16.3
  • @react-three/drei version: 9.105.6
  • node version: v20.9.0
  • npm (or yarn) version: 1.22.19

Problem description:

I've used useMask hook and Mask component without a problem for a while. But today I've upgraded my packages and they don't work properly anymore. They still work with the older version of three.js (0.155.0)

Relevant code:

I've tried to reproduce this issue with the drei's own useMask example and it doesn't work either so I'll just leave the examples link below
https://www.npmjs.com/package/@react-three/drei

Suggested solution:

I don't really have any suggested solution but I tried the older version of three.js (0.155.0) and it works as expected with the updated drei package. Maybe this helps.

@Dooqp Dooqp added the bug Something isn't working label May 2, 2024
@Jarodwr
Copy link

Jarodwr commented May 29, 2024

as of threejs 163 you need to toggle the stencil flag on your canvas gl property:
image

@laurentlahmy
Copy link

laurentlahmy commented Jul 7, 2024

Really worth updating the documentation! I just wasted hours on this.

#2021

Copy link

Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.

Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.

Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!

@github-actions github-actions bot added the Stale Inactive issue label Oct 30, 2024
Copy link

github-actions bot commented Nov 7, 2024

We’re closing this issue to keep our project manageable and make room for other active work, but we truly appreciate your effort and contribution.

If you’d like to continue working on this, please feel free to re-open it or reach out on Discord — our community is always ready to support you. Thanks again for helping us stay organized and for understanding our approach!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale Inactive issue
Projects
None yet
Development

No branches or pull requests

3 participants