STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
245
IN-GAME
1,717
ONLINE
Founded
8 November, 2013
All Discussions > Help > Topic Details
Graphics not being compiled to model
Hi All,

I'm trying to import a custom model for use in SFM and have so far managed to do it okay from Blender aside from textures. When I load up the model in SFM it just comes up with the usual Pink and Black checked squares.

I'm not sure if there's something wrong with my QC file or my VMT's but any help would be appreciated so I can gget the textures onto my model.

QC code:
$modelname "{name}/Carlito/carlito.mdl" $model "Carlito" "Collection.dmx" $cdmaterials "materials/models/{name}/Carlito" $sequence "idle" "Collection.dmx"

VMT code:
"VertexlitGeneric" { "$basetexture" "models/streetbackguy/Carlito/Flesh" }

Also I am using Crowbar to compile if that helps.

Any help appreciated!
Last edited by Streetbackguy; 4 Aug, 2020 @ 10:59am
Originally posted by Zappy:
Originally posted by Tomato Man:
- Do I need 5 materials as it keeps showing "unknown material" -
No, you don't need an extra VMT for it. The "unknowmaterial" thing might be due to one of the Blender objects not having any materials assigned, or something along those lines.

Originally posted by Tomato Man:
- and now it's missing the Shirt.vtf altogether somehow.
The console log shows that it can't find "materials/streetbackguy/carlito/shirt.vtf". Seeing as there's no "models" in that, my guess is that you forgot to specify "models/" at the start of $BaseTexture.
< >
Showing 1-8 of 8 comments
Zappy 4 Aug, 2020 @ 11:28am 
Originally posted by Tomato Man:
-
$cdmaterials "materials/models/{name}/Carlito"
-
"$basetexture" "models/streetbackguy/Carlito/Flesh"
-
$CDMaterials is relative to the "materials" folder, so you shouldn't have "materials" at the start of it. Additionally, the QC tells Source to look for VMTs in "materials/models/{name}/Carlito/", while the VMT says to look for a VTF within "models/streetbackguy/Carlito/", so if the VMT is in that same folder as the VTF, you should probably also change the "{name}" in $CDMaterials to "streetbackguy". Like this:
$cdmaterials "models/streetbackguy/Carlito"
Last edited by Zappy; 4 Aug, 2020 @ 11:28am
Streetbackguy 4 Aug, 2020 @ 11:37am 
Ah okay I see what you mean about the QC. I've now changed the QC to reflect that and recompiled to see if that helped but sadly it's the same thing, purple and black checked squares.

As for the VMT code, is there anything in there that looks wrong? I've looked over it quite a few times now and it seems okay. The only thing I can think of to change would be the "models/" portion taken out of the $basetexture command.

Zappy 4 Aug, 2020 @ 12:29pm 
Originally posted by Tomato Man:
- I've now changed the QC to reflect that and recompiled to see if that helped but sadly it's the same thing, purple and black checked squares. -
Please reboot Source Filmmaker, make a new session, click "Windows" > "Console" at the top-left of Source Filmmaker's main window, click on the "Clear" button to clear the console, open the model browser, select and place your model into the session, copy everything that's now in the console, and paste it here for me to see.

In addition to that, please also hold Shift and right-click the VMT file in File Explorer, choose "Copy as path", and paste that here for me to see as well.

Originally posted by Tomato Man:
- As for the VMT code, is there anything in there that looks wrong? -
It's very basic (most materials specify a little variety of options, such as $phong and $bumpmap), but not wrong at all (the many different options are not required or anything, just optional; a simple $basetexture-only material is perfectly valid).
Streetbackguy 4 Aug, 2020 @ 1:04pm 
Not a problem!

The model path is this:
"C:\Program Files (x86)\Steam\SteamApps\common\SourceFilmmaker\game\usermod\materials\models\streetbackguy\Carlito\Flesh.vmt"

The consolesays this:
Binding uncached material "potterywheelpanelwireframe", artificially incrementing refcount streetbackguy/Carlito/carlito.mdl : material "models/streetbackguy/carlito//usermod/materials/models/streetbackguy/carlito/shirt" not found. streetbackguy/Carlito/carlito.mdl : material "/usermod/materials/models/streetbackguy/carlito/shirt" not found. streetbackguy/Carlito/carlito.mdl : material "models/streetbackguy/carlito//usermod/materials/models/streetbackguy/carlito/unknownmaterial" not found. streetbackguy/Carlito/carlito.mdl : material "/usermod/materials/models/streetbackguy/carlito/unknownmaterial" not found. streetbackguy/Carlito/carlito.mdl : material "models/streetbackguy/carlito//usermod/materials/models/streetbackguy/carlito/pants" not found. streetbackguy/Carlito/carlito.mdl : material "/usermod/materials/models/streetbackguy/carlito/pants" not found. streetbackguy/Carlito/carlito.mdl : material "models/streetbackguy/carlito//usermod/materials/models/streetbackguy/carlito/flesh" not found. streetbackguy/Carlito/carlito.mdl : material "/usermod/materials/models/streetbackguy/carlito/flesh" not found. streetbackguy/Carlito/carlito.mdl : material "models/streetbackguy/carlito//usermod/materials/models/streetbackguy/carlito/hair" not found. streetbackguy/Carlito/carlito.mdl : material "/usermod/materials/models/streetbackguy/carlito/hair" not found. Failed to load models/! Failed to load models/! CAnimationSetEditor::CreateAnimationSetForModel: model has no facial animation model models/streetbackguy/carlito/carlito.mdl [streetbackguy/Carlito/carlito.mdl]

From the looks of it, it mostly seems like a model error.
Last edited by Streetbackguy; 4 Aug, 2020 @ 1:05pm
Zappy 4 Aug, 2020 @ 1:11pm 
Originally posted by Tomato Man:
Not a problem! The model path is this:
"-\game\usermod\materials\models\streetbackguy\Carlito\Flesh.vmt"
The consolesays this:
- streetbackguy/Carlito/carlito.mdl : material "models/streetbackguy/carlito/ /usermod/materials/models/streetbackguy/carlito/flesh" not found. -
Did you use the "material path" option within the Blender Source Tools plug-in when you exported the DMX? If so, that's not all too good. I suggest leaving that path empty, re-exporting the DMX file, and then just using $CDMaterials in the QC file to specify the path.
Last edited by Zappy; 4 Aug, 2020 @ 1:13pm
Streetbackguy 4 Aug, 2020 @ 1:17pm 
I did yes, I just tried clearing it and re-exporting but the model still not working. The console does say this now though:
Binding uncached material "potterywheelpanelwireframe", artificially incrementing refcount "materials/streetbackguy/carlito/shirt.vtf": can't be found on disk streetbackguy/Carlito/carlito.mdl : material "models/streetbackguy/carlito/unknownmaterial" not found. streetbackguy/Carlito/carlito.mdl : material "unknownmaterial" not found. "materials/streetbackguy/carlito/pants.vtf": can't be found on disk "materials/streetbackguy/carlito/flesh.vtf": can't be found on disk "materials/streetbackguy/carlito/hair.vtf": can't be found on disk Failed to load models/! CAnimationSetEditor::CreateAnimationSetForModel: model has no facial animation model models/streetbackguy/carlito/carlito.mdl [streetbackguy/Carlito/carlito.mdl]

Do I need 5 materials as it keeps showing "unknown material" even though this model only requires 4, and now it's missing the Shirt.vtf altogether somehow.
The author of this thread has indicated that this post answers the original topic.
Zappy 4 Aug, 2020 @ 1:23pm 
Originally posted by Tomato Man:
- Do I need 5 materials as it keeps showing "unknown material" -
No, you don't need an extra VMT for it. The "unknowmaterial" thing might be due to one of the Blender objects not having any materials assigned, or something along those lines.

Originally posted by Tomato Man:
- and now it's missing the Shirt.vtf altogether somehow.
The console log shows that it can't find "materials/streetbackguy/carlito/shirt.vtf". Seeing as there's no "models" in that, my guess is that you forgot to specify "models/" at the start of $BaseTexture.
Last edited by Zappy; 4 Aug, 2020 @ 1:23pm
Streetbackguy 4 Aug, 2020 @ 1:25pm 
The console log shows that it can't find "materials/streetbackguy/carlito/shirt.vtf". Seeing as there's no "models" in that, my guess is that you forgot to specify "models/" at the start of $BaseTexture.

Ah thank you, turns out that was the issue! Problem all fixed now, I appreciate the help. :Hajime_DGR:
< >
Showing 1-8 of 8 comments
Per page: 1530 50

All Discussions > Help > Topic Details
Date Posted: 4 Aug, 2020 @ 10:42am
Posts: 8