I didn't see a question thread so...
I have a model that is compiled and works except my texture doesn't show in source. It shows in blender meaning the texture isn't broken. I have a vtf and vmt for it.
QC:
[code]$modelname jbsucks.mdl
$cdmaterials "\models"
$scale 0.5
$surfaceprop metal
$staticprop
$body mybody "jbsucks.smd"
$sequence idle "jbsucks" fps 1
$collisionmodel "jbsucks.smd"[/code]
Texture VMT:
[code]VertexLitGeneric
{
$basetexture "Models\jbsucks"
$surfaceprop metal
$model" 1
}[/code]
It hasn't worked at all. I have had the materials in the seemingly right place (Gamedir/materials/models) and the model in the right place because I can load it in things like model viewer or gmod.
Are the textures ment to be in a certain location when compiling?(Using GUIStudioMDL)
Am I ment to have some boxes ticked in GUIStudioMDL?
Try changing QC:
[code]$cdmaterials "\models"[/code]
To:
[code]$cdmaterials "models/"[/code]
Not sure if that will help. It's just the way I use it when I compile so just in case.
Oh and also
[code]VertexLitGeneric[/code]
to:
[code]VertexlitGeneric[/code]
Tell me if that fixes.
Recompiled and it didn't change anything. I opened it with notpad++ (I know you're ment to use XVI32 but its quicker with notepad) and the part where it says the material directory is correct ( I think, "models/") and the vmt and vtf are in that location. Its to my understanding that materials don't need to be used in the compile process right? They can just be chucked in the directory in the end. Or do they need to be used in some way to compile?
For the QC, the model is looking for a directory where all the materials are located. For the vmt, the vmt is looking for the directory for the exact texture the vmt is providing.
So I assume you want the materials to be located in materials/models/jbsucks, so your qc should look like:
[code]
$modelname jbsucks.mdl
$cdmaterials "models\jbsucks\"
$scale 0.5
$surfaceprop metal
$staticprop
$body mybody "jbsucks.smd"
$sequence idle "jbsucks" fps 1
$collisionmodel "jbsucks.smd"
[/code]
and for the vmt, assuming your material/texture name is jbsucks.vtf, the vmt should be:
[code]
VertexLitGeneric
{
$basetexture "models/jbsucks/jbsucks"
$surfaceprop metal
$model" 1
}
[/code]
The vmt also has to be named jbsucks.vmt.
The reason why the vmt has 2 jbsucks is that the first one looks for the jbsucks folder, then the second one looks for the vtf named jbsucks.
Hope this helps.
Does the use of "/" or "\" change it at all?
[editline]16th May 2011[/editline]
[img]http://filesmelt.com/dl/Idontunderstand.png[/img]
This is pretty much everything I have, underlined is the important stuff.
I don't think it matters. I use "\" in my QCs and "/" in my VMTs.
Sorry, you need to Log In to post a reply to this thread.