STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
240
游戏中
1,502
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
Maniac-Squirrel 2017 年 1 月 23 日 下午 5:04
Model not finding textures
I have been trying to make a model for SFM, the model is basically a bodyhack of two other models found on sfmlab. Both the torso model and the main model came rigged and textured (when i textured them in blender they were also UV unwrapped). I have modified texture colours and resaved them as both vtf and as vtm with the same names as the textures i gave them in blender. I have managed to export the model with rigging and it is useable in sfm, the problem is that it is untextured and just shows up as pink and black squares. When the model is loaded into the source model viewer it says:

*** ERROR *** Model attempted to load one or more VMTs it can’t find.

I have placed the VTFs and VMTs i used into a folder under usermod\materials.
Here is the QC i made for the model

$Modelname Maniac/nwmercy/models/wmercy.mdl
$Body "Body" "main body.dmx"
$sequence "idle" "main body.dmx" FPS 1
$cdmaterials “usermod/materials/models/Maniac/nwmercy”

Any help would be appreciated. Thanks in advanced.
< >
正在显示第 1 - 10 条,共 10 条留言
Zappy 2017 年 1 月 23 日 下午 11:54 
It would probably be a good idea to load the model in the game you compiled it for and then checking the console, as that will tell you the name of the material it's trying to find but can't find. But going from the $CDMaterials line, you may just want to remove the "usermod/materials" part from the start of it.
Maniac-Squirrel 2017 年 1 月 24 日 上午 1:47 
I edited the $cdmaterials line so that it no longer includes usermod/materials. but that didnt seem to change anything at this stage

I also opened the model in sfm and looked in the console for which materials it can't find, the materials it is listing that it can't find are not the same names as the ones that i gave the models in blender.


It is listing the materials that the models had when i initially downloaded them from sfmlab. I tried copying the materials it believes are missing into the materials folder of my custom model. When i try and load that into sfm, it is invisible and i am unable to even view the wireframe of it. The console also give a new error which says that the model has no facial animation model.

Thank you for the help by the way
Maniac-Squirrel 2017 年 1 月 24 日 上午 3:02 
Ok turns out i had mistyped something in my QC file and thats why i was unable to see the model. The model is visible now and poseable but is still untextured and the console still says that it is looking for the textures the model initially had when it was downloaded.

if i copy all the textures it says that it is missing into the materials folder, the model stays untextured but in the console it does not say that it cant find the materials instead it just gives the no facial animation model error.
Zappy 2017 年 1 月 24 日 上午 6:04 
Would you mind rebooting Source FilmMaker, looking at the model in the model browser, and then copy-pasting the exact errors from the console to here?
Maniac-Squirrel 2017 年 1 月 24 日 下午 1:25 
These are the errors that appear in the console when i load the model


Binding uncached material "potterywheelpanelwireframe", artificially incrementing refcount
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/body_di" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/body_di" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/hair" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/hair" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/skin" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/skin" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/eyeball_r" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/eyeball_r" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/eyeball_l" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/eyeball_l" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/teeth" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/teeth" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/body" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/body" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/body_ch" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/body_ch" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/body_legs" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/body_legs" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/body_torso" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/body_torso" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/genitals_interior" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/genitals_interior" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "/models/maniac/nwmercy/usermod/materials/models/maniac/nwmercy/genitals_exterior" not found.
Maniac/nwmercy/models/nwmercy.mdl : material "usermod/materials/models/maniac/nwmercy/genitals_exterior" not found.
CAnimationSetEditor::CreateAnimationSetForModel: model has no facial animation model models/maniac/nwmercy/models/nwmercy.mdl [Maniac/nwmercy/models/nwmercy.mdl]
Unable to remove d:\games\steam\steamapps\common\sourcefilmmaker\game\.sfm_autosave.loc!
QtWarningMsg: QComboBox::setLineEdit: cannot set a 0 line edit
Failed to load models/!
Binding uncached material "potterywheelpanelwireframe", artificially incrementing refcount
CAnimationSetEditor::CreateAnimationSetForModel: model has no facial animation model models/maniac/nwmercy/models/nwmercy.mdl [Maniac/nwmercy/models/nwmercy.mdl]


that materials that it lists as unable to find, are not the names of the materials i gave it in blender. they are the names of the materials the parts of the model had before i chopped and changed them.
Im not sure if this would be any help but when i originally inported the model it was a smd, when i exported it i made it into a dmx.
Zappy 2017 年 1 月 24 日 下午 1:36 
Those errors imply you've haven't called the materials "body_di" (or "body_diffuse" or something), but rather "usermod/materials/models/maniac/nwmercy/body_di".

First of all, materials are loaded as -/SourceFilmmaker/game/[folder]/materials/[path]/[name].vmt, where [folder] refers to "usermod", "workshop", "tf", etcetera, [path] refers to all $CDMaterials lines posted, and [name] refers to the material name. This means you should not have "/" or "\" at the start of a $CDMaterials line, and a material name should only be the name of the material, not having the folder path in front of it, as $CDMaterials will take care of the folder paths.

In short, get rid of the "/" in front of "models" at the start of the $CDMaterials line, and get rid of "usermod/materials/models/maniac/nwmercy/" in all material names in Blender.
Maniac-Squirrel 2017 年 1 月 24 日 下午 2:34 
sorry about this but i am not really sure about what you meant by
" get rid of "usermod/materials/models/maniac/nwmercy/" in all material names in Blender."

from what i can tell the names of the textures do not have them at that start. in the usermod materials folder they do not have that in their names either.

I did however fix the $cdmaterials line the the qc and that had no effect.

initially i thought this problem was caused by me retexturing someone elses model but i created a simple cube with a simple texture and that is having the same problem aswell
Zappy 2017 年 1 月 24 日 下午 11:16 
引用自 Maniac-Squirrel
sorry about this but i am not really sure about what you meant by
" get rid of "usermod/materials/models/maniac/nwmercy/" in all material names in Blender."
As this is in the Blender Source Tools forum, I'm going to assume you're using Blender for this. So go to the materials tab of a mesh, remove "usermod/materials/models/maniac/nwmercy/", without quotes, from the names of all materials of that mesh, then select another mesh. Repeat this until you've done this with every material of every mesh.
(Or if "usermod/materials/models/maniac/nwmercy/" is not in front of the material names, you should look for the "Material Path" string in the Source Engine Export window, and then clear it out so it's blank, as the material path you can embed into DMX files is very buggy, with $CDMaterials being a much better alternative.)
Maniac-Squirrel 2017 年 1 月 25 日 上午 12:17 
I went and checked the materials tab and no materials had that line infront of the name, however in the material path i did have the path to the materials.
I removed that path and recompiled the QC.

The model is still untextured but instead of large pink and black squares the pink and black squares are very small.
there is no more missing textures error however. the only error that is shown in the console is that there are no facial animations, but the model still loads so that is not a problem.

when i load the model into half life model viewer it shows that my model is textured but it appears that i didnt use the correct textures (eg: there is a shiny ghost affect around the hair or the body looks a little washed out and matte) i can also fix this probably.

from what i can tell my problem appears to be fixed, i will just have to play around and make sure i get the textures the right way around.

Thank you for your help, i probably wouldnt have worked this out without your help
Maniac-Squirrel 2017 年 1 月 25 日 上午 12:25 
just to clarify i hadnt rescanned for the models in sfm, so now the sfm version is textured albeit horribly and with the wrong textures.
< >
正在显示第 1 - 10 条,共 10 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情
发帖日期: 2017 年 1 月 23 日 下午 5:04
回复数: 10