Hi. I have a mesh and a group of icospheres added to scene. My issue is, given some transformation of mesh and icospheres, is there a good way to test if each icosphere is still visible to camera or blocked by the mesh?
I have searched many ways, but ray_cast()
seems to be unstable and visible_get()
returns True
for all icospheres.
Here are 2 visualizations. It is the bottom of a bed model and you can see small spheres on some faces. There are more on the other side but being blocked by the bed.