Closed miranbrajsa closed 4 days ago
I apologize for all of the confusion, currently the viewer only supports spherical harmonics up to degree 2, so it's not surprising you're seeing problems trying include degree 3 😄 I need to correct the comment in the viewer and probably throw an error when the user tries to use anything above degree 2.
Hey @mkkellogg , no problem whatsoever, thank you for the fast reply. I'm curious though, what would need to be modified in order to support the 3rd degree. I'd be happy to take a look if you could provide a couple of guidelines/materials and if time permits 🤔
The code around both loading and rendering the spherical harmonics is actually kind of complex, so it probably wouldn't be fun to try to modify (sorry, that's my fault). I eventually plan on supporting degree 3, I've just been holding off due to the substantial increase in memory (both CPU side and on the GPU) required. Hopefully I'll get around to it in the not too distance future :)
Got it. I'll see if I can do something in the meantime 👍 Thanks again!
sounds good!
Hi! I really like the library you've put together, awesome work 👏
I've been playing around with compressing
.ply
files and everything works, except when I try to do a maximum compression of a.ply
file with spherical harmonics set to3
. What I've seen from the README and the code, the code states that the harmonics degree support is in range 0 - 3 while the README specifies that the support is in range 0 - 2. The command I'm using is the following:and the error that gets produced is:
I've tried a couple of different
.ply
files and I always end up with the same result. When going for harmonics between 0 and 2, there's no error and the compression succeeds. The point clouds in question have been exported from Postshot.Another interesting thing I've noticed is that if I try with compression level of 0 and harmonics of 3 like with this command:
I get a file that is smaller than the same point cloud compressed with compression level 2 and harmonics of 2:
and this actually seems like the result is containing harmonics of degree 0.
I hope some of these insights will help.
Thank you in advance for any help you could provide.