hl2 modeling error (pink and black) Created 17 years ago2007-09-04 16:51:47 UTC by jackdaniels666 jackdaniels666

Created 17 years ago2007-09-04 16:51:47 UTC by jackdaniels666 jackdaniels666

Posted 17 years ago2007-09-04 16:51:47 UTC Post #233485
Ok, I created a model in maya, assigned it a texture and did everything it says on the tutorial on this site. But when I open it in valve hammer editor or hlmv the model just looks pink and black. please help

vmt:
"VertexLitGeneric"
{
"$baseTexture" "models/work/work_tex"
"$model" 1
}

qc:

$modelname work/work.mdl
$cdmaterials models/work
$staticprop
$scale 1.0
$body studio "work_ref.smd"
$sequence idle "work_ref.smd" fps 1
$collisionmodel "work_ref.smd" {
$Mass 20
}

:cry:
Posted 17 years ago2007-09-04 19:36:04 UTC Post #233495
Your code looks okay to me. Make sure you have both the .VMT and .VTF in the materials/models/work folder, and be sure that they're in both the source_SDKContent and Half-Life 2 (or whatever mod) folders. The texture can't be just in the SDK folders for it to appear in-game. Other than that.. I don't see a problem. If it turns out that that isn't the case, then you can send me the files and I'll see if I can't get them to work. :)

And just to let you know; because the .QC uses the $staticprop line, you don't need to specify a weight in the $collisionmodel line. :)
You must be logged in to post a response.