• Porting models
    8 replies, posted
I've started to dabble in porting models from other places such as gamebanana to Garry's Mod and everything is fine except the models I use all end up having no texture for their world models, if anyone knows why this is I would greatly appreciate it. Example of the model: https://i.imgur.com/Azstjnw.png The rough process I'm using to port models is: Download a model from gamebanana > Take the world/view models into a separate folder and hex them > Decompile the view and world models > Open it up in XSI Mod Tool 6 > Make the world model match the HL2 rifle positioning roughly > Set the bones > Export > Compile with crowbar > Install onto Garry's Mod (This may be the completely wrong way to do it but it's what I've been able to figure out with the little resources that I could find for it.)
Most of the missing texture problems are just because the path file for either the VMT or the VMT (or both) is wrong, make sure what's written on the QC coincides with where the material directory actually is.
For my QC file the materials list as $cdmaterials "models\weapons\binachi\" $cdmaterials "models\weapons\binachi\" and the materials for the weapon are located at: materials/models/weapons/binachi/binachi.vmt materials/models/weapons/binachi/binachi.vtf
So that begs the question then if the model in question has a diffuse texture applied called binachi.tga, binachi.png or whichever other file extension you use. The vmt file name must match the diffuse texture that was applied.
How would I figure out if this is the case?
Well, you could open the .smd file with Notepad++, scroll down a bit and you'll see the texture name. If it's not the same, you can change it and then compile it again.
This is what's in my SMD file for my world model (it's got much more but basically repeats the same thing, no texture name) version 1 nodes 0 "mesh1" -1 end skeleton time 0 0 0.000000 0.000000 0.000000 1.570796 -0.000000 0.000000 end triangles noIcon.pic 0 -1.270911 18.050533 5.195350 0.938373 0.000081 -0.345625 0.194582 0.529128  0 -1.178929 18.651592 5.445223 0.938373 0.000081 -0.345625 0.177424 0.536260  0 -1.196897 18.514206 5.396407 0.938373 0.000081 -0.345625 0.181346 0.534867 
I think this is the texture name. Highlight it, press CTRL+F and replace every instance with the name of your material, save the file and then try recompiling it.
I tried this just now, same issue is still occurring. I've also tried it with 2 other models, exact same issue. I feel like I'm missing something like applying textures to the weapon in a modelling program or something, I can't find anything about it on the countless videos I've watched now though so idk where to go from here
Sorry, you need to Log In to post a reply to this thread.