You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
there is a mechanism to recalculate the correct aspect ratio for perspective camera when window is resized, the same mechanism should exist for otho camera views (plan view and cross section)
The text was updated successfully, but these errors were encountered:
Actually this windowresize event is not even needed at all, because after creating the viewport it calls this.open() that calls this.sceneEl.resize(); and before creating the viewport, we set the camera and perspective camera is the active camera.
Modifying left and right is not enough, I tried to do something like camera.left * (ratio / info.prevRatio) but it's worse, scene is distorted when zooming int/out. I don't know where the issue is. There is probably something I don't understand about ortho camera.
there is a mechanism to recalculate the correct aspect ratio for perspective camera when window is resized, the same mechanism should exist for otho camera views (plan view and cross section)
The text was updated successfully, but these errors were encountered: