no shadows

Discussion in 'Mapping Questions & Discussion' started by DrSquishy, Jul 28, 2017.

  1. DrSquishy

    DrSquishy L9: Fashionable Member

    Messages:
    677
    Positive Ratings:
    221
    In my map, shadows only work for 1 of the props. The other props as well as all my brushes don't have shadows...
    any help?
     
  2. red3pit

    red3pit L6: Sharp Member

    Messages:
    260
    Positive Ratings:
    291
    Isn't your map fullbright? Have you placed light_environment?
     
  3. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    243
    Positive Ratings:
    60
    Shadows appear even without any lighting in the map as long as they're set to Medium/High in Video settings. Perhaps what OP needs is the shadow_control entity to modify the shadows' origin.
     
  4. DrSquishy

    DrSquishy L9: Fashionable Member

    Messages:
    677
    Positive Ratings:
    221
  5. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    243
    Positive Ratings:
    60
    Keep in mind that, for some reason, the negative pitch from the light_environment entity must be a positive one in shadow_control's angles. E.g:

    light_environment - Angles: 0 109 0 | Pitch: -35
    shadow_control - Angles: 35 109 0


    EDIT: even if a map doesn't have a light_environment entity, shadow_control's Pitch angle must be Positive so the shadows will be drawn properly, and not "up".
     
  6. DrSquishy

    DrSquishy L9: Fashionable Member

    Messages:
    677
    Positive Ratings:
    221
    well that's dodgy. Thanks
     
  7. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    Also, it looks like you've placed your props as prop_dynamic instead of prop_static. That should be reserved for props that you actually intend to move, or disappear, or otherwise do something during the round.
     
  8. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    Generally you don't want to copy the pitch from the light environment. Instead you want shadows to point down as long stretched dynamic shadows are kinda bad.
     
  9. DrSquishy

    DrSquishy L9: Fashionable Member

    Messages:
    677
    Positive Ratings:
    221
    I have no idea what angle to do though
    What kind of pitch yaw roll would you recommend? I want it to sort of match up with the light
     
  10. DrSquishy

    DrSquishy L9: Fashionable Member

    Messages:
    677
    Positive Ratings:
    221
    I have my entities set to prop_dynamic as default because some aren't supported as static and I CBA to individually check and change
     
  11. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    Terrible idea. If you are using props that HAVE to be dynamic you are likely doing it wrong already. You can easily check which one (static/dynamic) to see while you are still selecting the mode. Just click on the "info" tab in the model browser.
     
  12. DrSquishy

    DrSquishy L9: Fashionable Member

    Messages:
    677
    Positive Ratings:
    221
    I know. the model tab is slightly awkward to navigate though. Would you recommend props being set to prop_static by default?
     
  13. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,006
    Positive Ratings:
    1,160
    And I'll explain why it's a terrible idea: dynamic props count towards the entity limit and are more expensive than static props. Also, their shadows stick out like a sore thumb. I would recommend making prop_static the default.

    Edit: here's a reference of TF2 skies and the sun pitches they normally use https://developer.valvesoftware.com/wiki/Team_Fortress_2_Sky_List
     
  14. DrSquishy

    DrSquishy L9: Fashionable Member

    Messages:
    677
    Positive Ratings:
    221
    damn. I only changed it to prop_dynamic over static because a few models were disappearing and none were after it went to dynamic. However, I have recently noticed the huge improvements when using staticproppolys and the commands related to those. Thanks for the advice
     
  15. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    The only stock props that should have to be dynamic are ones with animations (the grandfather clock, the Powerhouse turbines) and players, weapons, and cosmetic items.
     
  16. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    243
    Positive Ratings:
    60
    As I mentioned before, you may set it to use your light_environment's angles but inverting the Pitch
    (e.g: light_environment: -65 219 0 → shadow_control: 65 219 0)
     
  17. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    And as I said before, using the suns' angle for dynamic shadows usually looks terrible.
     
  18. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    243
    Positive Ratings:
    60
    If you're talking about the case of a shadow being projected "from below", that's because you're not inverting the Pitch.
     
  19. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    No, I'm saying that using the same pitch just straight up doesn't look good. It's better if the dynamic shadows point more downwards than normal shadows are, for example a pitch of 75 when the sun is 50.
     
  20. DrSquishy

    DrSquishy L9: Fashionable Member

    Messages:
    677
    Positive Ratings:
    221
    thanks