Skip to main content

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, and isLoaded()
  • react to onTileLoad, onTileError, and onUpdate

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: a DataSource that satisfies the point-cloud tileset source contract
  • options.debounceTime: debounce interval for selectTiles
  • options.maximumScreenSpaceError: refinement threshold for viewport-driven traversal
  • options.maxDepth: optional traversal depth limit
  • options.onTileLoad: called when tile content becomes available
  • options.onTileError: called when tile content fails to load
  • options.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 .laz URLs, pass core.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.