How to use MTL that was not imported with OBJ

Rhino does not import MTL file when importing the OBJ file.
After importing the OBJ (import setting group and import MTL enabled) a few simple materials are generated only containing colors (not related with the textures)

  • both are in the same directory
  • both have the same name
  • Contents of the MTL file if I open it in a text reader:

    3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware

    mtllib VP_Free_Birch_01.mtl

File downloaded: Free 3d models - Trees - Viz-People (OBJ – Mirror 1)

How do I get this texture from the MTL? Do I have to import those myself / change the generated color textures?

Hi Ludo - are the image files (texures) available ? if these are in the same folder as the mtl, I think everything should work.

-Pascal

Yes, the folder includes two bitmap textures along with the obj and mtl files.

Hoi Ludo -
There are 18 OBJ files with corresponding MTL files in that zip file.
MTL files are simple text files that you can open in any text editor.
None of those 18 MTL files reference any of the JPG texture files that are included. As such, these textures will not show up in Rhino.

You can drag and drop a JPG file onto an object in the Rhino viewport to assign that image as the “color” of a texture. You can then browse to other images in that folder to assign transparency or bump.
-wim

Alright, thanks for your reply. From your answer, I take it that these MTL files are not generated correctly. Since none of those MTL files reference any of the JPG texture files. Is that correct?

That is correct, yes.
wim