Skip to content

Add SPZ I/O for Gaussian splats - #7520

Merged
ssheorey merged 13 commits into
mainfrom
ss/3dgs-spz
Jul 18, 2026
Merged

ssheorey merged 13 commits into
mainfrom
ss/3dgs-spz

Conversation

@ssheorey

Copy link
Copy Markdown
Member

Summary

  • Add read/write support for compressed SPZ Gaussian splat files through tensor PointCloud I/O.
  • Vendor zstd and nianticlabs/spz, including dependency wiring and legacy geometry-type detection.
  • Add C++ and Python round-trip coverage plus SPZ samples to the Gaussian splatting notebook.
  • Record deferred Gaussian splat optimization ideas: spatial reordering, amortized sorting, and user shader callbacks.

Plan and decisions

  • Goal: support SPZ 3DGS interchange without changing the existing in-memory Gaussian splat schema.
  • Requirements: preserve positions, linear scales, wxyz rotations, opacity, DC SH, higher-order SH, extension dispatch, Python bindings, tests, and examples.
  • Implementation: vendor zstd/SPZ; map SPZ encoding in FileSPZ.cpp; register .spz in tensor and legacy I/O; document and test the feature.
  • Decision: keep the existing compute composite path unchanged; the alternate raster composite work was explicitly deferred.
  • Status: implementation and focused validation complete.

Test plan

  • cmake --build build --target tests --parallel 4
  • Focused C++ SPZ tests: FileFormatIO.ReadFileGeometryTypeSPZ and TPointCloudIO.ReadWrite3DGSSPZ
  • Python SPZ test in /home/ssheorey/seagate_b/venvs/o3d: python/test/t/io/test_spz.py (1 passed)
  • Notebook JSON and code-cell syntax validation

Risks and mitigations

  • SPZ quantizes values and quaternion signs are equivalent under q/-q; tests use appropriate tolerances and rotation equivalence.
  • The notebook downloads upstream sample assets only when absent and caches them under Open3D's data directory.

Made with Cursor

Vendor the SPZ and zstd dependencies, expose compressed Gaussian splat read/write support, and extend tests and examples with upstream SPZ samples.

Co-authored-by: Cursor <cursoragent@cursor.com>
@update-docs

update-docs Bot commented Jul 12, 2026

Copy link
Copy Markdown

Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

ssheorey and others added 10 commits July 11, 2026 20:34
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Group libspz and libzstd for GNU ld so shared Open3D builds no longer leave unresolved ZSTD symbols.

Co-authored-by: Cursor <cursoragent@cursor.com>
CMake was reordering INTERFACE deps so libzstd.a preceded libspz.a and emptied bare -Wl,-( list markers. Link both archives by path inside --start-group/--end-group on 3rdparty_spz.

Co-authored-by: Cursor <cursoragent@cursor.com>
Duplicate -Wl,--start-group/--end-group from 3rdparty_spz collided with
MKL's GROUPED import. Keep forced spz-then-zstd archive order only.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ssheorey

Copy link
Copy Markdown
Member Author

SPZ test assets (horned lizard and raccoon family)

Screenshot 2026-07-18 at 12 51 35 AM Screenshot 2026-07-18 at 12 53 58 AM

@ssheorey ssheorey added this to the v0.20 milestone Jul 18, 2026
@ssheorey ssheorey added the status / to merge Looks good, merge after minor updates. label Jul 18, 2026
@ssheorey
ssheorey merged commit 74db594 into main Jul 18, 2026
36 of 37 checks passed
@ssheorey
ssheorey deleted the ss/3dgs-spz branch July 18, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status / to merge Looks good, merge after minor updates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant