Adapter for tiled cubemaps
Name | Type | Description |
---|---|---|
psv |
PSV.Viewer | |
options |
PSV.adapters.CubemapTilesAdapter.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 scale
number 1 optional Returns:
Type Description external:THREE.Mesh -
Destroys the adapter
-
-
Clear a loaded texture from memory
-
Name Type Description textureData
PSV.TextureData -
loadTexture (panorama)Promise.<PSV.TextureData> inherited overrides
Loads the panorama texture(s)
-
Name Type Description panorama
PSV.adapters.CubemapTilesAdapter.Panorama Returns:
Type Description Promise.<PSV.TextureData> -
Applies the overlay to the mesh
-
Name Type Description mesh
external:THREE.Mesh textureData
PSV.TextureData opacity
number -
Applies the base texture and starts the loading of tiles
-
Name Type Default Description mesh
external:THREE.Mesh textureData
PSV.TextureData transition
boolean false optional -
Changes the opacity of the mesh
-
Name Type Description mesh
external:THREE.Mesh opacity
number -
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 flipTopBottom
boolean <optional>
false set to true if the top and bottom faces are not correctly oriented
showErrorTile
boolean <optional>
true shows a warning sign on tiles that cannot be loaded
baseBlur
boolean <optional>
true applies a blur to the low resolution panorama
-
Configuration of a tiled cubemap
-
Properties:
Name Type Argument Description baseUrl
PSV.adapters.CubemapAdapter.Cubemap <optional>
low resolution panorama loaded before tiles
faceSize
int size of a face
nbTiles
int number of tiles on a side of a face
tileUrl
PSV.adapters.CubemapTilesAdapter.TileUrl function to build a tile url
-
Function called to build a tile url
-
Name Type Description face
'left' | 'front' | 'right' | 'back' | 'top' | 'bottom' col
int row
int Returns:
Type Description string