Cameras? - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Cameras? (/thread-6882.html)
Cameras? - whogben - Jul 29, 2003 12:23 PM
are there cameras in openGL, if so how do I create/view/move one, how about what I'm looking at right now? am I looking through an opengl camera in the default view? Dear go what is going on!
Cameras? - OneSadCookie - Jul 29, 2003 01:31 PM
There are no "cameras" per se.
There is a model-view matrix which allows you to change things like the direction you're looking, and a projection matrix which lets you set things like the field of view angles.
If you haven't changed either matrix, you're looking in 2D, the bottom left corner of the window is (-1, -1) and the top right is (1, 1).
Cameras? - NCarter - Jul 29, 2003 01:59 PM
Try gluLookAt() and gluPerspective() from the GLU for a quick way of setting up a camera-like matrix. That still doesn't give you a 'camera object', though - that's something you'll have to create in your own code.
Cameras? - whogben - Aug 1, 2003 10:25 AM
Nah, I found it easier to just rotate and ofset everything as it draws the level, thanks for your advice.