No baked shadows from stationary light?
Hi so up until now we've been working in a fully dynamic lighting environment for easier iteration time but now we're looking at moving to baked lighting for the sake of performance.
When I do a static lighting bake, everything is shadowed as expected. However when I bake stationary light the only way I get any actual shadows is from the cascade shadow maps. Gi is baked correctly but as far as I can see everything else is permanently lit and shadowed dynamically.
Looking at this, https://answers.unrealengine.com/questions/455554/stationary-lights-and-static-shadows.html I'm expecting results in line with the pillar on the left, but instead beyond the shadow cascade I get nothing. What could be going wrong here?
All of my meshes are set to static, and I have a static skylight and a stationary directional sunlight. I've just flipped all of my static meshes to stationary out of curiosity to see if that solved my problem but can provide screenshots after this build finishes if required.
asked Jan 06 '18 at 12:29 PM in Rendering
Found what was causing it - No matter what is set to contribute to it, far shadow distance needs to be set to zero for static shadow maps to be shown by a stationary lights on static objects. The part in the linked post "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." is what put me onto this. Of course because we used to be using full dynamic we had this distance set to non-zero and hence were getting non-default results from the setup.
answered Jan 06 '18 at 12:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here