Zoom with orthographic camera

Hi, I’m using ofCamera with enableOrtho. I’m wondering how to properly zoom in or out with it. The only thing affecting the orthographic projection matrix is the viewport. But that doesn’t help.

Any ideas?

Hi,
There are some bugs in the orthographic projection when using the camera. It just affects it when you use a viewport with its origin non zero. I posted an issue on github https://github.com/openframeworks/openFrameworks/issues/4020

I was facing a similar problem to the one you face so I decided to make my own kind of easyCam but for ortho projection. As the controls of the easyCam are made for rotating mainly, moving it in an orthographic way gets quite frustrating.
Check it here.

2 Likes