Constantly Moving Directional Light Makes Shadows Flicker

MarsMiner
Sat, 15 Dec 2018 10:12:26 +0000
Rendering

Hi all,

I’ve just added the ‘Geographically Accurate Sun Position’ plugin to my project (it was added in 4.21) and I am trying to make the sun constantly move across the sky in a day night cycle. I setup code to update the time values in the Sun Position BP every tick. The sun moves perfectly and overall the shadows follow it, but looking closer the shadows are now constantly flickering, with lines of shadow moving across the landscape. Here is a picture:

These lines are constantly moving and flickering. I tried reducing the frequency that the sun position was updated, but it just made it flicker slower and also made the sun too jerky for my liking. What can I do to make the shadows move smoothly?

17 posts - 5 participants