annoying purple checkers

Joined
Feb 21, 2005
Messages
304
Reaction score
0
Hi, havn't been here for a while since I havn't hit any problems with editing models till now. I am doing something very simple, making an egg model. I have the vtf txture made and in the right directory, the model is compiled and in the right directory. I have checked my paths about 30 times and I even used mdltextureinfo.exe to make certain my paths are right which they are. However, my model's textures still arent showing up in mdlviewer. instead of course its the purple/black checkers. I tried to see if my .vtf texture is not up to par, but it is. i decompiled it to back to .tga and its fine. I have made a couple models before that worked, even a complex, hi poly jack o lantern wiht animations and a physics model. Is there som quirk or finer point about models I'm missing? Thanks.
 
BTW heres my qc file:

$modelname "egg/egg.mdl"
$cdmaterials "models/egg"
$scale 1
$body studio "egg.smd"

$sequence idle "idle1" loop fps 30 ACT_IDLE 1

$surfaceprop "watermelon"
//$surfaceprop "glass"

// $keyvalues { "prop_data" { "base" "glass.small" } }


$collisionmodel "egg_phys.smd" {
Mass in kilograms
$mass 0.08
$concave

}
 
I think it should be...
Code:
"VertexLitGeneric" { "$basetexture" "models/egg" }
instead of
Code:
"VertexLitGeneric" { "$basetexture" "models/egg/" }

there could be something else though
 
its probably
VertexLitGeneric {
$basetexture "models/egg/egg"
}

assuming ur egg.vtf is in the folder egg. If its not then the $cdmaterials is set wrong, since cdmaterials is the materials folder, not file.
 
well if he's put the textures in the directory "$cdmaterials" specifies, then it should be:

"$basetexture "models/egg"


and tells us which folder the textures are in
 
no, because thats assigning it to nothing, its just opening the egg folder with no vtf.
 
oh ye, of course....what was i thinking. i really did know that
 
I fixed the stupid thing. i forgot i had changed my .vtf to egg_shell.vtf. The problem was in the .vmt. Thanks for ur help guys
 
Back
Top