Skip to content

Support gsplat library compressed PLY output#39

Merged
dmarcos merged 1 commit into
sparkjsdev:mainfrom
asundqui:support-gsplat-compressed-ply
Jun 6, 2025
Merged

Support gsplat library compressed PLY output#39
dmarcos merged 1 commit into
sparkjsdev:mainfrom
asundqui:support-gsplat-compressed-ply

Conversation

@asundqui

@asundqui asundqui commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

This PR enables Forge to decode both SuperSplat and gsplat library's compressed PLY output. When SuperSplat outputs a compressed PLY it includes the comment "Generated by SuperSplat 2...." which we had used to detect this file format. The rationale was that the "chunk" element could conceivably be used for some other reason in a PLY file, and relying on just the word "chunk" could result in a false positive and incorrect decoding.

It turns out the gsplat library also outputs this format and does NOT output any comment. I haven't seen any evidence that "chunk" is used in another way in a PLY file in a 3DGS context, so it feels relatively safe to ignore the comment. Verified that this fix does indeed allow loading a representative gsplat-output file (toy.ply in toy.zip from #34 ).

@asundqui
asundqui requested review from bmild and dmarcos June 6, 2025 21:21
@asundqui asundqui self-assigned this Jun 6, 2025
@dmarcos
dmarcos merged commit ea9e4e3 into sparkjsdev:main Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants