Perspective to orthographic

Hi,
Currently trying to change from perspective to orthographic to down view, which I have working including the storing of rotation and position.

Can anyone point me in the right direction regards an effective way of translating the perspective zoom to give as close a possible view in orthographic ?

Many thanks.

you can perhaps make the zoom be tied to the distance from the ground plane… by some factor…

like… orthoCamera.zoom = 1 / orthoCamera.position.y
orthoCamera.updateProjectionMatrix()
or smth?

Hi and thanks.
I have found that if I save the active perspective camera’s zoom value and them make a division on this based on width/height of the scene, when I switch to orthographic camera and load the new zoom value into the ortho camera all looks ok.

I just repeat the process but multiply the values when returning to perspective.

1 Like