New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hot to save ply with colors #942
Comments
I think meshlab has not read the colors at all and you are seeing a lighting effect. |
I'm using pytorch3d 0.6 version now |
Can you share the ply file here? |
That file contains the same PLY data twice, not sure why. But the colors are as you've displayed in your meshlab screenshots: white with blue patches. I think the saving worked, it just doesn't look like the original cow. |
I did the same rutine once again and got this this ply file https://drive.google.com/file/d/178QgiqtAJJT132jrkxN5O8QtKDryvAy4/view?usp=sharing |
It's also mostly white with some other colors. I think you are successfully writing data from PyTorch3D which can be read by meshlab. What is your question? |
I think you have them in your notebook with PyTorch3D, which you have based on the tutorial. Can you look at that? And look what data is in the mesh you are saving and how it got there. Maybe use plot_batch_individually on the mesh object in the notebook. |
What's the difference between new_mesh and new_src_mesh? Could you share the whole ipynb? |
new_mesh and new_src_mesh are the same! |
I don't understand what has happened in your program. Could the colours in the PyTorch3D texture escape the [0,1] range? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
I have exactly the same issue. The .ply model looks fine if I plot it in code, but if I want to export it has some strange blue areas. |
Tutorial :https://pytorch3d.org/tutorials/fit_textured_mesh
Follwing #913 I want to save my cow mesh as a ply with textures. To do that I've used
IO().save_mesh(new_mesh, "final_model.ply", binary=False, colors_as_uint8=True). but results seems weird in Meshlab.
How can I save ply such that Ill have the same colors as in my jupyter notebook?
The text was updated successfully, but these errors were encountered: