extendsTilesRendererBase
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.
import { TilesRenderer } from '3d-tiles-renderer/babylonjs';
// engine, scene and camera are initialized here
const URL = 'https://raw.githubusercontent.com/NASA-AMMOS/3DTilesSampleData/master/msl-dingo-gap/0528_0260184_to_s64o256_colorize/0528_0260184_to_s64o256_colorize/0528_0260184_to_s64o256_colorize_tileset.json';
const tiles = new TilesRenderer( URL, scene );
tiles.group.rotation.x = Math.PI / 2;
scene.onBeforeRenderObservable.add( () => tiles.update() );Properties
scene: Scene
The Babylon.js scene tiles are rendered into.
group: TransformNode
Root node that all loaded tile scenes are parented to.
checkCollisions: boolean
Whether to enable collision checking on loaded tile meshes.
Methods
new TilesRenderer(
// URL of the root tileset JSON.
url: string,
// The Babylon.js scene to render tiles into.
scene: Scene
)dispose(): voidDisposes the renderer, releasing all loaded tile content and the root transform node.
Inherited
From TilesRendererBase
- Properties
- Methods