@playcanvas/splat-transform
Version:
Library and CLI tool for 3D Gaussian splat format conversion and transformation
22 lines (21 loc) • 979 B
TypeScript
import { DataTable } from '../data-table';
import { ReadFileSystem } from '../io/read';
import { Options } from '../types';
/**
* Reads an XGrids LCC format containing multi-LOD Gaussian splat data.
*
* The LCC format uses a quadtree spatial structure with multiple LOD levels.
* Each LOD level is stored separately in data.bin with optional spherical
* harmonics in shcoef.bin. Environment splats are stored in environment.bin.
*
* All selected LODs are decoded directly into a single pre-allocated DataTable
* to avoid a costly post-read combine step.
*
* @param fileSystem - File system for reading the LCC files.
* @param filename - Path to the meta.lcc file.
* @param options - Options including LOD selection via `lodSelect`.
* @returns Promise resolving to an array of DataTables (combined LODs + environment).
* @ignore
*/
declare const readLcc: (fileSystem: ReadFileSystem, filename: string, options: Options) => Promise<DataTable[]>;
export { readLcc };