gluLookAt question
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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement