Splats · function
readSogSource
The same read, stopping one step short: the linear values, before they are packed for the GPU.
Explained in Gaussian splats.
function readSogSource(files: SogFiles, decode: WebpDecoder): Promise<SplatSource>import { readSogSource } from '@driftengine/splats';Parameters
| Parameter | Type | Description |
|---|---|---|
files | SogFiles | |
decode | WebpDecoder |
In depth
Exported because the packing is lossy and a check has to see what was decoded, not what
survived a half-float. splatSog.test.ts compares sixty-four Gaussians against the .ply they
were encoded from and needs metres and quaternions to do it; a consumer transforming a capture
before it is uploaded wants the same thing, which is why this is public rather than internal.