three-loader-3dtiles.runtime.md 3.7 KB

Home > three-loader-3dtiles > Runtime

Runtime interface

Runtime methods that can be used once a tileset is loaded

Signature:

interface Runtime 

Methods

Method Description
dispose() Dispose of all of the tileset's assets in memory.
getCameraFrustum(Camera) Get the current camera frustum as mesh planes (for debugging purposes).
getLatLongHeightFromPosition(Vector3) When viewing a Geo-located tileset, get the GeoCoord value from a world-space Vector3.
getPositionFromLatLongHeight(GeoCoord) When viewing a Geo-located tileset, world-space Vector3 from a GeoCoord.
getStats() Get a reference to the probe.gl Stats object.
getTileBoxes() Get the tile bounding boxes group when debug: true is set.
getTileset() Get a reference to the loaders.gl Tileset3D object.
setDebug(boolean) Enable or disable deubg mode.
setElevationRange(range) In point clouds when coloring by PointCloudColoring.Elevation, set the min/max elevation values - Default: [0, 400].
setHideGround(boolean) In point clouds wher the points are classified as Ground, hide the ground level points - Default: false.
setIntensityContrast(number) In point clouds when coloring by PointCloudColoring.Intensity, set the contrast factor. Default: 1.0.
setMaxIntensity(number) In point clouds when coloring by PointCloudColoring.Intensity, set the max intensity value - Default: 1.0
setPointAlpha(number) In point clouds when, set the alpha value. Default: 1.0.
setPointCloudColoring(PointCloudColoring) In point clouds set the type of coloring used. See PointCloudColoring
setShading(Shading) Set the current shading mode for b3dm tiles. See Shading.
setViewDistanceScale(number) Set the current view distance scale. See LoaderOptions
setWireframe(boolean) Enable or disable wireframe mode.
showTiles(boolean) Show or hide the tile bounding boxes.
update(number, WebGLRenderer, Camera) Update the tileset for rendering.