voxelkloudBack to the project

DOCS / PACKAGE GUIDE

@voxelkloud/format-potree
Potree v2 driver

This driver reads the Potree v2 directory layout exactly as it is and produces the source/tree objects the rest of the stack already understands.

npm install @voxelkloud/format-potreesource

Open a Potree directory

If you already serve a Potree v2 directory, this is the driver that turns its metadata and hierarchy into the neutral tree contract.

import { loadPointCloudSource, loadHierarchy } from '@voxelkloud/format-potree'

const source = await loadPointCloudSource('/pointclouds/autzen/')
const tree = await loadHierarchy(source)

Brotli stays opt-in

Brotli-decompressed clouds need a decoder, but the decoder should only land in bundles that actually need it.

import { brotliDecompress } from '@voxelkloud/loader/brotli'
import { createPointCloudView } from '@voxelkloud/view'

createPointCloudView({ canvas, decompress: brotliDecompress })