hyperlogic / splatapult

A 3d gaussian splatting renderer in C++ and OpenGL
MIT License
89 stars 12 forks source link

Error on loading files #3

Closed fasteinke closed 7 months ago

fasteinke commented 7 months ago

Thanks for putting this alternative viewer out! And, trying the splatapult-0.1-x64.zip release ...

But, I had to try multiple PLY files before a model was successfully read; and that was one with the truck.

What occurs nearly every time are multiple instances of a message like

[ERROR] Error parsing ply file "D:\Apps\GaussianSplatting\splats\Colab\bicycle\b4000.ply", missing f_rest property

hyperlogic commented 7 months ago

Interesting, that b4000.ply file is missing the spherical harmonics data. Is it just points? What tool did you use to create that ply file? Can you attach it to this issue? If it's not too large.

fasteinke commented 7 months ago

Need to check it more carefully, but the majority of PLYs come from using a modified Colab notebook, created by camenduru. Also, a selection from Polycam and Luma processing.

None of the other viewers I've tried have complained, at any time. Anyway, will look to organising a super small PLY showing the issue, and attach.

fasteinke commented 7 months ago

Okay, the issue appears to be tied to the spherical harmonics parameter. Turns out that the Luma and Polycam files are okay. But using the graphdeco-inria pipeline, or variant of that, and having --sh_degree 0, or --sh_degree 2 raises the error. --sh_degree 1, or --sh_degree 3 produce files which your viewer is happy with.

Again, other viewers are not fussed about these differences - an example of a failing file: Pr#100,499.zip

hyperlogic commented 7 months ago

Thanks, for attaching the ply. I didn't have any PLY files without spherical harmonics to test on. Should be fixed if you re-download the splatapult-0.1-x64.zip file