Final Project - CSE 167
Student: Shaun Haber
My texture-mapped room w/ posters and such...
 |
Introduction:
I decided to experiment with texture mapping for this final project.
I started by creating a basic room using GL_QUADS. I added a tile floor,
wooden walls, and a patterned ceiling. Also included are a couple tables,
colored lights, a door, and various posters on the walls.
Project Goals:
My main goal was to learn how texture mapping works in OpenGl, and to
implement it in this project. Almost every object in the room is texture
mapped by some bitmap graphic. All of the graphics were found on the internet
via Google's Images Search tool. (Google rocks!)
Program Controls:
Left/Right arrow keys - Rotate the view around the room
Up/Down arrow keys - Rotate the view up and down the room
'R' - Increase the rotate step size
'r' - Decrease the rotate step size
'S' - Shifts the images clockwise
's' - Shifts the images counterclockwise
'1' - Toggle on/off the Magenta light
'2' - Toggle on/off the White light
'3' - Toggle on/off the Green light
Left Mouse Click - Increase the amount of fog in the room
Right Mouse Click - Decrease the amount of fog in the room
Navigation:
Look around the room using the arrow keys! Hit 'R' to make the view rotate
faster. Hit 'r' to make the view rotate slower.
Posters:
There are 5 posters in the room. They are from initial leftmost to rightmost:
- Nemo (from Finding Nemo)
- Botticelli's Birth of Venus
- A Nightmare Before Christmas
- Caterpillar
- Psychedelic Fractal
The posters are moveable! Hit 's', and the posters will shift frames in the
counterclockwise directions. Hitting 'S' will send them back in a clockwise
direction.
Lights:
There are 3 lights in the room: a Magenta-colored light, a White light, and
a Green light. Hitting '1', '2', and '3' toggles these lights on and off
respectively.
Fog:
You can add fog to the room to give it more of a "rustic" look. Click the
left mouse button to increase the amount of fog. Click the right mouse button
to decrease the amount of fog.
Retrospective:
I would have liked to create objects that rested on the tables, and have them
be moveable from one table to the other via dragging the mouse. However, due
to time constraints (and unexpected bugs I had to fix), I was unable to
implement this feature. I, however, did succeed in using the mouse to control
the fog density.
Click here to download finalProject.zip
| The ceiling... |
 |
| With the red light on... |
 |
| Green light... |
 |
| Green light with fog! |
 |