Saturday, 26 January 2019

Using gluLookAt() causes the objects to spin

I am making a game using OpenGL with Pygame. So far I was able to make cubes appear and make a cross hair. When I tried to implement looking around, things got... weird. I would run it and without even moving my mouse it would start spinning the screen everywhere when I used the gluLookAt() function. When I took that out, it worked but I couldn't look around. I was doing some testing and I even put in set data values to the function just to make sure that they were not changing and it still spun. I am completely stumped and I am new to OpenGL and I have less than two months to finish my project. Thanks in advance for whatever you are able to help me with and here is my code: My code on GitHub

I am on python 3.6 btw.



from Using gluLookAt() causes the objects to spin

No comments:

Post a Comment