Since R59 raycasting on lines is possible and it works perfect. I'm displaying a tooltip on mouseover.

Because of growing data, I had performance issues, so I decided to switch from THREE.Geometry to THREE.BufferGeometry. Everything works fine instead of raycasting.... I get no errors or something else on mouseover, there happens really nothing!

Isn't it possible to intersect raycasting on a line which was build up with THREE.BufferGeometry?

有帮助吗?

解决方案

Yes,Raycaster supports Line with BufferGeometry.

Be aware of the threshold parameter described in the docs.

See https://threejs.org/examples/webgl_interactive_lines.html

three.js r.130

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top