draco icon indicating copy to clipboard operation
draco copied to clipboard

Vertex Colors information gets eliminated in compression

Open zsyborg opened this issue 3 years ago • 1 comments

I have PLY files that will be compressed with Draco. The original PLY files have all the vertex colors in them. When I am compressing those files and displaying it in the browser via threejs the colors are not showing up at all. Does Draco removes all the color information while compression?

I also tried finding the sub objects so that I could color them myself, but all the objects gets mixed in one single mesh which at least could have been used to color an/or map textures.

How to retain vextex color info with Draco

zsyborg avatar Jun 17 '22 09:06 zsyborg

PlyDecoder should handle vertex colors. Can you double check that the colors were preserved during compression (e.g. by decoding the .drc into a different .ply file). If the colors are still there then it may be an issue with DRACOLoader.js in which case I would suggest asking over at three.js github.

ondys avatar Sep 16 '22 18:09 ondys