title: 3D Perspective Projection doesn't look right
body: <p>I have been using the 3D perspective projection formula:</p>
  
  <pre><code>sx = wx*scale/wz
  sy = wy*scale/wz
  </code></pre>
  
  <p>It projects things sort-of alright, but for example a cube looks more like a rectangular prism and is really stretched out.</p>
  
  <p>It looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/mQKQS.png" alt="enter image description here"></p>
  
  <p>I have done research on it and looked at the other pages on it on stackoverflow, but I don't really understand why it is stretching it out.</p>
  
  <p>I've also tried other alternatives like dividing the z-value by 2 or 4, or some arbitrary value to make it look more cube-ish but for more complex objects it doesn't really do the trick.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks.</p>