-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glm::lookAt() superfluous up normalization #114
Comments
Hi, I noticed your bug report in the mailing list but I didn't realized it was for GLM. Your proposed change is correct and it will be applied in GLM 0.9.5. Thanks for contributing, |
My pleasure! Thanks for a great product!! On Thu, Sep 12, 2013 at 6:01 PM, Christophe Riccio <notifications@github.com
|
Oops. I removed the allocation of u. The code should read:
|
This bug is now fixed in GLM 0.9.5 branch. Thanks for contributing, |
Thanks!! On Tue, Sep 17, 2013 at 3:15 PM, Christophe Riccio <notifications@github.com
|
Hi,
In gtc/matrix_transform.inl, the lookAt function code includes a superfluous normalization of the up vector. This error was possibly copied from the GLU man page for gluLookAt (man page error acknowledged by Jon Leech). The current GLM (0.9.4.5) source code reads:
The code should read:
This is the GLU source code (correct), according to Jon Leech:
This fix should not alter the correctness of the glm::lookAt result. It only removes a pointless calculation.
The text was updated successfully, but these errors were encountered: