Skip to main content
gamedev.net
🔒 Locked

GluLookAt() problems

Started by khalligan Mar 4, 2004 at 4:43 AM 0 replies 250+ views
Original Post
khalligan
khalligan
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
Last Attacker
Last Attacker
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.