Home Technical Talk

TF2 Hat material issue

Hello,

I am having a problem with the material of a hat I made for TF2. It looks fine in the MAX viewport, but when I try it in-game it looks like if it had self ilumination or a very flat colour without any specular or shadows.

Here is the result using a flat colour:
t9efe8.jpg

And this is the VMT file(but pointing to my texture):

"VertexlitGeneric"
{

"$baseTexture" "YOUR FILE PATH" // Example below
// "$baseTexture" "models/player/items/demo/0x01ccc7ea/baseballcap/baseballcap_color"

"$phong" "1"
"$phongexponent" "10"
"$phongboost" "5"
"$lightwarptexture" "models/player/pyro/pyro_lightwarp"
"$phongfresnelranges" "[0.007 0.4 5]"
"$halflambert" "1"

// Rim lighting parameters
"$rimlight" "1" // To enable rim lighting (requires phong)
"$rimlightexponent" "4" // Exponent for phong component of rim lighting
"$rimlightboost" "2" // Boost for ambient cube component of rim lighting
}

I took it from here http://forums.steampowered.com/forums/showthread.php?p=28975606

Any idea of how to fix this?
Is the first time I make something for TF2 so I am not very familiar with it.

Thanks!

Replies

Sign In or Register to comment.