| Instructions 1) Download fish.zip 2) Unzip that in a same folder 3) Run final.exe Press 1, 2, or 3 to change the light's color. (1 is default white) Use arrow keys to change the view direction. |
| How I did it |
| The tank The glass is made with the gluCylinder function. To make it look "transparent," I specified the fourth parameter alpha for the color. The base and the cap are made with gluCylinder as well. |
| The light The lights are pretty much the same as the ones from P4. I just changed the specs in order to change colors and to make the third light "dimmer." |
| The fish The fish are made with ellipsoids and triangles (for the tails). I texture-mapped 2 different bmp's onto their bodies. Their basic movement is a spiral when going up and a vertical line when moving down. Once they hit bottom/top, they turn around to the other direction and change the nature of their movement. The yellow fish looks slower than the other because its sprial is "denser." Besides those translations, I added rotations in each of x, y, z directions to make them look like they're "floating" in water. |
| The bubbles The bubbles are basically a series of glutWireSpheres. Each bubble starts from the bottom, moves up until it hits the top lid, and repeats itself from the bottom again. I added some pseudo random values for the translation in x and z directions. |
| Go back for more pictures. |