This is an assignment done for my Computer Graphics lab using C++ and OpenGL. The GL, GLU and GLUT libraries were used. The bedroom was designed using cubes, pyramids and one 2D polygon.
The features of the bedroom -
- Two point lights, one spotlight
- No textures, no curve
- A pendulum clock with a moving pendulum
- A rotating fan (can be turned on/off)
- Change eyepoint and lookat point using keys
To move Eye point:
- w: up
- s: down
- a: left
- d: right
- i: zoom in
- o: zoom out
To move Camera point:
-
j: up
-
n: down
-
b: left
-
m: right
-
l: move nearer
-
k: move far
-
q to move to default position (both eyepoint & lookat point)
-
f: to turn on/off fan
To control lights:
- 1: to turn on/off light one
- 2: to turn on/off light two
- 3: to turn on/off lamp
- 4: to turn on/off ambient light one
- 5: to turn on/off diffusion light one
- 6: to turn on/off specular light one
- 7: to turn on/off ambient light two
- 8: to turn on/off diffusion light two
- 9: to turn on/off specular light two
- e: to turn on/off ambient lamp light
- r: to turn on/off diffusion lamp light
- t: to turn on/off specular lamp light