STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
225
游戏中
1,623
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
Streetbackguy 2020 年 8 月 4 日 上午 10:42
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!
最后由 Streetbackguy 编辑于; 2020 年 8 月 4 日 上午 10:59
引用自 Zappy:
引用自 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.

引用自 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.
< >
正在显示第 1 - 8 条,共 8 条留言
Zappy 2020 年 8 月 4 日 上午 11:28 
引用自 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"
最后由 Zappy 编辑于; 2020 年 8 月 4 日 上午 11:28
Streetbackguy 2020 年 8 月 4 日 上午 11:37 
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 2020 年 8 月 4 日 下午 12:29 
引用自 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.

引用自 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 2020 年 8 月 4 日 下午 1:04 
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.
最后由 Streetbackguy 编辑于; 2020 年 8 月 4 日 下午 1:05
Zappy 2020 年 8 月 4 日 下午 1:11 
引用自 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.
最后由 Zappy 编辑于; 2020 年 8 月 4 日 下午 1:13
Streetbackguy 2020 年 8 月 4 日 下午 1:17 
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.
该讨论串的作者已表示此帖子解答了原先的主题。
Zappy 2020 年 8 月 4 日 下午 1:23 
引用自 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.

引用自 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.
最后由 Zappy 编辑于; 2020 年 8 月 4 日 下午 1:23
Streetbackguy 2020 年 8 月 4 日 下午 1:25 
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:
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情
发帖日期: 2020 年 8 月 4 日 上午 10:42
回复数: 8