Open Dave6558 opened 1 year ago
Hi,
After looking at this further, I have found out that this error occurs when the .jpg texture file is not in the same folder as the python script. The issue seems to be in the conversion to IDTF where it cannot find the .jpg from the path given in the mtl file (despite the fact the error occurs in IDTF to u3d - I believe the IDTF texture does not write correctly and so the error occurs when the conversion to u3d is attempted). I have used both relative and absolute and path types, as well and have used paths without spaces in them - none of them work.
Furthermore, if the path does not point to a file, but there is a jpg with the same name next to the python script, then it will use that one instead.
I believe that the IDTF convertor is using the file name, but searching for in the folder which the python script is. I would like to use this as an executable, so having the jpg files in a different location is important.
Thank you for any help.
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,
Used the following code on win10:
This works perfectly when .obj file is in the same folder as the python file but when obj file in different folder there is an issue with the texture. Python outputs:
where model_0 is the name of the texture used. As far as i can tell the .tga file does not get written correctly and therefore cannot be read. Is there a workaround for this?
Thank you for any help.