Custom Materials in HL2

  • Thread starter Thread starter joolzhaines
  • Start date Start date
J

joolzhaines

Guest
Hi,

I am currently trying to create materials in Half Life 2, I have created them as I think is correct but when I view them in Hammer they show as purple checker pattern. Does anyone know whey this is. I have created the image as a TIF of a multiple of 2 and created the VTF and let the compliler create the TXT and I have also created a simple VTM pointing to the texture as instructed in the Valve SDK.

Thanks for you help

Joolz
 
Well, if you've created a vtm instead of a vmt then that wouldn't help.

I'm guessing that's not the problem though since without the vmt I don't think you'd get anything in Hammer.

What do you have in your vmt?
 
vmt may be pointing to the wrong location - purple checker is a placeholder texture that's used when Source cannot locate the original texture file.
 
Meterals

Hi,

Sorry I ment VMT, I have only used a simple VMT for testing ponting my directory in Steam that I have also created in the HL2 directory. Do you think it may be my VMT not finding my texture?



LightmappedGeneric
{
"$basetexture" "mytextures\mytexture"
}
 
Assuming your texture is called 'mytexture' and it's in your
Code:
...steam\steamapps\[username]\half-life2\hl2\materials\mytextures\
folder, that should work...

If not, try changing your vmt to....

Code:
"LightmappedGeneric"
{
	"$basetexture" "mytextures/mytexture"
}

I'm not sure whether or not the backslash with stop the engine finding the vtf.
 
GonzoBabbleshit said:
I'm not sure whether or not the backslash with stop the engine finding the vtf.

It will.

Backslash is an escape character. Stop using it.
 
Raeven0 said:
It will.

Backslash is an escape character. Stop using it.

Actually, I'm pretty sure it doesn't matter as far as filepaths are concerned.
 
Back
Top