Hello
Indeed there is a strange bug after mouse click (when adding clones of the splat).
After some tests, I think it comes from the clone + repositioning, more than the mouse stuff.
But putting this bug apart, I’m wondering what exactly you are trying to achieve here ? This logic :
- Pick on every frame
- Move picked object at pickedPoint
Is somehow an infinite loop. With a normal mesh (with volume), it would quickly lead to the mesh being stuck in camera (moved toward camera on each frame)
Also, I think that CPU picking on a Splat is not possible since anyway, there is only 1 plane (2 triangles) to be picked. The rest is on GPU side. As you can see here, moving a cube on pickedPoint :
The picking is actually happening on the XZ plane :
I think in order to pick an actual 3D point inside a Splat, you would need a GPU picking, but the current version is not returning pickedPoint
, as far as I know. And anyway, even with a pickedPoint, you would most likely have a strange behavior due to the number of semi transparent shapes all over the volume of the splat