glOrtho() and camera shaking magnitude

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. :slight_smile:

The camera should not be controlled with glOrtho. It should be controlled with the modelview matrix, perhaps with a gluLookAt call.