3 ms·
If you're wondering why the 3d cube doesn't quite look 3d, it's because the perspective transform hasn't been applied. Imagine taking a camera's view frustum (
by daenz 7y ago
If you're wondering why the 3d cube doesn't quite look 3d, it's because the perspective transform hasn't been applied. Imagine taking a camera's view frustum (the rectangular "cone" from a camera's POV) and then re-forming the frustum and to be a unit square, while non-linearly squishing all of the geometry inside of the frustum as it turns into that square. The result would be that vertices of geometry further away from the camera would shrink towards the camera's vanishing point. Rendering this result would make geometry appear to be in perspective.
- romwell 7y agoAlso if you are wondering why the UI feels so horrible, it is because it is horrible. In particular, it does not feel as if you were spinning a globe with your finger, because you need better math to do that: quaternions. Play with this[1] and just feel how much better it is. I tried to make the source understandable, but there are many, many, many other implementation of the Arcball interface out there. Find an explanation and code that you like and roll with that. [1]http://romankogan.net/math/arcball_js/index.html http://romankogan.net/math/arcball_js/index.html