playcanvas / supersplat

3D Gaussian Splat Editor
https://playcanvas.com/supersplat/editor
MIT License
745 stars 76 forks source link

can't find 'f_rest' properties #73

Closed Jing1Ling closed 4 months ago

Jing1Ling commented 4 months ago

Thanks for your great work. I read the ply file's properties like this:

from plyfile import PlyData
plydata2 = PlyData.read('path/to/plyfile')
print(plydata1.elements[0])

I found that the ply file exported from super-splat only output the following information:

property float x
property float y
property float z
property float f_dc_0
property float f_dc_1
property float f_dc_2
property float opacity
property float scale_0
property float scale_1
property float scale_2
property float rot_0
property float rot_1
property float rot_2
property float rot_3

Compared with the format saved by 3DGS, there seem to be 45 properties starting with 'f_rest' missing. Is this caused by the way PlyData reads files? How should I find the 'f_rest' information?

slimbuck commented 4 months ago

Hi @Jing1Ling,

The f_rest properties contain the spherical harmonics data.

By default SuperSplat reads and writes this data. Can you explain what you're doing when the data goes missing?

Thanks!

Jing1Ling commented 4 months ago

I guess it may be due to the super-splat version? I reprocessed and exported a version of the ply file, and this time I was able to find all the spherical harmonic coefficients. Before this I was using ply files that were processed through super-splat a long time ago. No problem now, thanks for your reply.