Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Yellow-Dog-Man/Spz.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spz.NET: A C# Implementation of SPZ (de)serialization.

Warning

Deprecation notice!

Niantic labs has made a vast number of changes to their library which would need to be replicated here. As much as I love having a 100% C# library, it's unfortunately not a wise use of developer time to play catch-up; especially since it seems their development moves quite rapidly.

You'll eventually see another repo from us which provides equivalent functionality via P/Invoke bindings to Niantic's native SPZ library.

This library provides a completely native implementation of Niantic Labs' SPZ format, of which the original can be found here.

Let's get straight to the point with an example of how to use this library.

In this example, a compressed .spz file is loaded and serialized to a .ply file.

// Load a .spz file
GaussianCloud splat = SplatSerializer.FromSpz("/path/to/splat.spz");

// Serialize to .ply
splat.ToPly("/path/to/splat.ply");

And here's how to compress a .ply to a .spz:

// Load a .ply file.
GaussianCloud splat = SplatSerializer.FromPly("/path/to/splat.ply");

// Serialize to .spz
splat.ToSpz("/path/to/splat.spz");

Gaussian clouds implement IReadOnlyList<Gaussian>, so they can be indexed and enumerated through as a normal collection.

Also included in this repo is a demo library consisting of a simple console app to demonstrate how to use Spz.NET.

Unit tests and a proper nuget release will be coming soon.

About

Native C# implementation of Niantic Labs' SPZ format.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages