openframeworks/openFrameworks — pull request #2675 by modality (2013-11-09 22:57:26+00:00)
Title: Orthographic projection should be relative to the viewport.

The orthographic projection matrix had hardcoded left and bottom values of 0, meaning that when a camera was rotated, it would appear as if the entire scene had been rotated around the bottom left corner of the screen, regardless of where the camera was positioned.

IMHO, the view of your scene should be roughly similar when toggling between these two projections. A different projection should not require any fiddly translation by a developer to compensate. It should be handled internally by ofCamera.

Here are some screenshots to demonstrate what I'm talking about.

**Positions of primitives in space:**
Red cube is at (0, 0, 0)
Green sphere is at (0, 0, -128)
Blue cube is at (128, 0, 0)
Cyan box is at (128, 64, 0)

**Front Perspective**
![front perspective](http://i.imgur.com/5ccinjk.png)
**Front Orthographic (current)**
![front broken](http://i.imgur.com/E3KAddT.png)
**Front Orthographic (patched)**
![front fixed](http://i.imgur.com/A9RCslL.png)
**Left Perspective**
![left perspective](http://i.imgur.com/jgOoHQd.png)
**Left Orthographic (current)**
![left broken](http://i.imgur.com/KlyvnZI.png)
**Left Orthographic (patched)**
![left fixed](http://i.imgur.com/kj4aLWz.png)