Unreal SunSky BP flickers due to math error

RonanMahonArt
Wed, 29 Jul 2020 14:07:18 +0000
Rendering

I was seeing pops/flickers when using the SunSky BP and driving the Solar Time through keyframes in Sequencer. I noticed there seemed to be some math error which affected the rotation of the directional light when the float from the sequencer keyframes neared whole numbers

I’m not super mathmatical to understand was wrong but the issue seems to be in converting solar time to hours minutes and seconds. Any small issues in the resulting elevation caused a pop in the directional light rotation. I fixed the pops by removing the +0.5 at the end of the “Get HMS from Solar time function”

4 posts - 1 participant