pierotofy / OpenSplat

Production-grade 3D gaussian splatting with CPU/GPU support for Windows, Mac and Linux 🚀
https://antimatter15.com/splat/?url=https://splat.uav4geo.com/banana.splat
GNU Affero General Public License v3.0
924 stars 87 forks source link

Restore original camera orientation, scale when saving scene #34

Closed pierotofy closed 8 months ago

pierotofy commented 8 months ago

During training the model is scaled and oriented.

Before outputting the output PLY, we should scale / rotate the scene back to its original CRS.

pfxuan commented 8 months ago

To reserve the metric scale and camera orientation, it might be easier to feed the original sparse point cloud to training code directly. Rotating the trained ply model file would introduce an extra complicity and quality degradation if it's not handled correctly.

pierotofy commented 8 months ago

Potentially useful:

pfxuan commented 8 months ago

Yes, PlayCanvas's implementation works almost faultlessly. It would be even better if OpenSplat can use the compressed ply format as one of saving options along with the rotation and scaling.