Expand description
§ply2splat
ply2splat is a high-performance library and CLI tool for converting Gaussian Splatting PLY files
into a compact, optimized binary format suitable for real-time rendering.
§Features
- Fast Parsing: Uses
ply-rsfor robust PLY parsing. - Parallel Processing: Leverages
rayonfor multi-threaded conversion and sorting (when theparallelfeature is enabled). - Optimized Output: Produces a dense, memory-efficient binary format (32 bytes per splat).
- Sorting: Automatically sorts splats by importance (volume * opacity) and spatial position for deterministic rendering order.
Modules§
Structs§
- PlyGaussian
- Represents a raw Gaussian Splat read from a PLY file.
- Splat
Point - Represents a processed Gaussian Splat ready for serialization. Layout is exactly 32 bytes packed: 3 floats, 3 floats, 4 u8, 4 u8.
Functions§
- convert
- Converts PLY data bytes to SPLAT format bytes.
- convert_
file - Converts a PLY file to a SPLAT file.
- load_
ply - Loads a PLY file and parses it into a vector of
PlyGaussian. - load_
ply_ from_ bytes - Loads PLY data from a byte slice and parses it into a vector of
PlyGaussian. - ply_
to_ splat - Converts a list of
PlyGaussianstructs into the optimizedSplatPointformat. - save_
splat - Saves a slice of
SplatPoints to a file in a raw binary format. - splats_
to_ bytes - Converts a slice of
SplatPoints to raw bytes.