need assistance with evn_sun

Discussion in 'Mapping Questions & Discussion' started by Gigins, Dec 18, 2008.

  1. Gigins

    Gigins L1: Registered

    Messages:
    38
    Positive Ratings:
    0
    Hello!

    Once again I pledge for your assistance. I'm trying to put a sun effect in my map but apparently I cant get it to work. Can you please explain how exactly do I make the sun?

    Gigins
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    Have you read the VDC page on it? It's pretty thorough and should get you going, particularly the keyvalues section.
     
  3. Gigins

    Gigins L1: Registered

    Messages:
    38
    Positive Ratings:
    0
    I sure did. Kinda did it all like it's written there. Just don't know what am I doing wrong. xD
     
  4. Armadillo of Doom

    aa Armadillo of Doom Group Founder, Lover of Pie

    Messages:
    949
    Positive Ratings:
    614
    For starters, you'll have to be more specific. Is the sun not showing up at all, in the wrong place, too dark or what? When dealing w/ troublesome entities, posting your keyvalues and flags is a good idea as well.
     
  5. Gigins

    Gigins L1: Registered

    Messages:
    38
    Positive Ratings:
    0
    Ok, I put the evn_sun in the map, change it's color to yellow. When it didn't work, I played around with pitch and size. env_sun doesn't do/show anything. I think I'm just missing something. Sorry for my ignorance about this.
     
  6. Armadillo of Doom

    aa Armadillo of Doom Group Founder, Lover of Pie

    Messages:
    949
    Positive Ratings:
    614
    Silly question, but you do have a proper light_environment, yes? And I mean changing the skybox texture in the map properties of Hammer as well. Make sure your pitch is between -90 and 0. To get the light really shining down on the map, I usually set it to -45. Pitch and Yaw settings should be the same for both entities. And if that doesn't work, some pics would be nice.
     
  7. Gigins

    Gigins L1: Registered

    Messages:
    38
    Positive Ratings:
    0
    Ok, I do have light_environment and skybox set to sky_hydro_01. Pitch in both entities is -85, I need it so high because of the map structure. It doesn't do anything at all, the sky is clear as it is without the evn_sun. Maybe you could post a screeshot of how it should look?
     
  8. Shaar

    Shaar L3: Junior Member<BR>toboruin

    Messages:
    231
    Positive Ratings:
    103
    when compiling the map, what are the settings your compiling it with?

    if you compile it with VIS and RAD off, you aren't gonna get any shadows, and therefore, your not gonna see the effect of the sun. you need to run VIS and RAD on fast if you wanna see the sort of effect you'd get.
     
  9. Gigins

    Gigins L1: Registered

    Messages:
    38
    Positive Ratings:
    0
    I'm compiling with full VIS and RAD when testing lightning. Really, I'm probably missing something simple as always. xD
     
  10. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
  11. Gigins

    Gigins L1: Registered

    Messages:
    38
    Positive Ratings:
    0
    It's just clear sky, like the env_sun wouldn't be there. here are the screenies, I took them from different angles.
    [​IMG]
    [​IMG]
    [​IMG]

    Maybe someone could just post a step-by-step instruction. I know I'm asking much, bet I looks like I'm not getting this to work on my own. xD
     
  12. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,744
    post all the keyvalues from your env_sun as well as all the flags you've got checked
     
  13. Gadget

    aa Gadget

    Messages:
    502
    Positive Ratings:
    417
    here's what you need for the env_sun:

    Pitch Yaw Roll (Y Z X): 0 xx 0 (where xx is the angle of your light_env)
    UseAngles: Yes
    Pitch: same pitch as your light_env (has to be negative)
    Sun Color: 254 226 186 (default from badwater)
    Overlay Color: 0 0 0 (default from badwater)
    Size: 16
    Overlay Size: -1
    Material Name: sprites/light_glow02_add_noz
    Overlay Material Name: sprites/light_glow02_add_noz
    HDR color scale: 1.0

    env_sun has got no flags to check.

    An additional suggestion: use the sky_tf2_04 so you can see the sun easier
     
  14. Gigins

    Gigins L1: Registered

    Messages:
    38
    Positive Ratings:
    0
    Yea thanks it worked now. But also made a problem. Now everything reflecting on the map is totally white, even things inside the buildings, although they have their own cubemaps. xD
     
  15. Gadget

    aa Gadget

    Messages:
    502
    Positive Ratings:
    417
    Do you have an env_tonemap_controller plus logic_auto that sets the properties for it?

    Did you build the cubemaps correctly?

    mat_specular 0
    buildcubemaps
    mat_hdr_level 0
    map yourmap
    buildcubemaps
    mat_hdr_level 2
    mat_specular 1
    map yourmap
     
    Last edited: Dec 22, 2008
  16. Gigins

    Gigins L1: Registered

    Messages:
    38
    Positive Ratings:
    0
    No I don't. :p