I am using a kinect to get a point cloud with real colors:
(in ofApp.h: ofMesh pointCloud1, pointCloud2, pointCloudTransformed;)
for(int y = 0; y < h; y += density) {
for(int x = 0; x < w; x += density) {
if(..[distance stuff..])
{
pointCloud1.addColor(kinect.getColorAt(x,y));
pointCloud1.addVertex(kinect.getWorldCoordinateAt(x, y));
}
}
}
If I draw the point cloud, all is as expected. Then I save it:
pointCloud1.save("meshes/pointCloud1.ply");
When later loading the point Cloud and drawing it, all is good on OS X OF 0.8.4., while on Ubuntu OF 0.9.8 the point cloud draws without colors (all dots grey). The .ply-file look good to me on both machines.
When switching back to live (getting the point cloud from kinect and drawing it directly) all is expected (with colors) on both systems again.
I prepared a small App to show my problem and did some tries. I tested on 3 Machines running Windows and ubuntu each. All machines show colorless version of a pre-saved mesh (point cloud mesh consists of grey dots) no matter which system.
Same code / same mesh on OS X shows the colors (point cloud mesh consists of colored dots).
So it is obviously not a problem of one system or graphics card. I assume, I am just missing a setting maybe?
If anyone could try and help, I’d be happy. Find the app (with mesh) here:
I’m essentially taking a sphere, applying the color from an image to the vertices of a sphere and extruding it out based on brightness. It’s based on work I did in this post (just about a year ago!)
I’m able to save my model as a .ply file but none of the color comes with it if I try to load it in another 3D modeling/viewing application (in my case, Blender and A-Frame)
Is there something else I should be doing to save my mesh with the pixel colors I’ve set?
Thank you for any help and please let me know if there is more information I can provide!
I am on OSX and thats what I get.
So now, if these saved sphere.ply file is opened in one of the other softwares you use, is it the same thing you are seeing? does it have colors?