r/SourceEngine 11d ago

Resolved Why aren't my materials showing up?

Post image

I have this viewmodel that is basically a recreation of the v_hands viewmodel. The diagram shows the differences between Blender and HLMV/HLMV++/in-game and my frustration about this problem. I checked the materials and the .qc file but it's still a load of garbage. Thank you for helping me!

103 Upvotes

4 comments sorted by

23

u/PalmliX 11d ago

It's going to be one of the following:

  1. The name of the material in blender must match the filename of the .vmt
  2. The folder path of the .vmt must match what's listed in the .QC $cdmaterials line i.e. "$cdmaterials" "path_to_vmt"
  3. The folder path AND filename of the .vtf texture must match what's listed in the .vmt i.e. "$basetexture" "path_to_vtf\vtf_filename" etc.
  4. The vtf must be converted to a format that your particular source branch supports, i.e. DXT1/DXT5 etc. I've had issues for example with Source Filmmaker, where it didn't like a compression format I used (BGR888) and it displayed as a missing texture.

5

u/Maleficent_Risk_3159 11d ago

thanks! you saved the day!

2

u/Plaston_ 6d ago

also be carefull with the file version, some source games have issues with VMT 7.2+

1

u/Maleficent_Risk_3159 5d ago

didn't know that vmt had versions but i knew about the bsp and mdl versioning, thanks for the info!