I’m getting a message from rhino that it cant find the *.mtl file corresponding to the selected *.obj. Below are first the names of the files. They are in the same folder.
I did some searching on the topic, but could not really find something related.
Can someone explain me what I’m doing wrong? Or point me to a similar topic?
I think i have found the problem. Not sure how to solve it though.
The length of the filename string seems to be to long.
The obj is being read, but the string is altered before reading *.mtl.
the obj string is:
789985_Osaguona_213063_2D_FOOTPRINT_RIGHT_3.obj
the message from rhino is:
Unable to find or open
Osaguona_213063_2D_FOOTPRINT_RIGHT_3.mtl. Materials will be ignored.
Upload both to Rhino - Upload to Support and I’ll see if I can make it work better. I should be able to at least tell you what’s going on if it can’t be fixed, although I think it probably can. The OBJ standard specifies 8.3 ascii filenames (it’s old) but I thought I had worked it all out so that’s not an issue on import. I think we don’t try to make short file names on export anymore either .
As a workaround in the meantime, you could shorten the .mtl file name and then edit the .obj file and search for the .mtl file name and shorten that also. But you need a text editor that will work with your .obj file. I just use Windows Notepad but it will not work with large files.
OK. This is happening because your mtl file is named
789986_Osaguona_213063_2D_FOOTPRINT_RIGHT_3.mtl
but the line in your obj file is
mtllib Osaguona_213063_2D_FOOTPRINT_RIGHT_3.mtl
Notice anything missing? If you add “789986_” to the mtllib in your obj file, or rename your mtl file to exclude that, it will read the mtl file. But you still won’t get a texture because the mtl file has the same problem with regard to the image file. The image is named.
missing the “789987_”. What app is making these files? You probably want to log that as a bug. It could also be your mobile device that’s adding that. Either way you’ll need to get rid of that prefix, probably easier to rename the file(s).
I cheked the filenames again with my colleague. He noticed that the prefixnumber of all 3 is different on the last number. This is a print screen of the filenames.