这是一个跨平台的命令行工具,用于转换 3DGS (3D Gaussian Splatting) 文件,支持如 PLY 到 .splat、PLY 到 .spx、PLY 到 .sp 的转换。
这是一个跨平台的命令行工具,用于转换 3DGS (3D Gaussian Splatting) 文件,支持如 PLY 到 .splat、PLY 到 .spx、PLY 到 .sp 的转换。
A cross-platform command-line tool for 3D Gaussian Splatting, focusing on format conversion and optimization.
.ply, .splat, .spx, .spz, .sog, and .glb (only glb files with KHR_gaussian_splatting extension are supported).ply, .splat, .spx, .spz, .sog, .ksplat, and .glb files| Format | Read | Write | Reference |
|---|---|---|---|
.ply |
☑ | ☑ | Link |
.compressed.ply |
☑ | Link | |
.splat |
☑ | ☑ | Link |
.spx |
☑ | ☑ | Link |
.spz |
☑ | ☑ | Link |
.ksplat |
☑ | Link | |
.sog |
☑ | ☑ | Link |
lod-meta.json |
☑ | ☑ | Link |
.glb |
☑ v4.7.1+ | ☑ v4.7.0+ | Link1 Link2 |
.spx.spx format is flexible, expandable, and supports proprietary data protection. It incorporates encoding methods from .splat, .spz and .sog formats and adds block compression processing. It supports progressive loading and is suitable for large file models..spx format, please refer to SPX Specification.spx format, you can use Reall3dViewer. This viewer is built on Three.js and supports features such as marking, measurements, etc.…# Convert the ply to spx without saving SH coefficients and add custom comments.
gsbox ply2spx -i /path/to/input.ply -o /path/to/output.spx -c "your comment here" -sh 0# Convert the ply to spz version 3.
gsbox p2z -i /path/to/input.ply -o /path/to/output.spz -ov 3# Convert the ksplat to spz version 4.
gsbox k2z -i /path/to/input.ksplat -o /path/to/output.spz -ov 4# Convert the splat to spx with options.
gsbox s2x -i /path/to/input.splat -o /path/to/output.spx -c "your comment" -bs 10240 -ct xz# Convert the spx to spz with options.
gsbox x2z -i /path/to/input.spx -o /path/to/output.spz -sh 0 -rz 90 -s 0.9 -tx 0.1 -to TRS# Convert the ply to sog.
gsbox p2g -i /path/to/input.ply -o /path/to/output.sog# Convert the sog to spx.
gsbox g2x -i /path/to/input.sog -o /path/to/output.spx
gsbox g2x -i /path/to/meta.json -o /path/to/output.spx# Convert the ply to glb with KHR_gaussian_splatting extension.
gsbox ply2glb -i /path/to/input.ply -o /path/to/output.glb
# Convert the ply to glb with KHR_gaussian_splatting_compression_spz_2 extension.
gsbox ply2glb -i /path/to/input.ply -o /path/to/output.glb -of spz# Convert the sog to RGB point cloud.
gsbox sog2ply -i input.sog -o output.ply -of rgb# join the input model files into a single output file
gsbox join -i a.ply -i b.splat -i c.spx -i d.spz -i e.ksplat -i f.sog -i meta.json -o output.spx# Generating LOD format.
gsbox cut -i lod0.ply -l 0 -i lod1.ply -l 1 -i lod2.ply -l 2 -o /path/to/lod-meta.json# automatically generating hierarchical data and creating LOD (lod-meta.json) format.
gsbox autocut -i input.ply -o /path/to/lod-meta.json# print data to text file like splat format layout
gsbox ps -i /path/to/input.spx -o /path/to/output.txt# Inspect the header information of the spx file
gsbox info -i /path/to/file.spx暂无开放 Issues,或尚未同步最近议题。