#How to hover object use raycaster function?

6 messages · Page 1 of 1 (latest)

indigo cairn
#

I used to mouseover/mouseout event to capture object, but it dont' seems smoothly. Basically, I need to code example script to implement it. Tks so much

fleet kernel
#

lot of examples are available on the official site, covering all possible cases . They use raycasting inside the renderer loop. The most basic to start with, is this one (simple raycast per object, under the mouse)
https://threejs.org/examples/?q=raycast#webgl_interactive_cubes
on the page, click bottom-right to show the code

wind nest
fleet kernel
#

welp...webGL doesn't contain any mouse reference anyway.
this question can't be answered without using weird shenanigan to emulate the thing 🤣

indigo cairn