After scouring numerous questions on stack overflow, I have yet to find a solution to my current issue.
Within my scene, I have a large collection of Object3D's that are constantly changing, all being viewed by an orthographic camera head-on.
What I am in search of is a straightforward function that, upon invocation, will adjust the top/left/bottom/right/zoom properties of the Orthographic camera to perfectly fit the Object3D group.
I've experimented with different approaches, but none have proven successful enough to share. It seems like a fresh perspective is needed at this point. While I've come across suggestions about adjusting the camera's fov based on the distance from the object's bounding box face to the camera for perspective cameras, implementing this with an orthographic camera has been challenging as the fov property doesn't seem compatible. Though, it might actually work and I just haven't discovered how.
While I hesitate to request code directly, I am hopeful for a function that can automatically fine-tune the necessary properties of the Orthographic camera to suit the specified object parameter. For instance:
function fitOrthographicCameraToObject3DGroup(group) {
// your implementation here
}