Alter skybox wrapping?

Discussion in 'Mapping Questions & Discussion' started by sevin, Feb 3, 2015.

  1. sevin

    aa sevin

    Messages:
    959
    Positive Ratings:
    661
    I'm working on lighting right now for a map I finally started, and I want the environment lighting to come from a particular direction. Besides altering the actual pitch and direction in the light_environment entity, it also needs to match up with the sun in the skybox. The way I've figured, the sun needs to be in the first 1/3 of the texture, but most TF2 skyboxes are in the middle or the last 1/3. Is there a way of rotating it in Hammer to match up the sun with the lighting without altering the actual texture?
     
  2. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    no. You'll have to alter the texture if you want to do anything other than full 90 degree rotations
     
  3. sevin

    aa sevin

    Messages:
    959
    Positive Ratings:
    661
    Huh, seems like that'd be a simple enough thing to add and it would be immensely useful for making the lighting in your map more unique.
     
  4. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,215
    Valve couldn't even be bothered to rotate Barnblitz to come close to lining up with the visible light source in it. You're already putting more thought into this than they did.
     
  5. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,834
    Positive Ratings:
    4,753
    Rotate your map in an instance perhaps?

    You could also make a fake skybox cube and arbitrarily rotate that.
     
    Last edited: Feb 4, 2015
  6. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    748
    And before you think its inefficient and a poor thing to do. rd_asteroid does the same thing for the black background which still allows light through it. That same trick can work for such skybox but its very likely the texture would move with the player.
    If you do this then your skybox probably would have to be at a 64 scale instead of 16. And this could making the 3d skybox a bit anoying without instances.