In this project we can understand the differences between the two major types of cameras used in Computer Graphics projects - Perspective and Orthographic. Try the example below rotating the camera and changing between the two types of projection to view the differences in the result output.
Open in a new tabIn short, Perspective cameras are mainly used in CG projects when you want to create scenes with realism. So, in almost every project of this site we use this kind of camera. Orthographic cameras are used when we want to preserve the distance between lines and angles, not considering the depth of the scene. This camera can be used in modelling softwares (like the 3DS max interface of Figure 1, for example) together with at least one perspective view.
The parameters of Orthographic cameras are positions of the left, right, top, bottom, near and far planes (Figure 2). You can see it as cube in which all the objects to be viewed are put inside.
camera = new THREE.OrthographicCamera( left, right, top, bottom, near, far);
The Perspective camera has fewer arguments. Basically you must inform the camera frustum vertical field of view (an angle in degrees), the aspect ratio (you can put width/height of the window), near plane (can't be zero) and far plane.
camera = new THREE.PerspectiveCamera(fov, aspect, near, far);