graphdeco-inria / gaussian-splatting

Original reference implementation of "3D Gaussian Splatting for Real-Time Radiance Field Rendering"
https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/
Other
14.64k stars 1.92k forks source link

change the ply model to osgb model, but the color is not right #316

Open daxue2017 opened 1 year ago

daxue2017 commented 1 year ago

change the ply model to osgb model, but the color is not right 20231012

in the ply model, the file format is below ply format binary_little_endian 1.0 element vertex 195929 property float x property float y property float z property float nx property float ny property float nz property float f_dc_0 property float f_dc_1 property float f_dc_2 property float f_rest_0 property float f_rest_1 property float f_rest_2 property float f_rest_3


property float f_rest_38
property float f_rest_39
property float f_rest_40
property float f_rest_41
property float f_rest_42
property float f_rest_43
property float f_rest_44
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
end_header

-------------------------------------------------------
is the color vertex is the 6~9 column  (f_dc_0, f_dc_1,f_dc_2) ?

or is other problems?
Snosixtyboo commented 1 year ago

Hi,

yes, the color is stored in f_dc_0 - f_dc2. But you would still need to convert this from SH coefficients to RGB colors (check the function SH2RGB from the python codebase).