env_sun Vanishes with Cubemaps

ParanoidDrone

L3: Member
Feb 19, 2009
147
11
Small problem with a no doubt simple answer.

I have an env_sun entity in my map that appears when I compile, no problem. When I build cubemaps, it vanishes. These are the commands I use:

sv_cheats 1
mat_specular 0
buildcubemaps
disconnect
mat_specular 1
mat_reloadallmaterials
map <mapname>

In that order. sv_cheats goes on when I'm already in the map, if it makes a difference. I also tried using mat_reloadallmaterials after reloading the map instead of before, but it didn't make a difference.
 

ParanoidDrone

L3: Member
Feb 19, 2009
147
11
So...use mat_reloadallmaterials twice? Or what? Because I already tried using it before loading up the map again and it didn't work.
 

Freyja

aa
Jul 31, 2009
2,994
5,813
You don't need to reload all materials. mat_specular # does that anyway.

Do;

sv_cheats 1
buildcubemaps
disconnect
<here you can either relauch tf2 and that works, or>
map arena_ravine (nice small map, loads fast, any map works though, except yours)
disconnect
mat_specular 1
map <your map>