obj and mtl

Hello!
I have an object (obj) file that comes with an mtl file and a kit of separate material files in the formats of jpg and png.
the mtl should be used to load these png's and jpg's into the obj, how do I make that happen?
You currently have no notifications.
Hello!
I have an object (obj) file that comes with an mtl file and a kit of separate material files in the formats of jpg and png.
the mtl should be used to load these png's and jpg's into the obj, how do I make that happen?
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2025 Daz Productions Inc. All Rights Reserved.
Comments
Unfotunately there seems to be some variation in mtl files, and there's no guarantee that one exported from application A will apply correctly in Application B. MTL is very limited anyway, you would need to do some work so you may as well try aplying your own settings from scratch (or use asn existing shader preset of the right types and switch the maps in).
The .obj file format is ancient, so it's developed a lot of slight variations over the years in the different programs that can import/export it. Not all of these variations play nice with each other. The main things to watch out for are:
I can't guarantee this will work 100% of the time, there's always the occasional file that's just plain bad, but it does usually work with most obj/mtl file pairs I've come across.
Spaces in names can be handled by putting quotes around the name, to indicate it's all one string of characters for a name.
Ah, I didn't realise that worked with .obj file parsing as well.