[page:Camera] →

[name]

A general perpose camera, for setting FOV, Lens Focal Length, and switching between perspective and orthographic views easily. Use this only if you do not wish to manage both a Orthographic and Perspective Camera

Constructor

[name]([page:Number width], [page:Number height], [page:Number fov], [page:Number near], [page:Number far], [page:Number orthoNear], [page:Number orthoFar])

width -- Camera frustum width.
height -- Camera frustum height.
fov — Camera frustum vertical field of view in perspective view.
near — Camera frustum near plane in perspective view.
far — Camera frustum far plane in perspective view.
orthoNear — Camera frustum near plane in orthographic view.
orthoFar — Camera frustum far plane in orthographic view.
Creates a [name]. This initializes 2 cameras, an OrthographicCamera and a PerspectiveCamera. The default is the perspective Camera.

Properties

[property:Number fov]

Gets or sets the camera frustum vertical field of view in perspective view.

[property:number left]

Gets or sets the camera frustum left plane in orthographic view.

[property:Number right]

Gets or sets the camera frustum right plane in orthographic view.

[property:number top]

Gets or sets the camera frustum top plane in orthographic view.

[property:Number bottom]

Gets or sets the camera frustum bottom plane in orthographic view.

[property:number zoom]

Gets or sets the zoom factor of the camera.

[property:number far]

Gets camera frustum far plane.

[property:number near]

Gets camera frustum near plane.

[property:OrthographicCamera cameraO]

Gets or sets the internal OrthographicCamera used as camera.

[property:PerspectiveCamera cameraP]

Gets or sets the internal PerspectiveCamera used as camera.

[property:boolean inOrthographicMode]

Gets whether the combinedCamera is in Orthographic Mode.

[property:boolean inPerspectiveMode]

Gets whether the combinedCamera is in Perspective Mode.

Methods

[method:todo setFov]([page:Number fov])

fov -- Camera frustum vertical field of view in perspective view.
sets the camera frustum vertical field of view in perspective view.

[method:todo setZoom]([page:Number zoom])

zoom -- The zoom factor.
Sets the zoomfactor.

[method:todo setLens]([page:number focalLength], [page:Number frameHeight])

focalLength -- The focal length of a lens is defined as the distance from the optical center of a lens (or, the secondary principal point for a complex lens like a camera lens) to the focal point (sensor) when the lens is focused on an object at infinity.
frameHeight -- the size of the frame in mm. (default is *35*)
Sets the fov based on lens data.

[method:todo toFrontView]()

Sets the camera to view the front of the target.

[method:todo toBackView]()

Sets the camera to view the back of the target.

[method:todo toLeftView]()

Sets the camera to view the left of the target.

[method:todo toRightView]()

Sets the camera to view the right of the target.

[method:todo toTopView]()

Sets the camera to view the top.

[method:todo toBottomView]()

Sets the camera to view the bottom.

[method:todo setSize]([page:Number width], [page:Number height])

width -- The width of the orthographic view.
height -- The height of the orthographic view.
Sets the size of the orthographic view.

[method:todo toOrthographic]()

Change the camera to orthographic view.

[method:todo toPerspective]()

Change the camera to Perspective view.

[method:todo updateProjectionMatrix]()

Updates the ProjectionMatrix.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]