Hello all
I have the following situation:
My goal is to select all visible cubes (in one of the viewports) around a certain radius of the mouse. The first part of the problem is selecting all cubes in a cylinder around the mouse which is no big deal. The main problem is how to decide if a cube is visible or if its hidden by another cube in the circle. What would you think is the most efficient way to only select the visible cubes? For the orthographic projections ist pretty easy i just need to check if theres a block in direction of the camera with its depth smaller than the one querying. But for the perspectivic projection i fail to find a good way to check for that property.
Any help is greatly appreciated!
Greetings and thanks in advance
Plerion