Readme for Kevin's Museum
Description:
This project represents a nifty little museum featuring six impressionist paintings and a rotating centerpiece containing the rarest console game ever. There are six lights that operate independently of each other which can help illuminate the scene. The keyboard and mouse can be used to navigate inside of the room.
The six paintings on the walls were textures that I found off the internet. They are by some well known artists such as Van Gogh and Renoir. Each painting is made up of many rectangles in order to make the spotlights shining on them look okay. This detail is controlled by a global variable called resolution which can be modified. The higher the resolution, the smaller the quadrilaterals will be and the lighting will look more detailed. On my home computer which is faster than the ones here in the lab, I was able to set the resolution to 50, signifying a 50x50 grid of quadrilaterals, without too much loss in speed. However, on these lab computers, a resolution of 10 seems to be more fitting. The resolution also controls the quadrilateral count of the walls, the floor, the ceiling, and the carpet in the middle. The placement of all the objects should stay relatively in the same place regardless of what the resolution is set to.
Each of the six paintings is surrounded by a frame. Each side of the frame consists for four quads textured with a wood bitmap. The same four quads are used over and over, with scaling, rotation, and transformations to place them at their desired locations.
Each one of the six lights can be turned on and off independently. There are four spotlights on the ground, represented by little cylindrical shapes. These spotlights can also be toggled to oscillate back and forth, shining a spotlight pattern on the wall. Each light has a separate oscillating toggle. There is a central ceiling light that changes color randomly. It gradually changes over time, and this one can only be turned on or off. There is also a wall sconce on the far wall that is a user controlled positional light. It has 5 settings which are cycled through by using the keyboard. At the beginning, the light is off, but it can be changed to emit white light, red light, green light, or red light.
In the middle of the room there is a red carpet. This is just another texture map, except it has a higher specular reflection, so there's some shininess that comes off of it. At the end of the room, there is a table with another wood texture. There are four glutSolidSpheres used for the feet, four cylinders used for the legs, and a nice rectangle to represent the table top. On top of the table is a glass case with some transparency. Inside the glass case is a rotating plaque. On top of the plaque is a game for the t-box called Halo: Combat Resurrected. It's a very rare and sought after game by Christians and non-Christians alike :)
Controls:
1 - toggle ceiling light (the randomly changing one) on or off
2 - toggle the oscillation status of the front left spotlight
@ - toggle the front left spotlight on or off
3 - toggle the oscillation status of the front right spotlight
# - toggle the front right spotlight on or off
4 - toggle the oscillation status of the back left spotlight
$ - toggle the back left spotlight on or off
5 - toggle the oscillation status of the back right spotlight
% - toggle the back right spotlight on or off
6 - cycle through the possible states of the sconce on the back wall
arrow keys - move around the scene
hold a mouse key and move it around - rotate the camera around the scene
w - toggle wire frame mode
c - toggle cull back faces
M - increase the resolution of the scene
m - decrease the resolution of the scene
esc - exit the museum