mkkellogg / GaussianSplats3D

Three.js-based implementation of 3D Gaussian splatting
MIT License
1.53k stars 198 forks source link

.ksplat creating a larger file? #335

Closed abrahamezzeddine closed 2 months ago

abrahamezzeddine commented 2 months ago

Hello,

I am using the ksplat converter on your demo website. Selecting the garden.splat (which is around 182MB) creates a converted file that is 250MB.

This does not seem correct. Why is it larger than the original file? I would assume a high compressor would yield a much smaller file.

mkkellogg commented 2 months ago

Sometimes you have to play around with the "Block size" and "Bucket size" parameters to get ideal compression; choosing the wrong values can sometimes make the file larger. What value did you choose for "Compression level"? If you want to share the file, I can try to debug the issue.

abrahamezzeddine commented 2 months ago

Hello,

I did not choose any specific values for those settings. I only checked compression level 2.

Here is the file I used https://file.io/kFvauYmtz9DB

Thank you.

mkkellogg commented 2 months ago

I just tried converting your garden.splat to .ksplat using the following settings, and the resulting file size was 140 MB:

image image

Edit: That was locally though, maybe there is something wrong with the online version of the demo?

abrahamezzeddine commented 2 months ago

Ok, thanks. I was using the online demo to convert it.

mkkellogg commented 2 months ago

So there was indeed a small issue with the online version 😄 I just pushed a fix and looks like it's working correctly now.

abrahamezzeddine commented 2 months ago

Great, thanks!