• Advertisement
Sign in to follow this  

gluLookAt question

This topic is 3375 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

you have to specify an "eye point" and a "center of view" point, ie where the camera is and where it is looking. My question is, does the distance from the eye point to the center of view point actually change anything? or is the center of view point just used to determine a direction vector of where the camera is looking? ie. if I put the camera at (0,0,0) and the center of view at (0,0,1), is this different than putting the camera at (0,0,0) and the center of view at (0,0,3)? Thanks Dave

Share this post


Link to post
Share on other sites
Advertisement
No it doesn't matter. After you call gluLookAt, OpenGL calculates centerofView - eyePoint vector and normalizes it. Both (0,0,3) and (0,0,1) produce (0,0,1) when normalized.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement