-
Hi, I have two main goals:
I believe the first goal can be achieved by either instructing three.js to render only part of the scene or by dynamically modifying some splats before rendering via the lib. As for the second goal, I’m honestly not sure how to proceed. I was considering using the parser output, but I’m unsure if that’s the best approach. I know there is a tool that does that (selecting and dynamically deleting splats) : https://playcanvas.com/supersplat/editor/ Any guidance or ideas would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For (1), you could conceivably pass 2 three-element vectors corresponding to the bounding box minimum and maximum as uniforms to the shader for It might look like:
Then you can add logic to determine if the splat is in the bounding box by using the value of The code would look something like:
For (2) I would say SuperSplat is your best option. |
Beta Was this translation helpful? Give feedback.
-
I have been working on a feature to crop the pointcloud, heres how I did it. In my web app I call this when the crop box handles are adjusted by the user
|
Beta Was this translation helpful? Give feedback.
For (1), you could conceivably pass 2 three-element vectors corresponding to the bounding box minimum and maximum as uniforms to the shader for
SplatMesh
and use those values to determine which splats to make visible. You could add the uniforms here:GaussianSplats3D/src/splatmesh/SplatMaterial.js
Line 20 in 2d80511
It might look like:
Then you can add logic to determine if the splat is in the bounding box by using the value of
splatCenter
before this line:GaussianSplats3D/src/splatmesh/SplatMaterial.js
Line 156 in 2d80511