Sign in to follow this  
Quat

zoom in orthographic mode

Recommended Posts

I'm working on an editing program and would like to zoom in orthographic modes. However, simple moving the camera closer to its target point does not work for orthographic projections, as it does for perspective projections. So is the usual strategy to just scale the width/height of the view volume box to simulate zoom? Should I keep a scaling factor that is incremented/decremented in response to mouse input to do the zoom?

Share this post


Link to post
Share on other sites
Yup, that's about right. Scaling those parts of the Orthographic projection matrix will "zoom".

Moving the camera will just put somethings behind the camera as you move it through the scene. So be sure you take that into account as you move the camera through your editing program.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this