gluLookAt problems

Started by Mattbooth, March 01, 2005, 22:35:39

Previous topic - Next topic

Mattbooth

Hi guys

I'm having a tad bit of trouble with gluLookAt

i need to set two camera angels either side of a central object.  So i've setup a simple class using most of the NeHE stuff.  I have 2 quads and i think i have positioned the camera in the middle of them.  I was it so that i can look both ways with 2 seperate windows.  

However i cant even get it to work looking at one of hte objects.

Any help would be appreciated

Code attached

http://www.booth123.pwp.blueyonder.co.uk/zViewTEST.java

Thanks

Mattbooth

hmm so i've added a glPerspective(..) and it works now

Thanks for anyone that looked :)