Forum posts

Posted 18 years ago2006-09-19 04:08:45 UTC
in Model showing up with missing textures Post #196901
Yeah... the only problem is that it is pink and black in-game as well... :nervous:
Posted 18 years ago2006-09-19 00:00:51 UTC
in Model showing up with missing textures Post #196892
Hello!!

I read the tutorial on this website ( http://twhl.co.za/tutorial.php?id=92 ) named "source modelling setup" and followed the tutorial exactly. However I was modeling for Counter-Strike Source NOT HL2... so I substituted the "Half-Life/HL2" directories in the tutorial for "counter-strike source/cstrike". Well, my material (.tga file) compiled perfectly in the vtex.exe program. The directory for my .tga file is:

c:/program files/valve/steam/steamapps/myaccountname/sourcesdk_content/cstrike/materialsrc/models/light/light01.tga .

And the directory for my model is:

c:/program files/valve/steam/steamapps/myaccountname/sourcesdk_content/cstrike/modelsrc/models/light

So, I did the vtex.exe and it went OK. I have a .vtf file in the materials/models/light file in my cstriek directory. I made the .vmf (I am used to making these because I amke custom textures for my maps). This is how the .vmf reads:

"VertexLitGeneric"
{
"$baseTexture" "models/light/light01"
"$model" 1
}

Now, I made a .qc file and placed it in with my model in the modelsrc/models/light directory.

This is how my .qc file reads:

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

I coppied and pasted it off the tutorial but substituted the name of his file for mine "light". I only have 1 .smd file since I am not making a dynamic prop. I am making a static one. The .qc file compiled OK. But when I get into the modelviewer "hlmv" and open the model I did... it is pink and black. Instead of being textured with my texture. The model is there... but no texture :( Here is a screenshot of what it looks like:

http://img146.imageshack.us/img146/8923/jjjjjjjci0.jpg

When I was making the model/textures I put the .tga file in the same folder the tga is in now (when I vtex it) and the .smd is in the same folder I saved it to. Do you guys see anything that might be going on or that I am doing wrong?

Thanks for the help!

-KillerWorm