gluLookAt question

Started by
0 comments, last by i_luv_cplusplus 15 years, 4 months ago
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
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.
OpenGL fanboy.

This topic is closed to new replies.

Advertisement