trois icon indicating copy to clipboard operation
trois copied to clipboard

point-enter auto-triggered after GLTF model loaded

Open xcchcaptain opened this issue 3 years ago • 3 comments

as the example, pointer events will triggered after the .gltf model was loaed. but the mouse may not enter the scene. this is the pic image,when the code worked in starter-kit. i wondered whether it is intended.or just unwanted result

xcchcaptain avatar Sep 08 '21 13:09 xcchcaptain

That looks like an unintended result - I'll mark this as a bug. Thanks for catching!

SaFrMo avatar Sep 21 '21 13:09 SaFrMo

It is because of this : intersect-mode="frame", it will call intersect on every frame, even if the pointer is not over. The first time it will trigger the events because pointer position is, by default, at the center Not really a bug in my opinion, do you really need intersect-mode="frame" ?

We could change the default pointer position to handle this.

klevron avatar Oct 21 '21 17:10 klevron

It is because of this : intersect-mode="frame", it will call intersect on every frame, even if the pointer is not over. The first time it will trigger the events because pointer position is, by default, at the center Not really a bug in my opinion, do you really need intersect-mode="frame" ?

We could change the default pointer position to handle this.

maybe i could give it a try without intersect-mode="frame"
but i thought i need intersect with every frame to handle the effect as 'hover ' in html.

xcchcaptain avatar Oct 28 '21 08:10 xcchcaptain