View Full Version : Setting up a camera using gluperspective
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!
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.