Writes Gaussian splat data to a file in the specified format.
Supports multiple output formats including PLY, compressed PLY, CSV, SOG, LOD, and HTML.
Options specifying the data and format to write.
File system abstraction for writing files.
import { writeFile, getOutputFormat, MemoryFileSystem } from '@playcanvas/splat-transform';const fs = new MemoryFileSystem();await writeFile({ filename: 'output.sog', outputFormat: getOutputFormat('output.sog', {}), dataTable: myDataTable, options: { iterations: 8 }}, fs); Copy
import { writeFile, getOutputFormat, MemoryFileSystem } from '@playcanvas/splat-transform';const fs = new MemoryFileSystem();await writeFile({ filename: 'output.sog', outputFormat: getOutputFormat('output.sog', {}), dataTable: myDataTable, options: { iterations: 8 }}, fs);
Writes Gaussian splat data to a file in the specified format.
Supports multiple output formats including PLY, compressed PLY, CSV, SOG, LOD, and HTML.