Page 1 of 1

Help with OBJ models and .MTL files

PostPosted: Fri Mar 12, 2021 11:58 am
by SPZ1
I'm having some trouble with models. My OBJ models always cause GZDoom to spit out some script error warning that I can't figure out. My .MTL file is in place but it doesn't do anything!! I got the moon to work but I'm not having the same luck with the clock tower clock thing. This is demonstrated with the following link (I can't post it on this forum because the file size is too large! >:(


https://1drv.ms/u/s!Ap4KZFMds2L1hGbQrsYfwMSc8Ne4?e=ZhN2vH

Re: Help with OBJ models and .MTL files

PostPosted: Fri Mar 12, 2021 2:05 pm
by Cherno
Forget the mtl file. Instead, open the obj file in a text editor (can be done is SLADE) and search for all lines starting with "usemtl". Change the material paths following these so only the texture name remains. So, a line that refers to the texture "s1floorc" in your textures dir of your archive should just read "usemtl s1florc".

Re: Help with OBJ models and .MTL files

PostPosted: Fri Mar 12, 2021 4:41 pm
by SPZ1
Excellent! Both models are now working!