Intersections with GaussianSplatMesh
Closed this issue · 2 comments
IsaacBerman commented
I was wondering if there was any compatibility with raycasting/intersecting with the GaussianSplatMesh, like is currently supported in THREE.js for Object3D types.
Thank you in advance!
nyan-left commented
Hi @IsaacBerman,
Unfortunately, traditional THREE.js raycasters aren't compatible with InstancedBufferGeometry
. Here are a couple of alternatives you might consider:
- Use an invisible mesh as a 'hitbox'; scale it to align with your splat and check for raycaster intersections against this mesh.
- GPU Picking as shown in this example: https://threejs.org/examples/?q=interactive#webgl_interactive_cubes_gpu
The GPU Picking approach may require a good understanding of how this repo works, so I would advise the first option :)
IsaacBerman commented
@nyan-left, yes -- invisible hit box is what I was looking at exploring. Thanks!