edunad / prop_mesh

Garrysmod OBJ - Custom Model Loader
https://steamcommunity.com/sharedfiles/filedetails/?id=2205982705
Apache License 2.0
14 stars 0 forks source link

'Invalid MTL' shown - unable to figure out why #4

Open ghost opened 3 years ago

ghost commented 3 years ago

Issue Type

Model data (if any)

When trying to load this MTL file (exported from Blender 2.9), the prop_mesh entity refuses to load it, despite the fact that I cannot see as to why this format is not acceptable. I have fed it both a raw text version of the file and the file itself, and it simply refuses to load it under any circumstances. I have also tried other MTL files, and it just ain't having it.

Is there a format of MTL that differs to this exported by Blender or is this a valid format file and the entity is simply refusing to load it?

edunad commented 3 years ago

MTL format is a bit weird, i'll take a look when i can :D

ghost commented 3 years ago

I've tried multiple MTLs, some sample MTLs that are confirmed good, and none of them will work. Seems there is an issue with the code that verifies if an MTL is valid or not, as I don't believe it even tries interpreting the MTL before erroring - perhaps this is worth looking into?