Constructor
new OGC3DTile(propertiesopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties | Object | <optional> | the properties for this tilesetProperties
|
- Source
Extends
- THREE.Object3D
Methods
_isReady()
Node is ready if it is outside frustum, if it was drawn at least once or if all it's children are ready
- Source
Returns:
true if ready
dispose()
Disposes of all the resources used by the tileset.
- Source
setCanvasSize(width, height)
Call this to specify the canvas width/height when it changes (used to compute tiles geometric error that controls tile refinement). It's unnecessary to call this when the OGC3DTile is instantiated with the renderer.
Parameters:
Name | Type | Description |
---|---|---|
width | Number | |
height | Number |
- Source
setDistanceBias(distanceBias)
Set the Distance Bias for the tileset. the {@param distanceBias} can be a number between 0 and infinity. A {@param distanceBias} is applied as an exponent to camera-to-tile distance. the geometricErrorMultiplier should be used to balance out the amount of detail loaded
Parameters:
Name | Type | Description |
---|---|---|
distanceBias | Number | set the distance bias for the entire tileset |
- Source
setGeometricErrorMultiplier(geometricErrorMultiplier)
Set the Geometric Error Multiplier for the tileset. the {@param geometricErrorMultiplier} can be a number between 1 and infinity. A {@param geometricErrorMultiplier} of 1 (default) corresponds to a max ScreenSpace error (MSE) of 16. A lower {@param geometricErrorMultiplier} loads less detail (higher MSE) and a higher {@param geometricErrorMultiplier} loads more detail (lower MSE)
Parameters:
Name | Type | Description |
---|---|---|
geometricErrorMultiplier | Number | set the LOD multiplier for the entire tileset |
- Source
update(camera) → {Object}
To be called in the render loop.
Parameters:
Name | Type | Description |
---|---|---|
camera | THREE. | a camera that the tileset will be rendered with. |
- Source
Returns:
An object containing describing the current state of the loaded tileset.
- Type:
- Object
updateMatrices()
Manually updates all the matrices of the tileset. To be called after transforming a tileset instantiated with the "static" option
- Source