PDA

View Full Version : glOrtho() and camera shaking magnitude



saucermancer
07-26-2011, 05:37 AM
Hi all,

Am having trouble trying to understand how to make the camera shake with glOrtho. Right now, the camera shakes properly in fullscreen mode (within a glViewport), but an object that is being rendered within that glViewport isn't shaking at the correct magnitude as the fullscreen one, as it is being rendered within another visible glViewport in the scene. Is there anyway I can "copy" the magnitude that's being used on the fullscreen glViewport to the smaller glViewport? Thanks in advance. :)

Alfonse Reinheart
07-26-2011, 12:18 PM
The camera should not be controlled with glOrtho. It should be controlled with the modelview matrix, perhaps with a gluLookAt call.