title: OpenGL Sphere deforms when setting center coordinate to high values
body: <p>So I am drawing a sphere not using the "subdividing icosahedron" approach but using triangle strips and parameteric equation of the sphere.</p>
  
  <p>Here is my code</p>
  
  <pre><code>glBegin(GL_TRIANGLE_SRIP);
  for(float i = -PI/2; i &lt; PI/2; i+= 0.01f)
  {
      temp = i+0.01f;
      for(float j = 0; j &lt; 2*PI; j+=0.01f)
      {
          temp -= 0.01f;
          glVertex3f( cx + rad * cos(j) * cos(temp), cy + rad * cos(temp) * sin(j), cz + rad * sin(temp));
  
          temp += 0.01f;
          glVertex3f( cx + rad * cos(j) * cos(temp), cy + rad * cos(temp) * sin(j), cz + rad * sin(temp));
      }
  }
  glEnd();
  </code></pre>
  
  <p>The approach is as followes. Imagine a Circle in the XY plane. This is drawn using the inner loop. Now imagine the XY plane moved above or below in the Z-axis and the radius changed cause it's a sphere. This is done using the outer loop. 
  The first triangle coordinate is given for the Circle when XY plane is at its initial position. After <code>temp+=0.01f</code> the plane moved up by 0.01 and the second triangle vertex coordinate is given. This is how the strip is calculated.</p>
  
  <p>The problem is if <code>cx = cy = cz = 0</code> or any low value like 2 or 3 the sphere seems fine. However if I put for e.g <code>cx = 15, cy = 15, cz = -6</code> the sphere gets deformed. Here is the picture.</p>
  
  <p><a href="https://i.stack.imgur.com/6V2hc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6V2hc.png" alt="Sphere deformation"></a></p>
  
  <p>If i use <code>GL_POINTS</code> this is what im getting</p>
  
  <p><a href="https://i.stack.imgur.com/6YHzs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6YHzs.png" alt="enter image description here"></a></p>