title: Why does my wired sphere turn into ellipsoid when translating and changing camera angle?
body: <p>I need to translate my wired sphere along z-axis back and forth while also changing camera angle. Whenever my sphere gets translated, it slowly turns into ellipsoid. I really don't understand why. Here you can see pieces of code where I believe is a mistake. Also, shapes shouldn't be changed when resizing the window, only their size. </p>
  
  <pre><code>void init() {
      glClearColor(0.0, 0.0, 0.0, 0.0);
        glEnable(GL_DEPTH_TEST);
  
      }
  
  
  void display(void) {
      glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  
   glPushMatrix();
      glLoadIdentity();
      gluLookAt(ex, ey, ez, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
      glTranslatef(0.0,0.0,tra);
      glScalef(0.65, 0.65, 0.65);
      glColor3f(1.0f, 0.8f, 1.0f);
      glutWireSphere(0.65, 10, 15);
      glPopMatrix();
  
   glPushMatrix();
      glLoadIdentity();
      gluLookAt(ex, ey, ez, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
      glColor3f(0.1f, 0.8f, 1.0f);
      glutWireTorus(0.25, 1.0, 15, 15);
      glPopMatrix();
      glFlush();
  
      glFlush();
      }
  
  void reshape(int w, int h) {
      glViewport(0, 0, (GLsizei)w, (GLsizei)h);
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
  
  
    gluPerspective(70.0, (GLfloat)w / (GLfloat)h, 1.0, 80.0);
    glMatrixMode(GL_MODELVIEW);
    glLoadIdentity();
      }
  </code></pre>