Obj does not save texture
A processing system for 3D triangular meshes
Brought to you by:
cignoni,
granzuglia
MeshLab v1.3.3 (April 3, 2014); Windows 7 64- bit
Hallo,
I'm using the function "parameterization + texture from registered rasters" to add the texture from a picture and it perfectly works. The problem is that the only format that correctly saves the mesh + the just added texture is PLY. I can save in Obj, but when I try to reopen it MeshLab gives error: "error encountered while loading the file... Some material definition were not found, a default white material is used ..."
Same error occurred with the previous version of MeshLab. I changed dimension of the pictures, of the meshes, but it does not work. I need OBJ format.
I hope you can help me.
Ciao
Chiara
Had this same problem, but I found the solution. Meshlab doesn't like spaces in file names. I changed my file names so they had no spaces, and it imported correctly.
You will have to open up both the .obj file and its associated .mtl file in Notepad or another text editor. Change the references they have. There should be three files associated witht he object: a .obj, a .mtl, and a .png. The .obj references the.mtl and the .mtl references the .png. You have to change the names of all three, and also the name of the .mtl referenced within the .obj + the name of the .png referenced within the .mtl.
Hope that fixes it for you.