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

The Filter layer for Raycaster does not work #4

Open
ferrari212 opened this issue Feb 13, 2021 · 0 comments
Open

The Filter layer for Raycaster does not work #4

ferrari212 opened this issue Feb 13, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ferrari212
Copy link
Owner

The filter layer does not work properly when both, the Ship3D and the GLB are in. The idea is to disable each object according to the visibility status:
if (status) { modelGLTF.layers.enableAll() ship3D.layers.disableAll() } else { ship3D.layers.enableAll() modelGLTF.layers.disableAll() }

Some ideas are shown bellow, but tested without success:
mrdoob/three.js#251 (comment)
https://stackoverflow.com/questions/54293528/three-object3d-how-to-disable-raycast-for-object-not-material

@ferrari212 ferrari212 added the bug Something isn't working label Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant