Skip to main content

WebGL API

NovoRender.Internal.CameraExt

Camera Object.

Hierarchy​

Properties​

controller​

• controller: CameraController

Get or set the motion controller assigned to this camera. By default, this will be a static controller, whose only function is to provide a reasonable default view for a given scene.

Inherited from​

Camera.controller


far​

• far: number

Distance to the view frustum far clipping plane.

Remarks

The value must be larger than near and and large enough to include the desired maximum viewing distance, which typically is some multiple of the scene size. Camera controllers will automatically adjust this value whenever a new scene is assigned to their view, so setting it manually is generally not required. See https://en.wikipedia.org/wiki/Viewing_frustum for more details.

Inherited from​

Camera.far


fieldOfView​

• fieldOfView: number

Field of view expressed as the vertical viewing angle in degrees for pinhole cameras, or vertical aperature dimension in meters for orthographic cameras.

Inherited from​

Camera.fieldOfView


generation​

• Readonly generation: number


hasChanged​

• Readonly hasChanged: boolean


kind​

• Readonly kind: "pinhole" | "orthographic"

Camera type.

Inherited from​

Camera.kind


near​

• near: number

Distance to the view frustum near clipping plane.

Remarks

The value must be larger than 0 and preferably as large as possible without creating undesired clipping effects near the camera. Camera controllers will automatically adjust this value whenever a new scene is assigned to their view, so setting it manually is generally not required. See https://en.wikipedia.org/wiki/Viewing_frustum for more details.

Inherited from​

Camera.near


position​

• Readonly position: vec3

Camera position expressed as a world space 3D vector.

Inherited from​

Camera.position


rotation​

• Readonly rotation: quat

Camera orientation expressed as a world space 3D quaternion.

Inherited from​

Camera.rotation


view​

• Readonly view: View

The view to which this camera belongs.

Inherited from​

Camera.view

Methods​

getDistanceFromViewPlane​

â–¸ getDistanceFromViewPlane(point): number

Parameters​

NameType
pointReadonlyVec3

Returns​

number

Inherited from​

Camera.getDistanceFromViewPlane

â–¸ getDistanceFromViewPlane(point): number

Compute the distance of point from camera view plane.

Parameters​

NameType
pointReadonlyVec3

Returns​

number

Inherited from​

Camera.getDistanceFromViewPlane