Closed han16nah closed 1 year ago
Issue 2: appears to me when using MeshLab GUI as well. Does not write correct face colours to OBJ..
This issue has been automatically marked as stale because it has not had recent activity. The resources of the VCLab team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the last release of PyMeshLab, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
Hi, sorry for the late reply.
Issue 1: duplicate of #207, it should be solved in the next version of pymeshlab. You can try it by downloading and installing the last nightly from here.
Issue 2:
this issue cannot be solved easily, I'm sorry.
VCGLib, which is the core library used by meshlab and pymeshlab, does not store materials as they are organized in obj files. It stores just colors and texture coordinates (per vertex, per face). It does not store material names and other features (e.g. Ka
and Kd
values in the output mesh are standard values).
Therefore, when loading obj files, everything that cannot be stored in a VCG mesh, will be lost.
This issue has been automatically marked as stale because it has not had recent activity. The resources of the VCLab team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the last release of PyMeshLab, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
Hi, I am trying to merge two meshes and save the output as OBJ. I have multiple issues and hope it is okay to collect them here.
Ideally, I would like to preserve the original materials with their names, but at least, I would like to have the correct colors in my output (no matter how the materials are named). Neither of those is working.
OS: Windows 10 version: pymeshlab 2022.2.post2 python version: 3.9.13
Issue 1: Full file path to mtl file instead of relative file path is written
Hence, material is not found when, e.g., loading to CloudCompare. Has to be changed manually.. or I guess the relative path has to be given as the OBJ file path to save to.. See also #207
Issue 2: Colours in mtlfile do not correspond to colour in original mtl file of imported files. Example: Input:
Output:
However, colours are displayed correctly when using
show_polyscope
.Issue 3: I hoped that at least the classes were simply renamed in the correct order and I could just use my old mtlfile and replace the original material name by the ones Meshlab uses, i.e.,
material_0
,material_1
, etc. in the order listed. However, the order seems to be different, so this is also not working ...Code I'm using: (Background: Iterating to list of files, checking if they have the same x-y-extent (indicated in filenames) and then merging if they have different z-extents.)