PDA

View Full Version : Setting up a camera using gluperspective



admiralfirelam
10-17-2009, 03:11 PM
I'm having trouble setting up a camera using gluperspective and glulookat. I've looked at a lot of code, an can't seem to make my code work. Have a blank screen. I am coding on the QT ide for windows. Anybody have any sample code so I can get started? Or an explanation of how to use the glu functions? Any help would be much appreciated!

marshats
10-17-2009, 06:46 PM
I suggest taking the time to read carefully chapter 3 of the Redbook (http://www.glprogramming.com/red/chapter03.html). That has a very good explanation on the topic. There are some examples in there that will demonstrate how to correctly use the camera and projection matrix.