svelthree icon indicating copy to clipboard operation
svelthree copied to clipboard

Add shorthand prop `visible` to all components (where applicable)

Open vatro opened this issue 3 years ago • 1 comments

Currently only via props attribute.

Implementing this seems trivial, but it could affect interactivity logic / raycaster etc. leading to a bigger refactor.

Basically, objects which are not visible are not being rendered, but I need to examine what's exactly happening concerning them being detected by the THREE.Raycaster if invisible.

vatro avatar Jul 10 '22 11:07 vatro

see https://discourse.threejs.org/t/raycaster-hits-invisible-object/31279 see answer https://discourse.threejs.org/t/raycaster-hits-invisible-object/31279/2

Raycaster honors invisible objects since r114 . Please use the new property Raycaster.layers for selectively ignoring 3D objects during raycasting.

Moving this to 1.0.0-next.X milestone, it's needs more brain time / is not trivial.

vatro avatar Aug 10 '22 11:08 vatro