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!
I suggest taking the time to read carefully chapter 3 of the Redbook. 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.