|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: Can’t get my obj. files to connect with textures in the mtl. Files. » » » » Post: Re: Can’t get my obj. files to connect with textures in the mtl. Files. |
Print at Dec 15, 2025, 7:31:10 PM |
| Posted by Keet at Dec 12, 2024, 6:41:48 PM |
|
Re: Can’t get my obj. files to connect with textures in the mtl. Files. It's a tiny object but enlarging it did work fine. The object imports as just white. I checked the obj. file but can't find a line for the name of the object, which I usually make sure is the same in the mtl. file to make the connection. I just see the lines... This is not and export from Sweet Home 3D. But the line "mtllib Hypospray.mtl" is correct, it sets the reference to the mtl file. As in my previous post: the problem is in the mtl file, not the obj file.mtllib Hypospray.mtl o hypo_lo at the top. I thought the name always came after usemtl at the top? Perform the changes I noted and import the object. If you export it again you will see that there is no "o ..." line but now a "g ..." line in the obj file. And directly below that the line with usemtl. An obj file is 'read' from top to bottom according to the specifications. "usemtl" indicates that from that point on the material as indicated must be used for the faces that follow (f lines). Until the next usemtl is encountered to switch to that material. The Sweet Home 3D export just sets the "usemtl" line directly afte the group line (g "). Because Sweet Home 3D always groups by material that makes a better 'human readable' format, much easier than for example a Blender export. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
|
|
Current timezone is GMT Dec 15, 2025, 7:31:10 PM |