Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

splat-transform

> 开发工具
Open source

CLI tool and library for 3D Gaussian splat processing and conversion

1.3K stars0 likes0 views
WebsiteGitHub

About

CLI tool and library for 3D Gaussian splat processing and conversion

SplatTransform - 3D Gaussian Splat Converter

| User Guide | API Reference | Blog | Forum |

SplatTransform is an open source library and CLI tool for converting and editing Gaussian splats. It can:

Read PLY, Compressed PLY, SOG, Streamed SOG, SPZ, SPLAT, KSPLAT, LCC and LCC2 formats
Write PLY, Compressed PLY, SOG, Streamed SOG, SPZ, GLB, CSV, HTML Viewer, LOD, Voxel and WebP image formats
Generate statistical summaries for data analysis
Merge multiple splats
Apply transformations to input splats
️ Filter out Gaussians or spherical harmonic bands
Reorder splats for improved spatial locality
⚙️ Procedurally generate splats using JavaScript generators

The library is platform-agnostic and can be used in both Node.js and browser environments.

Installation

Install or update to the latest version:

bash
npm install -g @playcanvas/splat-transform

For library usage, install as a dependency:

bash
npm install @playcanvas/splat-transform

For running on a backend with Docker (including GPU/Vulkan setup), see the Docker Backend guide.

[!TIP] For one-off conversions without installing anything, try SuperSplat Convert — a browser-based frontend to splat-transform. See the Convert page docs for details.

Guides

  • Generating Streamed SOG — build a multi-LOD Streamed SOG from a single PLY.
  • LOD Streaming — load and render Streamed SOG output in a PlayCanvas app.
  • Collision Mesh Generation — generate voxel/collision data from a splat scene.
  • Docker Backend — run splat-transform on a backend (incl. GPU/Vulkan setup).
  • Library Usage — drive splat-transform programmatically from Node.js or the browser.

Format Specifications

Format Description
PLY Industry-standard uncompressed format for source, editing and interchange
SOG Super-compressed format for web delivery (meta.json + WebP textures, bundled or unbundled)
Streamed SOG Multi-LOD chunked SOG for streaming very large scenes (lod-meta.json)
Voxel Sparse voxel octree for collision detection (.voxel.json / .voxel.bin)

CLI Usage

bash
splat-transform [GLOBAL] input [ACTIONS]  ...  output [ACTIONS]

Key points:

  • Input files become the working set; ACTIONS are applied in order
  • The last file is the output; actions after it modify the final result
  • Use null as output to discard file output

Supported Formats

Format Input Output Description
.ply ✅ ✅ Standard PLY format
.sog ✅ ✅ Bundled super-compressed format (recommended)
meta.json ✅ ✅ Unbundled super-compressed format (accompanied by .webp textures)
lod-meta.json ✅ ✅ Streamed LOD data stored in SOG chunks
.compressed.ply ✅ ✅ Compressed PLY format (auto-detected and decompressed on read)
.spz ✅ ✅ Compressed splat format (Niantic format, v2–4)
.lcc ✅ ❌ LCC file format (XGRIDS)
.lcc2 ✅ ❌ LCC2 file format (XGRIDS, octree)
.ksplat ✅ ❌ Compressed splat format (mkkellogg format)
.splat ✅ ❌ Compressed splat format (antimatter15 format)
.mjs ✅ ❌ Generate a scene using an mjs script (Beta)
.glb ❌ ✅ Binary glTF with KHR_gaussian_splatting extension
.csv ❌ ✅ Comma-separated values spreadsheet
.html ❌ ✅ HTML viewer app (single-page or unbundled) based on SOG
.voxel.json ❌ ✅ Sparse voxel octree for collision detection
.webp ❌ ✅ Lossless WebP image rendered from a camera view via GPU rasterizer
null ❌ ✅ Discard output (useful with --stats for analysis-only runs)

Antialiased and 2DGS scenes

Scenes trained with antialiasing or as 2DGS are tagged, and the tag is preserved where the output format can hold it. --info reports it as model.

On read: a PLY header comment — Brush's comment SplatRenderMode: default | mip | 2dgs or Postshot's comment antialiased 0 | 1 (last one wins); SPZ's antialiased header bit; a SOG meta.json "model" entry. A PLY with scale_0/scale_1 but no scale_2 is read as 2DGS regardless of comments, and the missing column is materialized as a zero-thickness scale so the rest of the pipeline is unaffected.

On write: .ply and .compressed.ply carry comment SplatRenderMode: mip | 2dgs (Brush's spelling, whichever form was read); .sog and meta.json carry "model": "antialiased" | "2dgs"; .spz sets its antialiased bit, and warns that it cannot represent 2DGS. A 2DGS PLY output drops the scale_2 column again. Other output formats have nowhere to record it and drop the tag silently. Combining inputs whose models disagree warns and writes the result untagged.

Actions

Actions execute in the order specified and can be repeated. Any action may appear after any input or output file:

…

CLI Options

These options configure a run as a whole rather than operating on splat data — most groups apply only when reading or writing a specific format.

General Options

none
-h, --help                              Show this help and exit
-v, --version                           Show version and exit
-q, --quiet                             Suppress non-error output
    --verbose                           Show debug-level diagnostics
    --memory                            Show peak memory in progress output
    --tty                               Interactive bar rendering (default on a TTY; --no-tty to disable)
-w, --overwrite                         Overwrite output file if it exists

GPU Options

Used by SOG compression and GPU voxelization (--filter-cluster, --filter-floaters, .voxel.json output).

none
    --list-gpus                         List available GPU adapters and exit
-g, --gpu                        Device for GPU operations: GPU adapter index | 'cpu'
                                          ('cpu' disables GPU and is incompatible with
                                          GPU-only features like --filter-cluster)

SOG Compression Options

Apply when writing .sog, meta.json, lod-meta.json, or .html outputs.

none
-i, --sh-iterations                  Iterations for SH compression (more=better). Default: 10
    --max-workers                    Worker threads for SOG encoding (0 = inline/serial). Default: 4

SPZ Output Options

Apply when writing .spz outputs.

none
    --spz-version                  The SPZ format version to write. Default: 4

HTML Viewer Output Options

Apply when writing .html outputs.

none
    --viewer-settings    HTML viewer settings JSON file
    --unbundled                         Generate unbundled HTML viewer with separate files

[!NOTE] See the SuperSplat Viewer Settings Schema for details on how to pass data to the --viewer-settings option.

LOD Input Options

Apply when reading lod-meta.json, .lcc, and .lcc2 files.

none
-L, --select-lod               Comma-separated LOD levels to read from streamed SOG / LCC / LCC2 input

LOD Output Options

Apply when writing lod-meta.json (multi-LOD streaming SOG bundle).

none
    --lod-chunk-count                Approximate number of Gaussians per LOD chunk in K. Default: 512
    --lod-chunk-extent               Approximate size of an LOD chunk in world units (m). Default: 16
    --lod-chunk-min                  Gaussians in K below which a chunk is not split for extent. Default: 8
    --lod-errors                        Render per-chunk LOD error tables (needs a GPU). Default: off

A chunk is split when it holds more than --lod-chunk-count Gaussians, or when it is wider than --lod-chunk-extent and holds more than --lod-chunk-min. The minimum keeps sparse regions such as sky or distant background from being cut into thousands of near-empty chunks: below it a region stays one chunk however wide it is. Dense regions are unaffected.

See Generating Streamed SOG for an end-to-end walkthrough.

Voxel Output Options

Apply when writing .voxel.json (sparse voxel octree for collision detection). See the Collision Mesh guide for a deep dive on each step and tuning.

…

Image Output Options

Apply when writing .webp (lossless WebP rendered via GPU rasterizer).

…

Examples

Basic Operations

…

Transformations

bash
# Scale and translate
splat-transform bunny.ply -s 0.5 -t 0,0,10 bunny_scaled.ply

# Rotate by 90 degrees around Y axis
splat-transform input.ply -r 0,90,0 output.ply

# Chain multiple transformations
splat-transform input.ply -s 2 -t 1,0,0 -r 0,0,45 output.ply

Filtering

bash
# Remove entries containing NaN and Inf
splat-transform input.ply --filter-nan output.ply

# Filter by opacity values (keep only splats with opacity > 0.5)
splat-transform input.ply -V opacity,gt,0.5 output.ply

# Strip spherical harmonic bands higher than 2
splat-transform input.ply --filter-harmonics 2 output.ply

# Simplify to 50000 splats via progressive pairwise merging
splat-transform input.ply --decimate 50000 output.ply

# Simplify to 25% of original splat count
splat-transform input.ply -d 25% output.ply

Advanced Usage

bash
# Combine multiple files with different transforms
splat-transform -w cloudA.ply -r 0,90,0 cloudB.ply -s 2 merged.compressed.ply

# Apply final transformations to combined result
splat-transform input1.ply input2.ply output.ply -t 0,0,10 -s 0.5

Statistics

Generate per-column statistics for data analysis or test validation:

bash
# Print stats, then write output
splat-transform input.ply --stats output.ply

# Print stats without writing a file (discard output)
splat-transform input.ply --stats null

# Print stats as JSON for scripting
splat-transform input.ply --stats json null

# Print stats before and after a transform
splat-transform input.ply --stats -s 0.5 --stats output.ply

The output starts with the file info block (including the gaussian verdict — false for a readable container that isn't splat data, such as a plain point-cloud PLY), followed by min, max, median, mean, stdDev, nanCount, infCount and a histogram for each column, one table per LOD. Each LOD also reports a fillRatio — total splat footprint area over the scene's robust (p1–p99) cross-section, approximately the average overdraw layer count: healthy scenes score in the ones-to-hundreds, while degenerate or adversarial scenes that would overwhelm a GPU with fill score orders of magnitude higher, making the value s

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript3d-gaussian-splatting3dgscligaussian-splatting

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具