Point-cloud tiles runtime
Traverse large point clouds without loading every point.
PointCloudTileset provides a focused traversal manager for source-backed octree formats such as COPC and Potree. It selects visible tiles, applies a point budget, and exposes loaded data to the renderer.
The point-cloud path
Open a source. Select visible nodes. Render what is ready.
Format-specific sources provide metadata and tile content; `PointCloudTileset` keeps the application-facing traversal lifecycle consistent across octree formats.
Source
A DataSource with point-cloud tile methods
Selection
Viewport-driven octree traversal
Budget
Screen-space error, depth, and point limits
Output
Loaded and selected point-cloud tiles
Detailed guide
Traversal contract
The sections below cover construction, selection, callbacks, options, format limits, and source requirements.
PointCloudTileset is a small point-cloud-specific tileset manager in @loaders.gl/tiles.
See Coordinate Reference Systems for current LAS, COPC, and Potree CRS discovery, preservation, and reprojection limitations.
It is intended for source-backed octree formats such as Potree and COPC and exposes a deliberately small subset of the Tileset3D interaction model:
- construct from a
DataSource - call
selectTiles(viewport)when the view changes - read
tiles,selectedTiles,frameNumber, andisLoaded() - react to
onTileLoad,onTileError, andonUpdate
Usage
import {createDataSource} from '@loaders.gl/core';
import {PointCloudTileset} from '@loaders.gl/tiles-3d/point-cloud';
import {PotreeLoader} from '@loaders.gl/tiles-3d/potree';
const dataSource = await createDataSource(POTREE_URL, PotreeLoader, {
core: {type: 'potree'},
potree: {}
});
const tileset = new PointCloudTileset(dataSource, {
maximumScreenSpaceError: 24,
onTileLoad: (tile) => console.log(tile.id)
});
await tileset.selectTiles(viewport);
const visibleTiles = tileset.selectedTiles;
Constructor
new PointCloudTileset(dataSource, options?)
dataSource: aDataSourcethat satisfies the point-cloud tileset source contractoptions.debounceTime: debounce interval forselectTilesoptions.maximumScreenSpaceError: refinement threshold for viewport-driven traversaloptions.maxDepth: optional traversal depth limitoptions.onTileLoad: called when tile content becomes availableoptions.onTileError: called when tile content fails to loadoptions.onUpdate: called when the selected tile set changes
Notes
- This class is point-cloud-only and octree-only.
- It does not reuse
Tileset3D,Tile3D, 3D Tiles metadata, or I3S-specific traversal logic. - COPC URL auto-detection is intentionally conservative. For ambiguous
.lazURLs, passcore.type: 'copc'.
Dynamic decoded point data
Use PointCloudTileSource to
build an additive octree from a decoded Mesh or Arrow point table. It preserves native
coordinates and attributes, discovers children lazily, and implements this same source contract.