PanoramaCamera

PanoramaCamera

Uses panorama images to navigate through a model (if existing).

Extends

Members

active :boolean

Inherited From:

Camera activity state.

Type:
  • boolean

name :string

Inherited From:

Camera name.

Type:
  • string

pose :ControllableCameraPose

Camera pose. Updates automatically.

Type:

pose :ControllableCameraPose

Camera pose. Updates automatically.

Type:

Methods

(async) activate()

Inherited From:

Activates the camera.

(async) disableHmdMode()

Inherited From:

Switches to regular rendering mode for handheld devices.

(async) enableHmdMode()

Inherited From:

Switches to stereoscopic rendering mode for use in HMDs.

(async) getColorsAtWorldPositions(positions, radiusnullable) → {Array.<ColorRgb>}

Inherited From:

Get average camera colors at given world positions within a radius.

Parameters:
Name Type Attributes Default Description
positions Array.<Vector3d>

a list of 3d world space coordinates.

radius number <nullable>
10

radius in pixels to average colors around a position.

Returns:

list of colors at the positions

Type
Array.<ColorRgb>

(async) getPoseInViewingDirection(distance, projectToFloornullable) → {Vector3d}

Inherited From:

Calculates a point in the 3d space in front of the camera at a specified distance and returns its pose assigning the camera’s orientation.
The distance is measured horizontally starting from the camera position and is not related to the camera orientation (angle).

Parameters:
Name Type Attributes Default Description
distance number

distance from camera

projectToFloor boolean <nullable>
false

if true, projects the resulting point onto the xz plane

Returns:

resulting position

Type
Vector3d