Stationary lights and static shadows
so, i have a scene which i am using for a VR project. It contains some meshes, a landscape and foliage. I cant go full dynamic lighting since this kills the framerate completely. I cant go full static lighting since the foliage wont work correctly with it (all trees i got are much too dark then). So stationary lights for the rescue, to have dynamic lights where needed. The problem is, that for some meshes no static shadows are generated. The meshes are set to static, have "dynamic shadows" set to off and "static shadows" set to on.
Any idea? I already played around with various settings for days but couldnt find anything that works.
asked Jul 20 '16 at 10:19 AM in Rendering
Stationary lights, especially Direcitonal Stationary Lights, are a special breed that have the benefit of using both static and dynamic lighting depending on the actor's set mobility.
With that out of the way, stationary direcitonal lights are neither fully dynamic or fully static. What I mean by that is that is that since they use Cascaded Shadow Maps for their set dynamic shadow casting distance if you disable the dynamic lighting part of the light this does not automatically make it only a statically lit actor. The dynamic shadow casting distance will light everything within it's set distance dynamically. If an actor is set to use only static lighting it will not have any shadow casting until it is outside of the dynamic distance range. In case that was too confusing or I didn't explain it in the clearest form here is an example from a simple scene I set up.
Here is the setup for the Actors in this scene:
I set a low lightmap resolution of 32 for the Floor so that it is easier to see the transition from the higher quality dynamic shadowing to the low resolution bake of the lightmap.
I hope this helps.
answered Jul 20 '16 at 06:35 PM
Tim Hobson ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here