@playcanvas/splat-transform
Version:
Library and CLI tool for 3D Gaussian splat format conversion and transformation
20 lines (19 loc) • 804 B
TypeScript
import { DataTable } from '../data-table';
import { type ReadFileSystem } from '../io/read';
/**
* Read a SOG file from a ReadFileSystem.
*
* The current (V2) format is decoded inline. Legacy V1 files (no `version`
* field, per-channel mins/maxs instead of codebooks) are detected here and
* forwarded to {@link readSogV1} in read-sog-v1.ts.
*
* @param fileSystem - The file system to read from
* @param filename - Path to meta.json (relative paths resolved from its directory).
* The basename is used verbatim for the initial meta fetch so
* any URL querystring/fragment (e.g. presigned `?token=...`)
* is preserved.
* @returns DataTable with Gaussian splat data
* @ignore
*/
declare const readSog: (fileSystem: ReadFileSystem, filename: string) => Promise<DataTable>;
export { readSog };