1 year ago
#224058
Julien Chaize
In 3d, how to pick the most suitable point?
I have a 3d scene (with pointclouds and some other objects). I implemented algorithm to pick the closest point to the mouse for a pointclouds. But my problem is : I have several objects in my scene, so when I try to pick an object (or a point inside a pointcloud), I go through all the objects on my scene, I look for the more suitable point for each of them (accordingly to distance to the raycast or angle (which is better)). At this stage, I don't know how to find the point of which object is the most suitable in all situations.
Explanation : I want to find a point very close to the raycast but also quite close to my camera to pick visible objects (points) only.
So I need to find a way to mix : closest point to the raycast and closest point to the camera. Do you have some ideas or widespread solution in 3d ? Thanks for your help.
optimization
3d
point-clouds
closest
picking
0 Answers
Your Answer