Translating RGB info from a bitmapped OBJ to PLY points?
Posted: Sat Jul 27, 2019 11:00 pm
I need to go from an mesh object with a bitmap to a PLY with colored points that correspond to the bitmap. Is it possible to transfer the RGB information from the bitmap to the vertices and then save that out as a colored point cloud?
I tried importing the textured OBJ into MeshLab, tranfering from bitmap to vertex color, and then exporting as a PLY with "color" selected under "vertex." I can then bring it into CloudCompare to export just the vertices as a pure cloud. However, the point colors come into Max as very light and "washed out" for some reason, even though they look fine in CloudCompare. I can't figure out why it's happening, though some kind of gamma correction is suspected. But I would prefer doing all the work in CloudCompare if possible.]
One on right is desired result, but one on left is the technique required for larger files.
If CloudCompare could transfer that bitmap information to vertex points in a cloud directly, without any brightness shifts, that would be amazing!
[I have an existing workflow to go from textured mesh to colored point cloud without gamma shift problems, but it only works on SMALL files. (I can use a utility in 3DS Max to transfer the map to vertex color channel, then use a PLY export plugin to save out a PLY mesh file, then bring it into CloudCompare to select the vertices and save it out as a PLY point cloud. However, the export plugins I've tried within Max crash when exceeding a small file size (or take many, many hours to process it).
I tried importing the textured OBJ into MeshLab, tranfering from bitmap to vertex color, and then exporting as a PLY with "color" selected under "vertex." I can then bring it into CloudCompare to export just the vertices as a pure cloud. However, the point colors come into Max as very light and "washed out" for some reason, even though they look fine in CloudCompare. I can't figure out why it's happening, though some kind of gamma correction is suspected. But I would prefer doing all the work in CloudCompare if possible.]
One on right is desired result, but one on left is the technique required for larger files.
If CloudCompare could transfer that bitmap information to vertex points in a cloud directly, without any brightness shifts, that would be amazing!
[I have an existing workflow to go from textured mesh to colored point cloud without gamma shift problems, but it only works on SMALL files. (I can use a utility in 3DS Max to transfer the map to vertex color channel, then use a PLY export plugin to save out a PLY mesh file, then bring it into CloudCompare to select the vertices and save it out as a PLY point cloud. However, the export plugins I've tried within Max crash when exceeding a small file size (or take many, many hours to process it).