Print at Dec 16, 2025, 9:29:30 AM

Posted by Keet at Dec 12, 2024, 5:25:00 PM
Re: Can’t get my obj. files to connect with textures in the mtl. Files.
The texture mappings in the mtl file (map_*) are ones that are not processed by Sweet Home 3D.

Remove these lines from the mtl file:
map_Ns C:/Users/Sir Thomas/Desktop/tng-hypospray-original-sternbach-design/textures/DefaultMaterial_Roughness.png
map_refl C:/Users/Sir Thomas/Desktop/tng-hypospray-original-sternbach-design/textures/DefaultMaterial_Metallic.png
map_Bump -bm 1.000000 C:/Users/Sir Thomas/Desktop/tng-hypospray-original-sternbach-design/textures/DefaultMaterial_Normal_OpenGL.png

and add the line
map_Kd DefaultMaterial_Base_Color.png

resulting in
newmtl Material.001
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd DefaultMaterial_Base_Color.png

The object is very small when you import it. It seems like width and depth are 0 and the height is 0.1. Modify it and check "Keep proportions". Set the height to 10 or 15 and the width and depth will adapt proportionally.

ETA: It's good practise to place the texture files in the same directory as the obj and mtl files. That way you don't need a path in the mtl file. A path can make the file unreadable on a different system. On top of that the current set path (a user directory) doesn't exist on someone elses computer.
And about the map_* lines: "map_Kd" is the only texture mapping recognized by Sweet Home 3D. You can view the texture files and choose the one that offers the most "normal" texture. In this case that was the image DefaultMaterial_Base_Color.png.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects