Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.spz support #381

Closed
cyango opened this issue Dec 3, 2024 · 12 comments
Closed

.spz support #381

cyango opened this issue Dec 3, 2024 · 12 comments

Comments

@cyango
Copy link

cyango commented Dec 3, 2024

As scanniverse released their open source new .spz which seems to bring new optimizations, is this library capable of supporting that .spz?

https://scaniverse.com/news/spz-gaussian-splat-open-source-file-format

@seppestaes
Copy link

Ongoing discussion #47

@mkkellogg
Copy link
Owner

I have a branch in development that supports the .spz format (up to 2nd degree spherical harmonics) as well as the updated PlayCanvas compression with spherical harmonics (also up to 2nd degree): https://github.com/mkkellogg/GaussianSplats3D/tree/playcanvas_and_spz_compression. Anyone want to test it out?

@seppestaes
Copy link

seppestaes commented Dec 29, 2024

I did two tests with .spz files (playcanvas_and_spz_compression)
one .spz is 26.6Mb, the other 15.3Mb.

SplatGeometry.js:29 Uncaught RangeError: Array buffer allocation failed
at new ArrayBuffer ()
at new Uint32Array ()
at SplatGeometry.build (SplatGeometry.js:29:33)
at SplatMesh.build (SplatMesh.js:367:43)
at Viewer.addSplatBuffersToMesh (Viewer.js:1222:49)
at Viewer.js:1119:51
at Util.js:160:28

In SplatGeometry: maxSplatCount is 1439546489 and 1406516345
Seems weird as the splat is rather small.

https://drive.google.com/file/d/1UWOss522q90aZFU5FP5Xx5ebhyilJBbq/view?usp=sharing

@mkkellogg
Copy link
Owner

Can you share the code you used to view the scene? I'm able to view the scene you shared just fine, so one of your viewer settings may be the culprit:
image

@seppestaes
Copy link

Hi @mkkellogg,
I'm using the demo viewer (index.html). Added a block to FileBufferToSplatBuffer for the new SpzLoader. It's working nicely!

@cyango
Copy link
Author

cyango commented Dec 30, 2024

How much FPS are you getting? Does it load fast in mobile?

@KuoFengYuan
Copy link

Hi @mkkellogg,
I'm using the demo viewer open spz
but i use mobile phone safari open will crash
my url:
https://test.venraas.tw/demo.html?url=https://storage.googleapis.com/macaron_melody/will/1106_sofa.spz

@cyango
Copy link
Author

cyango commented Jan 8, 2025

I'm trying this on a RF3 component, but I'm having a error on import from that specific branch. Am i doing something wrong?

image image

@seppestaes
Copy link

@cyango : Did you build the package?
"module": "build/gaussian-splats-3d.module.js", "main": "build/gaussian-splats-3d.umd.cjs",

@cyango
Copy link
Author

cyango commented Jan 9, 2025

Yes I missed that step. Working on my R3F app!

image

@cyango
Copy link
Author

cyango commented Jan 9, 2025

What's missing to merge that branch and publish to npm?

@mkkellogg
Copy link
Owner

SPZ support is now in the latest release: v0.4.7

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

No branches or pull requests

4 participants