Object3DCamera

OrthographicCamera

Camera with orthographic projection.

Example

camera / orthographic
camera / orthographic2
camera
interactive / cubes / ortho
materials / cubemap / dynamic
postprocessing / advanced
postprocessing / dof2
postprocessing / godrays
rtt
shaders / tonemapping
shadowmap
terrain / dynamic
var camera = new THREE.OrthographicCamera( width / - 2, width / 2, height / 2, height / - 2, 1, 1000 ); scene.add( camera );

Constructor

OrthographicCamera( left, right, top, bottom, near, far )

left — Camera frustum left plane.
right — Camera frustum right plane.
top — Camera frustum top plane.
bottom — Camera frustum bottom plane.
near — Camera frustum near plane.
far — Camera frustum far plane.

Properties

.zoom

Gets or sets the zoom factor of the camera.

.left

Camera frustum left plane.

.right

Camera frustum right plane.

.top

Camera frustum top plane.

.bottom

Camera frustum bottom plane.

.near

Camera frustum near plane.

.far

Camera frustum far plane.

Methods

.setViewOffset ( fullWidth, fullHeight, x, y, width, height )

fullWidth — full width of multiview setup
fullHeight — full height of multiview setup
x — horizontal offset of subcamera
y — vertical offset of subcamera
width — width of subcamera
height — height of subcamera
Sets an offset in a larger frustum. This is useful for multi-window or multi-monitor/multi-machine setups. For an example on how to use it see PerspectiveCamera.

.clearViewOffset ()

Removes any offset set by the .setViewOffset method.

.updateProjectionMatrix ()

Updates the camera projection matrix. Must be called after change of parameters.

.clone ()


It returns a clone of OrthographicCamera.

.toJSON ()

Return camera data in JSON format.

Source

src/cameras/OrthographicCamera.js
Edit