env_sun Vanishes with Cubemaps

Discussion in 'Mapping Questions & Discussion' started by ParanoidDrone, Apr 3, 2010.

  1. ParanoidDrone

    ParanoidDrone L3: Member

    Messages:
    147
    Positive Ratings:
    10
    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.
     
  2. Cynick

    Cynick L4: Comfortable Member

    Messages:
    153
    Positive Ratings:
    144
    It's a bug, I've run into it as well. Do mat_reloadallmaterials; map <mapname> again and it should work. If not, restart TF2.
     
  3. ParanoidDrone

    ParanoidDrone L3: Member

    Messages:
    147
    Positive Ratings:
    10
    So...use mat_reloadallmaterials twice? Or what? Because I already tried using it before loading up the map again and it didn't work.
     
  4. Cynick

    Cynick L4: Comfortable Member

    Messages:
    153
    Positive Ratings:
    144
    Yeah sometimes I have to reload the map/reload materials up to twice before it shows up.

    Or just restart tf2.
     
  5. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,818
    Positive Ratings:
    4,660
    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>
     
    • Thanks Thanks x 1