1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

SunSpreadAngle doesn't work?

  • Psyrius
  • September 7, 2015 at 9:40 PM
  • Psyrius
    • September 7, 2015 at 9:40 PM
    • #1

    In the Light_Enviroment, I've tried all kinds of different numbers for the SunSpreadAngle. And they always looks as sharp as they do on 0 or 1.

    The map I'm building is gonna have a cloudy setting, so this is crucial for me to fix. I've been trying the whole day now :(

    What could it be?

  • Radix
    • September 7, 2015 at 10:49 PM
    • #2

    I guess it's because of the dynamic shadows which are always 100% sharp.

    The static lightmap shadows should be affected by the settings, but you can't see it because the dynamic shadows superpose them.


    To make it look fine, you will have to reduce the dynamic shadows' alpha (shadow_control entity Edit: That's wrong). But I have to admit, that I myself am not able to make this work. Whatever settings I make, the dynamic shadows always look the same (too dark)...

  • Psyrius
    • September 8, 2015 at 8:17 AM
    • #3

    The funny thing is that I've gotten it to work a few times. I think I used light_directional also. But I'm not sure. And then I try to tweak it to look better, but the next time I compile, it's gone. And now I can't get it to work again.

    Anyway... does anyone know what settings I should use for this kind of scene? I could put the sun and light_enviroment at a -90 pitch. But then I won't get much shadows at all and since I'm trying to get inspiration from Sweden for this map, the sun is never at the zenith here. As you can see in the following picture, the shadows are sharp.

    [Blocked Image: http://i.imgur.com/dWhOtnI.jpg]

    This is the settings I use:

    [Blocked Image: http://i.imgur.com/dW3qd8l.png]

  • ElectroSheep
    • September 8, 2015 at 8:56 AM
    • #4

    The dynamic shadows will be sharp whatevere you use because you can't make them smooth or what, it's not how they work. But you can try without them, then test your spread angle with lightmapped shadow which are using the spread angle.

    use the env_cascade_lighting entity and put a very low distance (default is 400 I think)

    https://developer.valvesoftware.com/wiki/Env_cascade_lighting

  • leplubodeslapin
    • September 8, 2015 at 10:56 AM
    • #5

    As 3Dnj said, if i was you i'd also disable the dynamic cascaded shadows.
    You can maybe also kill the entity with a logic_auto that do this output at the beginning of each rounds :

    OnNewGame -> name_of_the_env_cascade_light -> kill

  • Psyrius
    • September 8, 2015 at 11:06 AM
    • #6
    Quote from 3Dnj

    The dynamic shadows will be sharp whatevere you use because you can't make them smooth or what, it's not how they work. But you can try without them, then test your spread angle with lightmapped shadow which are using the spread angle.

    use the env_cascade_lighting entity and put a very low distance (default is 400 I think)

    https://developer.valvesoftware.com/wiki/Env_cascade_lighting

    "then test your spread angle with lightmapped shadow" What do you mean with this and how can I test it?

    Quote from leplubodeslapin

    As 3Dnj said, if i was you i'd also disable the dynamic cascaded shadows.
    You can maybe also kill the entity with a logic_auto that do this output at the beginning of each rounds :

    OnNewGame -> name_of_the_env_cascade_light -> kill

    How do I disable the shadows? Is it "All Shadows Disabled" in the "Shadow_Control" entity?

  • leplubodeslapin
    • September 8, 2015 at 11:23 AM
    • #7

    I don't want to advertise my work or anything but i think it will be easier for you to understand.

    At this article : https://migrationtest.mapcore.org/articles/devel…s-part-two-r66/

    Read the part "Projected texture and Cascaded Shadows", you'll get some infos about cascaded shadows.


    As Raidix said before, cascaded shadows are superposing the static shadows, if you delete them you'll only get the static shadows (the one that use the lightmaps on your brushes). And as 3Dnj said, you'll be able to see the effect of the sun spread angle with these static shadows.

  • Psyrius
    • September 8, 2015 at 11:28 AM
    • #8

    Thanks :) Now I have some reading to do! Posting result later.

  • ElectroSheep
    • September 8, 2015 at 1:11 PM
    • #9

    The shadow control only affect shadows from dynamic object. Better use for indoors stuff so don't use that.

  • Psyrius
    • September 8, 2015 at 8:40 PM
    • #10

    Looks much better now. Thanks :)

    [Blocked Image: http://i.imgur.com/FoywDXq.jpg]

  • text_fish
    • September 8, 2015 at 8:48 PM
    • #11

    It would be interesting to see side-by-side comparison screenshots from exactly the same angle. At the moment I actually prefer the earlier version, because I think the cascade shadows improve the sense of scale, and greater contrast is always pleasing to the eye.

  • Psyrius
    • September 8, 2015 at 9:20 PM
    • #12
    Quote from text_fish

    It would be interesting to see side-by-side comparison screenshots from exactly the same angle. At the moment I actually prefer the earlier version, because I think the cascade shadows improve the sense of scale, and greater contrast is always pleasing to the eye.

    Since I'm going for a cloudy overcast setting, I think the sharp shadows look unnatural. So I'll keep it this way And the last picture I posted isn't my final result. More tweaking to make it look better will come soon :) I'm busy making my own skybox at the moment ^^

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Custom Gamemodes Contest

    Angel
    July 20, 2026 at 11:46 AM
  2. FAQ

    Angel
    July 20, 2026 at 10:14 AM
  3. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  4. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  5. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  6. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  7. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  8. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  9. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  10. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM

Users Viewing This Thread

  • 1 Guest
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™