Day - Night Cycle Simulator is a simple program that emulates sky lighting, and weather through a continuous 24-hour period. The simulator displays a forest scene in which the user can move around using the mouse and keyboard, and can observe the colors change in the sky as the sun rises and sets. Additionally, as the suns position in the sky changes, the color of the light changes in order to further emulate atmospheric light scattering. Lastly, if the user presses 'X', they will notice a gust of wind comes through and sways the trees side to side, until the wind settles out. This project expanded on gradient shading, real-time shading, phong illumination, model transformation, hierarchical modeling, the use of material properties, and animation over time.
My goal with this project was to create a realistic sky scene, with some ground elements to further enhance the light coming from the sun.
Lighting is done using the Phong Bi-Directional Lighting Model, and takes advantage of material properties to give the trees and the sun their reflectance.
Sunrise on the map.
Later in the morning. Note the change in sky, and sun colors.
Just before noon.
Late afternoon.
Sunset.
The sun has set and the moon is rising.
Note the bluish tint that the moon casts over the trees.
The moon is setting, and the sun is beginning to light the scene just before it peaks over the horizon.
Given more time to devote to this project, there were other features I would have implemented, and plan to do so in the future: