title: Python OpenGL glrotatef does not rotate around the y-axis - others work perfectly fine
body: <p>I am using gluLookAt with a camera whose coordinates are xCam, yCam and zCam. The coordinates of the object the camera is looking at are xPos, yPos, and zPos. There are variables named mouseturnX and mouseturnY, which measure the deviation of the mouse from the middle of the screen in the x-axis and the y-axis. The variable camdist describes the distance between camera and the object it looks at.</p>
  <p>The code of the cameraposition is this:</p>
  <pre><code>xCam = sin(mouseturnX)*camdist+xPos
  yCam = mouseturnY+yPos
  zCam = cos(mouseturnX)*camdist+zPos
  </code></pre>
  <p>I now made a polygon object, which I rotate with:</p>
  <pre><code>glRotatef(mouseturnX,0,1,0)
  </code></pre>
  <p>Usually it should only show me the backside of the object, it does not matter which position the camera has. But now it does not turn correctly. I tried it with other rotation-axises, there it works fine, but with the y-axis it just does not want to work. I tried changing the camdist from positive to negative, the mouseturnX in the glRotatef function from positive to negative and back to positive again. It just does not work. I used <strong>glPushMatrix</strong> before the rotation command and <strong>glPopMatrix</strong> after it. One line before the rotation command I used the translate function to set a fixpoint for the polygon.</p>