Sinusoidal Day-Night System
This was an interesting commission, and involved overcoming game engine boundaries to create something that mimics reality.
Affiliated With
Lyria
Headline
Game Architecture
Date
March 4, 2021
Challenge
I was tasked with creating a realistic day-night system that had a customisable sun, moon and aesthetics that could be aggregated and integrated into a more complete region system.
Solution
I used sinusoidal waves and constant frame by frame adjustments to the output values of a module, to allow for user integrations and smoothly transition between day and night. The two waves each peaked at the peaks of day or night respectively, and due to their sinusoidal nature, it gave a really natural blending effect mimicing sunrise and sunset.
Here’s a link to a place where you can see the day-night system itself, and here’s a link to the game where it’s being used.