ezag / pyeuclid

2D and 3D maths module for Python
97 stars 41 forks source link

A fix for Matrix4.new_look_at which returns incorrect results. #9

Closed 01AutoMonkey closed 7 years ago

01AutoMonkey commented 9 years ago

A bug in pyeuclid was discussed in Answear 1 at http://stackoverflow.com/questions/25027045/applying-glm-like-perspective-and-lookat-calculations-results-in-my-shape-di , this is a fix for that bug.

Working code making use of this patch can be found at https://github.com/01AutoMonkey/open.gl-tutorials-to-pyglet/search?utf8=%E2%9C%93&q=new_look_at or simply by running file 4-2, 5-1 or 5-2 found in https://github.com/01AutoMonkey/open.gl-tutorials-to-pyglet