I have a surface on which a set of three-dimensional objects is drawn. The task is to determine the object by the given coordinates on the surface.
For example: some objects are drawn on a desktop application, I need to determine which object the user clicked on.
Could you advise how such tasks are usually solved? Do I need to create remember the topmost object for each pixel? I do not think this is the best approach.
Any thoughts are welcome!
Thank!
Budda source
share