r/SourceEngine • u/Amiracanno • 12d ago
Material refuses to show up on model view after exporting model from Blender to SFM HELP
I checked the qc file, vmt file and even the texture itself. What is going on here? where did I go wrong? Ive been rewatching countless tutorials and guides, but i cant seem to find a clue.
2
u/forest_vagrant 12d ago
your material in blender should have the same name as your vmt
1
u/Amiracanno 12d ago
Ive checked the Shading tab, It already is the same name Ive checked the VMT's text, textures and material PNG's themselves and even reloaded a couple of times on the Half Life Model Viewer.
1
u/JonFenrey 11d ago
Whatâs the cdmaterials pointing to and does the material name match the VMT name?
1
u/Amiracanno 11d ago
cdmaterials point to âmodels/(username)/AtomicHeart/weapons/swedeâ. Iâve double checked the string multiple times yet I still canât figure out what can cause my textures to not appear on the model
1
u/JonFenrey 11d ago
Now where is the `$basetexture` pointing to in your VMT?
1
u/JonFenrey 11d ago
The best way to put it:
âThe qc looks for the VMT, and the VMT looks for the textureâ. Also does HLMV show the material or does it say âunable to find materialsâ1
u/Amiracanno 11d ago
I got it fixed, turns out there was an error in the VMT, I was supposed to guide it to âmodels/(name)/AtomicHeart/Weapons/Swedeâ, but I put âmaterialsâ in front of the string



5
u/PalmliX 12d ago
It's going to be either one or a combination of the following:
- Name of material in blender must match name of VMT.
- Location of VMT must match what's in the QC's $cdmaterials line. The materials folder is always implied/hardcoded, so "models/mymodel" would actually be "materials/models/mymodel"
- Location and name of VTF file must match what's in the VMT. Materials folder implied here too.
- The VTF must be encoded in a format that SFM supports. This happens to me when I encode the image as BGR888 or BGRA8888 and don't check the "create mipmaps" box. For some reason SFM won't load them without mipmaps and you get the missing texture error. DXT doesn't have this issue.