0

Is there a way to list/print all objects in camera FOV that not occluded objects? prefer without iterating all verts like here

        for obj in bpy.data.objects:
            if obj.type == 'MESH':
                 # detect object appear in camera view (not occluded by other object) 
                 # also visible_get() is not the function i need
greenrod
  • 53
  • 7
  • You would need to calculate the viewing frustum of the camera; determine what objects are in it by comparing at least bounding boxes; and then figure out which are behind others. If you want any sort of accuracy you would need to calculate based on the vertices in at least some cases. – Marty Fouts Jun 19 '22 at 00:02
  • @MartyFouts thanks for that! – greenrod Jun 22 '22 at 13:17

0 Answers0