draco icon indicating copy to clipboard operation
draco copied to clipboard

Only the positions of the point cloud data in the ply file got compressed

Open lwan86 opened this issue 1 year ago • 3 comments

I converted the point cloud data from the KITTI dataset into ply format. The header of the ply file is shown as follows: ply format binary_little_endian 1.0 element vertex 126085 property float x property float y property float z property float reflectance end_header

I then use draco to compress and decompress this file. In the ply file which contains the decompressed data, it seems that only the positions (x, y, z) are decompressed:

ply format binary_little_endian 1.0 element vertex 126085 property float x property float y property float z end_header

How to let draco compress other properties (e.g., reflectance) as well?

lwan86 avatar May 14 '24 19:05 lwan86

I think if you go into the ply_decoder they mentioned that they support a few things such as positions, colour, normals, (maybe alpha?) but the other attributes are ignored for now and left as a todo

i9-9900kfc avatar Mar 25 '25 17:03 i9-9900kfc

Is it still todo or there is a workaround now?

niltarkan avatar May 05 '25 10:05 niltarkan

Adding a comment here as I ran into a similar issue with the u,v coordinates for textures.

Currently the ply_decoder, which is used by the draco_encoder process to parse and prepare the ply input file, only processes color and normal attributes. All other attributes are discarded.

I have implemented a fix for the texture coordinates which I would love to contribute to the repository.

TheXRGuy-mw avatar Jul 20 '25 21:07 TheXRGuy-mw