Getting multiple textures to work on one weapon model

  • Thread starter Thread starter cold wolf
  • Start date Start date
C

cold wolf

Guest
I have the models ingame and it's great, except I can't figure out how Valve got multiple textures (eg arm texture + weapon texture) to work. I know that each one gets it's own .vmt and .vtf, but how do I tell Source which texture goes where?

In the qc you say? Nay, that didn't work. There's something I'm missing--somewhere in the ether of HL2 source files, there's one that says "this texture, which is found in the directory that the qc mentioned, goes on the same smd, along with this texture in the same directory". So where, exactly, do I make this explicit?

Thanks for any help!
 
In your 3D app you need to make sure you assign the correct ID to the mesh of the weapon and the mesh of the arms.

For example when your using max you use a multi sub object material, load your two materials into ID slot 1 and 2, set the weapon as ID number 1, and the arms as ID 2, and match the corresponding mesh ID to those. Then aslong as your $materials line in the .qc is pointing in the right place, source will automatically know which of your two textures goes where on the mesh.
 
Of course... in the 3d app! That did the trick, thank you extremely much dude! :cheers:
 
Back
Top