Source Filmmaker

Source Filmmaker

How Valve Materials Work
65
   
Award
Favorite
Favorited
Unfavorite
Download
"This picture show how valve materials work.

1) Mesh is assigned to materials in a 3d Editor,
2) Material Names are written into the model from the 3d Editor used when the model is exported.
3) These material names must be used as your VMT names (if material over rides are not used)
4) When the model is compiled, the material path is written into the model by the qc.
5) If you have Texturegroups, the first texture in the group must be that material written into the model from the 3d Editor.
6) The names in the texture group for the next skins must be in the same order as the textures listed in the first group. These names are the names your VMTs must be named.
7) Paths and names for textures he model uses are written into the VMT (basetexture, bump/normalmaps, phongtexture, etc)
8) When the model is loaded into game, the model calls the materials (VMTs) from the paths based on what was written into the model by the 3dEditor and the QC, the VMTs call the Textures (VTFs) based on what was writtten in the VMTs.

"
7 Comments
AlphaGoji 8 Dec, 2023 @ 7:14pm 
I'm working on a Ninjala OC to Garry's Mod and I'm having issues with importing the VMTs. Any tips?
g9f605 26 May, 2021 @ 7:07pm 
:steamthumbsup:
Pte Jack  [author] 26 May, 2021 @ 6:47pm 
Glad you're finding it useful...
g9f605 26 May, 2021 @ 6:44pm 
This helps a lot though.
Pte Jack  [author] 26 May, 2021 @ 6:28pm 
Is it too confusing, if Yes, thank Valve for that! LOL
g9f605 26 May, 2021 @ 6:23pm 
How many times have I come back to stare at this?? O.O

Thanks!
Crashsune 1 Oct, 2018 @ 6:33pm 
seeing all this in one place is *very* helpful, thanks!