Skip to content

Latest commit

 

History

History
137 lines (81 loc) · 2.28 KB

File metadata and controls

137 lines (81 loc) · 2.28 KB

3d-tiles-renderer/babylonjs

B3DMLoader

extends B3DMLoaderBase

Babylon.js loader for B3DM (Batched 3D Model) tile content. Parses the B3DM binary structure and delegates embedded GLB loading to GLTFLoader.

.scene

scene: Scene

The Babylon.js scene assets are loaded into.

.adjustmentTransform

adjustmentTransform: Matrix

Transform applied after loading to correct coordinate system orientation.

.constructor

constructor( scene: Scene )

.parse

async parse( buffer: ArrayBuffer, uri: string ): Promise<Object>

GLTFLoader

extends LoaderBase

Babylon.js loader for GLTF and GLB tile content. Loads a buffer into a Babylon.js scene and applies an optional adjustment transform for coordinate-system correction.

.scene

scene: Scene

The Babylon.js scene assets are loaded into.

.adjustmentTransform

adjustmentTransform: Matrix

Transform applied after loading to correct coordinate system orientation.

.constructor

constructor( scene: Scene )

.parse

async parse(
	buffer: ArrayBuffer,
	uri: string,
	extension: string
): Promise<{scene: TransformNode, container: AssetContainer, metadata: (Object|null)}>

TilesRenderer

extends TilesRendererBase

Babylon.js implementation of the 3D Tiles renderer. Manages tile loading, caching, traversal, and scene management using the Babylon.js scene graph and camera APIs. Dispatches all events defined by TilesRendererBase via Babylon.js Observables.

Warning

Left-handed coordinate systems are not currently supported.

.scene

scene: Scene

The Babylon.js scene tiles are rendered into.

.group

group: TransformNode

Root node that all loaded tile scenes are parented to.

.checkCollisions

checkCollisions: boolean

Whether to enable collision checking on loaded tile meshes.

.constructor

constructor( url: string, scene: Scene )

.dispose

dispose(): void

Disposes the renderer, releasing all loaded tile content and the root transform node.