Convert Gaussian Splat PLY files to PlayCanvas SOG format
Project description
SogPy
Convert Gaussian Splat .ply files to PlayCanvas .sog format.
Installation
pip install sogpy
Usage
Command Line
# Basic conversion
sogpy input.ply output.sog
# With more clustering iterations (better quality, slower)
sogpy input.ply output.sog --iterations 20
Python API
from SogPython import convert_ply_to_sog
convert_ply_to_sog("input.ply", "output.sog")
What is SOG?
SOG (Splat Optimized Graphics) is PlayCanvas's format for Gaussian splat data. It uses:
- WebP lossless compression for textures
- K-means clustering to reduce color and scale data to 256 values
- Morton ordering for spatial coherence
- Smallest-three quaternion encoding for rotations
This typically achieves 5-6x compression compared to raw PLY files while preserving all data including spherical harmonics.
Features
- ✅ Full PLY format support (binary little-endian)
- ✅ Spherical harmonics (bands 1-3)
- ✅ WebP lossless compression
- ✅ 16-bit position precision with log transform
- ✅ Smallest-three quaternion compression
Requirements
- Python 3.8+
- numpy
- scipy
- Pillow
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sogpy-1.0.0.tar.gz.
File metadata
- Download URL: sogpy-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17cfdaf1723ceda0083f27d32cce0bb3975d8ab38a12aed5515ac7f430a0525e
|
|
| MD5 |
a0ab7b3b737dfac252391ca31503e5b4
|
|
| BLAKE2b-256 |
9ece9ec3b25d9725df4a50b78857e56dc06b604454c79220bf31ce0e53674f3b
|
File details
Details for the file sogpy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sogpy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2f63e7f7470aeaa6c39358afb529ac5049bf801c1f14953e138e62395ffc9f2
|
|
| MD5 |
4bcdb3156f7b3e1ac18acb2ca453f45b
|
|
| BLAKE2b-256 |
06eb983a95d4e2caad193a675bdf782090b50851eb9269dfca3f4acccc1c0099
|