PyMeshLab icon indicating copy to clipboard operation
PyMeshLab copied to clipboard

OBJ files don't load textures in pymeshlab >2022.2

Open bedaberner opened this issue 1 year ago • 5 comments

When running the following code I get the expected result in pymeshlab 2022.2 and before. However in later versions, the textures don't seem to be imported (no textures are copied to the output folder and the .mlp file contains only the mesh, no textures.)

import pymeshlab

ms = pymeshlab.MeshSet()
ms.load_new_mesh("example.obj")
ms.save_current_mesh("output/result.obj", save_vertex_color=True,save_vertex_normal=True,save_face_color=True,save_wedge_normal=True,save_polygonal=True,save_textures=True,texture_quality=-1)
ms.save_project("test.mlp")

bedaberner avatar Mar 18 '24 14:03 bedaberner

I cannot replicate the issue. When saving a mesh, also the texture is saved in my system and in my input mesh. The mlp file not containing the textures is expected, since textures are associated with the mesh. Could you please share your input file and your system setup?

alemuntoni avatar Mar 18 '24 14:03 alemuntoni

It stops working from v2022.2.post3.

domef avatar Mar 22 '24 14:03 domef