#240 Wrong gluLookAt Documentation

open
doc (10)
5
2011-09-14
2011-09-14
No

The documentation of the algorithm behind gluLookAt is partly wrong. See:
http://pyopengl.sourceforge.net/documentation/manual/gluLookAt.3G.html

"s" needs to be normalized because it is used for rotation, not translation. Also other gluLookAt implementations do this. For instance see:
http://www.opengl.org/wiki/GluLookAt_code

And also if "s" is normalized, there is no need to normalize UP anymore.

So "s" is computed this way:
tmp = f x UP
s = tmp || tmp ||
and UP' can be removed.

Cheers
David

Discussion


Log in to post a comment.