sogpy 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sogpy
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Convert Gaussian Splat PLY files to PlayCanvas SOG format
|
|
5
|
+
Author: Sai Kiran Nunemunthala
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/saikirannunemunthala/sogpy
|
|
8
|
+
Project-URL: Repository, https://github.com/saikirannunemunthala/sogpy
|
|
9
|
+
Project-URL: Issues, https://github.com/saikirannunemunthala/sogpy/issues
|
|
10
|
+
Keywords: gaussian-splatting,3d,playcanvas,sog,ply,webp,compression
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Image Processing
|
|
22
|
+
Requires-Python: >=3.8
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: numpy>=1.20.0
|
|
26
|
+
Requires-Dist: scipy>=1.7.0
|
|
27
|
+
Requires-Dist: Pillow>=9.0.0
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
30
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
31
|
+
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# SogPy
|
|
35
|
+
|
|
36
|
+
Convert Gaussian Splat `.ply` files to PlayCanvas `.sog` format.
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install sogpy
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
### Command Line
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Basic conversion
|
|
50
|
+
sogpy input.ply output.sog
|
|
51
|
+
|
|
52
|
+
# With more clustering iterations (better quality, slower)
|
|
53
|
+
sogpy input.ply output.sog --iterations 20
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Python API
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
from SogPython import convert_ply_to_sog
|
|
60
|
+
|
|
61
|
+
convert_ply_to_sog("input.ply", "output.sog")
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## What is SOG?
|
|
65
|
+
|
|
66
|
+
SOG (Splat Optimized Graphics) is PlayCanvas's format for Gaussian splat data. It uses:
|
|
67
|
+
|
|
68
|
+
- **WebP lossless compression** for textures
|
|
69
|
+
- **K-means clustering** to reduce color and scale data to 256 values
|
|
70
|
+
- **Morton ordering** for spatial coherence
|
|
71
|
+
- **Smallest-three quaternion encoding** for rotations
|
|
72
|
+
|
|
73
|
+
This typically achieves **5-6x compression** compared to raw PLY files while preserving all data including spherical harmonics.
|
|
74
|
+
|
|
75
|
+
## Features
|
|
76
|
+
|
|
77
|
+
- ✅ Full PLY format support (binary little-endian)
|
|
78
|
+
- ✅ Spherical harmonics (bands 1-3)
|
|
79
|
+
- ✅ WebP lossless compression
|
|
80
|
+
- ✅ 16-bit position precision with log transform
|
|
81
|
+
- ✅ Smallest-three quaternion compression
|
|
82
|
+
|
|
83
|
+
## Requirements
|
|
84
|
+
|
|
85
|
+
- Python 3.8+
|
|
86
|
+
- numpy
|
|
87
|
+
- scipy
|
|
88
|
+
- Pillow
|
|
89
|
+
|
|
90
|
+
## License
|
|
91
|
+
|
|
92
|
+
MIT
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
sogpy-1.0.0.dist-info/licenses/LICENSE,sha256=mpsXTefte3G1DXWr26libFtoeBCPQ-IP6jKjyGus2JY,1079
|
|
2
|
+
sogpy-1.0.0.dist-info/METADATA,sha256=tBT3uq3vGGrHNJXMSysQGcEbZYEmQTkQijCXFuuylGE,2538
|
|
3
|
+
sogpy-1.0.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
4
|
+
sogpy-1.0.0.dist-info/entry_points.txt,sha256=tyH3YLVEYtnfLxGz2wDRw0sk0PJStagzOad4OcQGc-8,45
|
|
5
|
+
sogpy-1.0.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
6
|
+
sogpy-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sai Kiran Nunemunthala
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|