Adapter for tiled panoramas
| Name | Type | Description |
|---|---|---|
psv |
PSV.Viewer | |
options |
PSV.adapters.EquirectangularTilesAdapter.Options |
Extends
Members
-
Unique identifier of the adapter
-
-
-
psv PSV.Viewer readonly inherited overrides
Reference to main controller
-
-
Indicates if the adapter supports panorama download natively
-
-
Indicated if the adapter can display an additional transparent image above the panorama
-
Methods
-
createMesh (scale)external:THREE.Mesh inherited overrides
Creates the cube mesh
-
Name Type Default Description scalenumber 1 optional Returns:
Type Description external:THREE.Mesh -
Destroys the adapter
-
-
Clear a loaded texture from memory
-
Name Type Description textureDataPSV.TextureData -
loadTexture (panorama)Promise.<PSV.TextureData> inherited overrides
Loads the panorama texture(s)
-
Name Type Description panoramaPSV.adapters.EquirectangularTilesAdapter.Panorama Returns:
Type Description Promise.<PSV.TextureData> -
Applies the overlay to the mesh
-
Name Type Description meshexternal:THREE.Mesh textureDataPSV.TextureData opacitynumber -
Applies the base texture and starts the loading of tiles
-
Name Type Default Description meshexternal:THREE.Mesh textureDataPSV.TextureData transitionboolean false optional -
Changes the opacity of the mesh
-
Name Type Description meshexternal:THREE.Mesh opacitynumber -
Indicates if the adapter supports preload of a panorama
-
Name Type Description panorama* Returns:
Type Description boolean -
Indicates if the adapter supports transitions between panoramas
-
Name Type Description panorama* Returns:
Type Description boolean
Type Definitions
-
Properties:
Name Type Argument Default Description resolutionnumber <optional>
64 number of faces of the sphere geometry, higher values may decrease performances
showErrorTileboolean <optional>
true shows a warning sign on tiles that cannot be loaded
baseBlurboolean <optional>
true applies a blur to the low resolution panorama
-
Configuration of a tiled panorama
-
Properties:
Name Type Argument Description baseUrlstring <optional>
low resolution panorama loaded before tiles
basePanoDataPSV.PanoData | PSV.PanoDataProvider <optional>
panoData configuration associated to low resolution panorama loaded before tiles
widthint complete panorama width (height is always width/2)
colsint number of vertical tiles
rowsint number of horizontal tiles
tileUrlPSV.adapters.EquirectangularTilesAdapter.TileUrl function to build a tile url
-
Function called to build a tile url
-
Name Type Description colint rowint Returns:
Type Description string