Commits

Cliff Biffle committed 1e43181

Adjusted the inverse perspective transform to give better dimensional accuracy in XY. I would love to cite some clever math here, but in reality I just adjusted this scale value until round things became properly round.

  • Participants
  • Parent commits c76e5b7

Comments (0)

Files changed (1)

   glRotatef(trackballRotation[0], trackballRotation[1], trackballRotation[2], trackballRotation[3]);
   glRotatef(worldRotation[0], worldRotation[1], worldRotation[2], worldRotation[3]);
   glRotatef(spin, 0, 1, 0);
-  glScalef(-1/640., -1/640., 1);
+  
+  // Determined empirically.
+  GLfloat xyAdj = 0.8F;
+  
+  glScalef(-1/640. * xyAdj, -1/640. * xyAdj, 1);
   GLfloat lightPos[4] = { 0, 0, -1, 1 };
   glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
 }