I started to to something with opengl in pygame, but I'm stuck at the point where gluLookAt takes world coordinates to orient the camera, but I want to move the camera with the mouse, so I have values like "mouse moved 12 pixels to the right".
At the moment I have gluLookAt(player_object.x, player_object.y, player_object.z, lookat_x, lookat_y, -100, 0, 1, 0)
but I don't know how to convert the movement of the mouse to these coordinates.
Maybe someone knows the answer or a formula to convert it. (I use python, but I think it's easy to port code or just a formula)