GluLookAt() problems

Started by
0 comments, last by khalligan 20 years, 2 months ago
I''m having a problem with the gluLookAt function, Im writing a 3d modeller and im using gluLookAt to orient all of the views. I can get all them correct, but using the function to orient the camera to the left (Left Viewport) is giving problems. In my left viewport ... ::gluLookAt(-50.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f); ... The camera just seems to be wrong, im getting strange coordinates when I click for a point on the left viewport. Am I doing something wrong here, The up vector seems right though. Please Help, Keith
Advertisement
Try to perform a translation and rotation.
If it doesn''t work correctly with that, then you''ve problems in your code.

// Last Attacker \\---=( LA )=---// LA Extreme \\

ICQ Number : 120585863

E-mail:

laextr@icqmail.com
"Take delight in the Lord and He will give you your heart's desires" - Psalm 37:4My Blog

This topic is closed to new replies.

Advertisement