WebGL API
NovoRender.Camera
Camera Object.
Hierarchy​
↳
Camera
↳↳
CameraExt
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.
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​
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​
kind​
• Readonly
kind: "pinhole"
| "orthographic"
Camera type.
Inherited from​
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​
position​
• Readonly
position: vec3
Camera position expressed as a world space 3D vector.
Inherited from​
rotation​
• Readonly
rotation: quat
Camera orientation expressed as a world space 3D quaternion.
Inherited from​
view​
• Readonly
view: View
The view to which this camera belongs.
Methods​
getDistanceFromViewPlane​
â–¸ getDistanceFromViewPlane(point
): number
Parameters​
Name | Type |
---|---|
point | ReadonlyVec3 |
Returns​
number
â–¸ getDistanceFromViewPlane(point
): number
Compute the distance of point from camera view plane.
Parameters​
Name | Type |
---|---|
point | ReadonlyVec3 |
Returns​
number