Author: Frank Wang

Project #5 - Final Project - CSE 167

Student: Frank Wang

Comments

This Project is a landscape with an animated sunset. The original intent was to have
a project where the sun would rise and set on its own, and the user would be able to 
stop, start, accelerate or decelerate the movement of the sun and the changes to in 
color to the horizon. The grass was supposed to be a texture map of a grass bitmap,
there were going to be cloud texture maps, and so on. At night stars were supposed to come
out.
The sun rise and set are actually based on the user pressing the "m" key repeatedly to 
see the sun rise and set, or the user pressing "n" to make the sun rise or set counter 
to its normal direction, meaning the sun goes backwards. If the user is interested 
there is a wireframe mode, its mostly a vestigial organ left over from the other 
programming projects.
The project is run by downloading and running the executable. Make sure that the bitmap is 
located in the same folder as all other files.
Other than the cloud texture maps and the sun movement being controlled by the computer,
every other aspect of the project went essentially as planned.
The color changes of the horizon are implemented by creating a quadralateral and 
manipulating its color properties. I was interested in the coloring of the cubes in the 
"two cubes" project and I decided to find some way to put the change in colors to some
sort of artistic use. The color properties of the quadralateral are based on the location 
of the sun sphere. A parametric equation is used to plot out the course of the sun over 
each day, and the angle variable decides the colors of the background. The top of the back
ground is one color and the bottom another, based on some elementary observations made by
me while performing a google image search of "sunset" and "sunrise". The most tedious 
aspect of this project was getting the colors of the horizon to change smoothly while 
the sun moved. I spent about 20 hours trying to get the colors to change correctly and to
"look right". It took some trial and error and some creative thinking to get the
horizon to light up just a little before the sun was visible and to determine when the 
stars would come up. Stars took a while to set up, some would light up in the initial
frame and be dark from that point forward. The trees were implemented at the cost of my
CS130 project which I havent started yet. I'll probably hate myself for that part tomorrow.
Texture mapping of the grass took longer than I thought, mainly because I had two projects 
named "final project" and so the wrong project was opened. Overall this project took me 
about 30 hours.