OpenGL Demo Scene
Using openGL and GLUT I created a scene of a lounge room with various compilcated furnature (ie. not simple cubes and spheres). Operating system independent code was used so the program would compile on both Linux and Windows. The meshes in the scene were read in from an external file, allowing the scene to be changed by editing the file.
The first part of the project involved rending the scene in four different windows, each window having different requirements:
WINDOW 1:
A wire frame representation of the scene using a parallel orthographic projection.
WINDOW 2:
A flat shaded representation of the scene using hidden surface removal and an oblique projection.
WINDOW 3:
A continuous shade representation of the scene using hidden surface removal and a perspective projection.
WINDOW 4:
As above, but this time one object in your scene will be animated in such a way that it at least rotates on the spot, without being translated.
The second part of the project expanded off window 4 and added the following functionality:
- Allowing the user to toggle between full screen and a normal window.
- Allowing the user to move through the scene with keyboard input(arrow keys and other specified keys). The
following movements were included:
Forward
Backward
Rotate left
Rotate right
Pan left
Pan right
Rise up
Lower down - Allowing for articulated objects within the scene. The objects contain multiple limbs and can move those limbs separately. The objects can move either on the spot or along a line from one side of the screen to the other. The objects are displayed on screen using some basic geometric representation for each limb such as a series of cylinders, triangular prisms, etc. Denavit-Hartenberg notation was used for the articulated object.
Unfortunately the demo and source files have been lost bewteen updating computers. I may re-create this demo at a later date.