Hi all,
In my scene I have 1 Directional Light and 1 Spot Light.The directional light seems to be lighting the terrain and actors correctly. The spot light on the other hand is showing correctly whilst placing, but after baking is only illuminating the actors, not the terrain. Any ideas where to start looking? I’ve tried setting the spot light to static or stationary and have also tried point light which give the same results.
Whilst placing…
After Baking…
Kind regards,
Matt.
Hey fallingbrickwork,
I am not able to reproduce the issue you are reporting. Can you reproduce this in a new blank project using minimal content?
Spot and Point Light
I tested using in a new blank project, created new landscape, deleted the Directional light and the Sky Sphere, added a spot and point light, and then rebuilt my lighting.
Let me know if you have further questions or need additional assistance.
Cheers,
Hi Andrew,
Thank you for taking the time to reply.
I still have the Directional Light in my scene (using it to simulate moon light), and this is set to cast shadows/stationary.
Is there a limit to how many static/stationary shadow casting lights you can have in a scene?
I’m running more test cases now to try and get a better *understanding of how the lighting works (it could well be ‘operator’ error).
Only 4 or fewer overlapping stationary lights can have static shadowing, because the lights must be assigned to different channels of a shadowmap texture. This is a graph coloring problem, so there are often fewer than 4 overlapping allowed due to topology. Shadowing cannot affect the overlap test, so the sunlight typically requires a channel from the entire level it is in, even the underground areas.
Once the channel limit is reached, additional stationary lights will use whole scene dynamic shadows at a severe performance cost. The StationaryLightOverlap view mode can be used to visualize the overlap, which is updated dynamically as you modify the lights. Light icons are changed to a red X when they are not able to allocate a channel.
Cheers,
Thanks again for replying.
I understand the implications you are stating. With regards to my issue, I’m not seeing any red X on the lights, i.e there extents are not overlapping. These lights are illuminating meshes fine, just not the terrain. If you look at my images in the first post you will see there are no overlapping lights, that is the only spotlight in the scene (combined with the directional light, that’s only 2 lights in total)
Well as I mentioned in my initial post, if you cannot recreate this issue in a new blank project using a simple test case, then the issue must lie within your set up or project settings. Are there any settings on your landscape actor which are not allowing static lighting?
Thanks,
H.