Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

I've been having issues with getting material files to load for .objs. Despite being in the same folder as the model, the mtl file just doesn't get loaded and the model has no colour. These are models from a kenney asset pack so I don't think it is an issue with the files themselves. Any thoughts?

I’ll look at it in a little bit, I have a feeling I know why it would have lost the texture images but just in case which model(s) specifically was it?

I tested a bunch from his nature kit

So I tested a bunch of different models and couldn’t replicate the issue. You’re using a relatively recent version of the program (last updated about a month ago) and the material files are named correctly, right?

Yes

So tested it on another computer and the issue still presisted. However loading in a model from kenney's Retro Medieval Kit worked fine, the texutres loading in without issue. Can Penguin just not load colour from mtl files?

Should be able to. Do you have “show vertex colors” in Viewer Settings turned off, by any chance?

(1 edit)

No, it’s on. I appear to be cursed for some reason

I HAVE FIXED THE ISSUE!! turns out combine OBJ vertex colours was enabled in settings which made things not work

(+1)

Maybe that’s a sign that it’s time for me to clean up the Settings menu, I think that one was added for a really old version before I added code to load materials separately…