I’m still seeing an issue with zoomOn using the ArcRotateCamera with multiple meshes. The meshes I’m using have a wider aspect ratio than the viewport and zoomOn clips them outside the viewport.
Here is a repro with two meshes (using 5.51.0):
I’m still seeing an issue with zoomOn using the ArcRotateCamera with multiple meshes. The meshes I’m using have a wider aspect ratio than the viewport and zoomOn clips them outside the viewport.
Here is a repro with two meshes (using 5.51.0):
So I did see that part of it was clipped on the left side though I haven’t had a chance to fully figure out why, I’ll update when I have something.
This would be nice I also have the issue when the camera is not exact in front/left/right of the scene the zoom is too close: https://playground.babylonjs.com/#W3D1GK#10
Thanks for looking at this so quickly. The other important part that I didn’t call out is (as with the comment from @Pe443) this only happens when the position camera is not a normal to one of the bounding box planes. I haven’t looked at the zoomOn
code but it seems like maybe it is not taking into account the projection of the bounding box when the camera is at an angle. In my repro playground the camera alpha is BABYLON.Tools.ToRadians(235)
and beta is BABYLON.Tools.ToRadians(55)
.