HomeSmartMesh / web_three_interface

webGL Three.js based interface demos for interactions with 3d data using mouse and touch
MIT License
41 stars 4 forks source link

How to ignore the hidden mesh when the mouse detects it . #3

Closed pxim closed 3 years ago

pxim commented 3 years ago

How to ignore the hidden mesh when the mouse detects it . ignore the mesh with visible===false

image image

wassfila commented 3 years ago

I tried to understand your example but it was a bit hard for me to match it with this repo, can you maybe link to the source with the line menu Copy permalink instead of screenshot ? Also is it an issue you reproduced with this or another repo ? I would try to help in both cases but I need somehow to reproduce the issue before I can properly analyze it, if you have a minimal example for it ?

image

pxim commented 3 years ago

I tried to understand your example but it was a bit hard for me to match it with this repo, can you maybe link to the source with the line menu Copy permalink instead of screenshot ? Also is it an issue you reproduced with this or another repo ? I would try to help in both cases but I need somehow to reproduce the issue before I can properly analyze it, if you have a minimal example for it ?

image

I solved the problem . need traverse the hidden object and all of its children’s layers , make their layers inconsistent with the camera’s layers.

reference example https://jsfiddle.net/eL689k74/23/

wassfila commented 3 years ago

Cool, glad to hear you solved it and thanks for the fiddle, now I understood better your example :)