Game Development Reference
In-Depth Information
A PerspectiveCamera instance displays the world from a single point in space,
just like your eyes. This creates a little bit of distortion due to distance (objects
that are farther away appear smaller). There is also an OrthographicCamera class
which is like looking out from a plane. Orthographic cameras are sometimes used
for isometric (also known as 2.5D ) games and level editors to get accurate views of
objects' relative sizes. You can see the difference in the following figure:
Camera projections. Top is perspective and bottom is orthographic.
The PerspectiveCamera object's parameters are field of view (in degrees), which
controls how wide the camera lens is; aspect ratio, the ratio of the canvas' width to
its height; near-plane frustum,the closest an object can be to the camera and still be
seen; and far-plane frustum, the farthest an object can be from the camera and still
be rendered. You'll rarely need to change these values
 
Search WWH ::




Custom Search