How come my cubemaps won't work in TF2??

ShroudedSiege

L1: Registered
Oct 3, 2008
26
6
Well i know how to create custom cubemaps for my textures and such but if i try to use them in TF2 engine they seem to have no effect but in the HL2 engine they work great :blink:

I haven't changed anything in the .vmt file, i simply created the textures in the appropriate folders.

Here's my .vmt file:
"LightmappedGeneric"
{
"$basetexture" "project/tilebasetexture"
"$bumpmap" "project/tiletestbump"
"$envmap" "env_cubemap"
"$envmapcontrast" 1
"$envmapsaturation" 1
"$envmaptint" "[ .75 .75 .75]"
}



Like i said nothing has changed at all but it just won't work on the EP2 engine for some reason which is really annoying because i'm a mapper and 3D model artist and it's kinda made me hit a dead end until i can figure out what's wrong..

Thanks for your help :thumbup1:
 

MrAlBobo

L13: Stunning Member
Feb 20, 2008
1,059
219
heres a valve made texture affected by cubemaps that ive had sitting on my desktop for the longest time
"LightmappedGeneric"
{
"$baseTexture" "Tile/floor_tile_005a"
"$envmap" "env_cubemap"
"$envmapcontrast" 1
"$envmapsaturation" 1
"$envmaptint" "[ .75 .75 .75]"
"$normalmapalphaenvmapmask" 1
"$bumpmap" "Tile/floor_tile_004c_normal"
"%keywords" "tf"
}
you appear to lack the "$normalmapalphaenvmapmask" 1 whatever the hell that means...
 
Last edited:

TheDarkerSideofYourShadow

L10: Glamorous Member
Apr 12, 2008
792
286
I believe that line tells the engine that the specular map is an alpha layer of the normal map.

From my understanding, you can either put the specular map in the actual texture, or in the normal map. However, if you have a normal map, then it MUST be in the normal map. There are special lines to add depending on what you do (Al listed one there).
 

ShroudedSiege

L1: Registered
Oct 3, 2008
26
6
I have a normal/bump map and the alpha is added to that and saved with it. That is what i have been doing up until now and it worked for the EP1 engine...
 

Cerulean

L3: Member
Sep 12, 2008
112
60
fixed!

added "$normalmapalphaenvmapmask" 1

but the real problem was just weird (note the checkboxes, left one is the one that worked. Exported as 'compressed texture' from photoshop):

comparison.jpg


hl22008-10-0313-33-46-05.jpg
 
Last edited:

Zeewier

L9: Fashionable Member
Sep 20, 2008
619
262
Also make sure it's in the Alpha channel