playcanvas / supersplat

3D Gaussian Splat Editor
https://playcanvas.com/supersplat/editor
MIT License
1.51k stars 140 forks source link

Can not import large size compressed ply #189

Closed cloudending closed 1 month ago

cloudending commented 1 month ago

the compressed ply is exported from supersplat. But there are some error when I try to import it. image

Small size ply is imported successfully. But large size ply is failed. small ply: 24.1m large ply: 119m

slimbuck commented 1 month ago

Hi @cloudending ,

I am able to load 1.5GB PLY files just fine.

Are you able to send me the PLY please so I can take a look?

Thanks!

cloudending commented 1 month ago

Hi @cloudending ,

I am able to load 1.5GB PLY files just fine.

Are you able to send me the PLY please so I can take a look?

Thanks!

download link:https://we.tl/t-9IDsS7KYHN,it is a simplied ply which only contains " x y z f_dc_0 f_dc_1 f_dc_2 opacity scale_0 scale_1 scale_2 rot_0 rot_1 rot_2 rot_3". I try to export compressed ply from a full parameters ply which size is 2.23G. It can be imported successfully.

slimbuck commented 1 month ago

Thanks @cloudending! I can confirm the same issue on my side. Loading the compressed file into model viewer works fine though, so it's a bug in SuperSplat.

slimbuck commented 1 month ago

Looks like the PLY contains splats with scale of -Infinity, which isn't being handled very well.

willeastcott commented 1 month ago

It makes me wonder whether some kind of PLY linter might be cool to have in SuperSplat? Or maybe a log window that outputs problems found in loaded scenes.

slimbuck commented 1 month ago

While I fix this issue on my end @cloudendin, I found a workaround you can use to get this to working.

The splats causing the issue are all centered at (0, 0, 0).

You can see this and then delete them as follows: 1) Open the SPLAT DATA panel 2) Choose Distance dropdown option, you will see there are 11k 0-size splats at the very center of the scene. 3) Select all these splats by clicking on the bar in the SPLAT DATA panel 4) Delete them

You can now export compressed without problem.

Screenshot 2024-09-19 at 14 27 26
cloudending commented 1 month ago

While I fix this issue on my end @cloudendin, I found a workaround you can use to get this to working.

The splats causing the issue are all centered at (0, 0, 0).

You can see this and then delete them as follows:

  1. Open the SPLAT DATA panel
  2. Choose Distance dropdown option, you will see there are 11k 0-size splats at the very center of the scene.
  3. Select all these splats by clicking on the bar in the SPLAT DATA panel
  4. Delete them

You can now export compressed without problem.

Screenshot 2024-09-19 at 14 27 26

it works. thanks for your working