# Loading 3D Tiles

> Learn about the 3D Tiles format and how to load 3D Tiles datasets in Babylon.js using 3DTilesRenderer.

Source: https://doc.babylonjs.com/features/featuresDeepDive/geospatial/loading3dTiles

## What Are 3D Tiles?

[3D Tiles](https://cesium.com/learn/3d-tiling/) is an open standard created by Cesium and adopted by the [Open Geospatial Consortium (OGC)](https://www.ogc.org/standard/3dtiles/) for streaming massive heterogeneous 3D geospatial datasets. It is designed to enable efficient visualization of very large datasets — such as photogrammetry, 3D buildings, terrain, and point clouds — by organizing data into a spatial hierarchy of tiles that are loaded on demand based on the camera's position and level of detail.

## Loading 3D Tiles in Babylon.js

The recommended solution for loading 3D Tiles in Babylon.js is the [3DTilesRendererJS](https://github.com/NASA-AMMOS/3DTilesRendererJS) library from NASA/AMMOS, which has recently added Babylon.js support. This library provides a full 3D Tiles renderer that handles tile set traversal, level-of-detail selection, and tile loading.

**Note:** The Babylon.js implementation of 3DTilesRendererJS has some known limitations in supporting the full 3D Tiles spec. For details on current support and restrictions, see the [Babylon.js README](https://github.com/NASA-AMMOS/3DTilesRendererJS/blob/master/src/babylonjs/renderer/README.md) in the 3DTilesRendererJS repository.

**Playground limitation:** 3DTilesRendererJS cannot be used in the [Babylon.js Playground](https://doc.babylonjs.com/playground). The Playground loads Babylon.js as a pre-bundled global (UMD) script, while the 3DTilesRendererJS npm package imports Babylon.js as ES6 module dependencies (e.g. `import { Scene } from "@babylonjs/core"`). This creates a conflict — the renderer instantiates its own copy of Babylon classes from the npm package rather than using the Playground's pre-loaded instance, causing type mismatches and runtime errors. To use 3DTilesRendererJS, set up a local project with a bundler (e.g. Webpack, Vite) where both Babylon.js and 3DTilesRendererJS are resolved from the same ES6 module installation.

### Getting Started

Install 3DTilesRendererJS alongside Babylon.js in your project:

```bash
npm install 3d-tiles-renderer @babylonjs/core
```

Key requirements when setting up your scene:

- **Right-handed coordinate system** — `scene.useRightHandedSystem = true` is required.
- **Large-world rendering** — For globe-scale datasets (e.g. Google Photorealistic 3D Tiles), enable `useLargeWorldRendering` in the engine options to avoid floating-point precision issues.
- **GeospatialCamera** — For globe-style navigation, use the [GeospatialCamera](https://doc.babylonjs.com/features/featuresDeepDive/geospatial/geospatialCamera) instead of `ArcRotateCamera`.
- **Frame updates** — Call `tiles.update()` each frame via `scene.onBeforeRenderObservable`.

For a minimal code example, see the [Usage section](https://github.com/NASA-AMMOS/3DTilesRendererJS/blob/master/src/babylonjs/renderer/README.md#use) of the 3DTilesRendererJS Babylon.js README.

### Examples

- **[Google Map Tiles with GeospatialCamera](https://demos.babylonjs.com/3d-tiles)** — Loads Google Map 3D Tiles and uses the `GeospatialCamera` for globe-style navigation.
  - [GitHub code powering the above demo](https://github.com/BabylonJS/Demos/blob/main/3d-tiles/src/index.ts)

![3D Tiles Loader using NASA/AMMOS 3DTilesRenderer/babylonjs](https://doc.babylonjs.com/img/playgroundsAndNMEs/3dTiles.webp)

- **[Simple 3D Tiles with ArcRotateCamera](https://nasa-ammos.github.io/3DTilesRendererJS/babylonjs/index.html)** — Loads a freely available 3D Tiles dataset and uses an `ArcRotateCamera` to orbit and navigate around the model. No API token required.
  - [GitHub code powering the above demo](https://github.com/NASA-AMMOS/3DTilesRendererJS/blob/c1ddd97479dab3e28b76ece4779c0808d7f28dad/example/babylonjs/index.js)

## Further reading

- [OGC 3D Tiles Specification](https://www.ogc.org/standard/3dtiles/)
- [Cesium 3D Tiles Documentation](https://cesium.com/learn/3d-tiling/)
- [3DTilesRenderer (NASA/AMMOS)](https://github.com/NASA-AMMOS/3DTilesRendererJS)
