CubeMapPanorama

A Panorama that displays imagery in cube map format in a scene.

This is only supported in 3D. The cube map panorama is faded out when morphing to 2D or Columbus view. The size of the cube map panorama must not exceed Scene.maximumSkyBoxSize.

const modelMatrix = Matrix4.getMatrix3(
Transforms.localFrameToFixedFrameGenerator("north", "down")(
Cartesian3.fromDegrees(longitude, latitude, height),
Ellipsoid.default
),
new Matrix3()
);

scene.primitives.add(new CubeMapPanorama({
sources : {
positiveX : 'cubemap_px.png',
negativeX : 'cubemap_nx.png',
positiveY : 'cubemap_py.png',
negativeY : 'cubemap_ny.png',
positiveZ : 'cubemap_pz.png',
negativeZ : 'cubemap_nz.png'
}
transform: modelMatrix,
}));

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Initialization options for the CubeMapPanorama constructor

Properties

Link copied to clipboard

Gets the credits of the panorama.

Link copied to clipboard

Determines if the cube map panorama will be shown.

Link copied to clipboard

The sources used to create the cube map faces: an object with positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties. These can be either URLs or Image objects.

Link copied to clipboard

Gets the transform of the panorama.

Functions

Link copied to clipboard
fun destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Link copied to clipboard

Returns true if this object was destroyed; otherwise, false.

Link copied to clipboard
fun update()

Called when Viewer or CesiumWidget render the scene to get the draw commands needed to render this primitive.