cnr-isti-vclab / PyMeshLab

The open source mesh processing python library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OBJ files don't load textures in pymeshlab >2022.2

bedaberner opened this issue · 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")

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?

It stops working from v2022.2.post3.