Skip to main content

WebGL API

NovoRender.CameraProperties

Hierarchy​

  • CameraProperties

    ↳ Camera

Properties​

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.


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.


kind​

• Readonly kind: "pinhole" | "orthographic"

Camera type.


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.


position​

• Readonly position: vec3

Camera position expressed as a world space 3D vector.


rotation​

• Readonly rotation: quat

Camera orientation expressed as a world space 3D quaternion.