I am facing a challenge in my ThreeJS application where the view automatically centers on an object if it is close to the center of the view and closer than a specified distance. While I have information about the latitude and longitude of all objects and the viewer (camera), I am unsure if there are obstacles like walls blocking the view.
Is there a way for ThreeJS to indicate if an object is visible from the camera?
I came across a potential solution in an older version of ThreeJS that referenced a webglObjects array, but I am unable to locate its equivalent in newer versions: https://github.com/mrdoob/three.js/issues/3627#issuecomment-20763458
While ThreeJS Frustum culling is available, it only confirms if the camera is correctly aligned and does not address potential obstructions in the view of the object.
Raycaster solutions are not suitable as the target object has dimensions, unlike a point.
Developing my own occlusion culling system seems daunting without any sample resources to guide me.
Are there any recommendations or suggestions to overcome this issue?