force-directed-graph icon indicating copy to clipboard operation
force-directed-graph copied to clipboard

Test Raycasting

Open jonobr1 opened this issue 3 years ago • 2 comments

jonobr1 avatar Jun 26 '22 04:06 jonobr1

Normal THREE.Raycaster example doesn't work because the positions of all vertices are moving in the vertex shader. This means that the mouse position needs to be passed as a uniform to the points and links meshes.

jonobr1 avatar Jun 28 '22 05:06 jonobr1

More information to pick THREE.Points with the GPU here:

  • https://discourse.threejs.org/t/three-points-use-gpu-picking-is-not-work/9045
  • https://gist.github.com/duhaime/1eafa293e7ce16b074a6d55cac67badc
  • https://bl.ocks.org/duhaime/1eafa293e7ce16b074a6d55cac67badc
  • https://threejs.org/examples/?q=interactive#webgl_interactive_cubes_gpu

jonobr1 avatar Jul 12 '22 04:07 jonobr1