Description
This coursework required a program to be written to draw a 3D scene (using OpenGL) showing a table, cup and coffee pot (although I did a teapot instead). The b/B and k keys can be used to turn the lights on and off (there are two of them) and animate the teapot. I ended up getting 100% for this.
I extended this by adding navigation (with mouse and keyboard), putting the table in a model of my student digs and adding quite a few keyboard commands to change the way things are displayed, and I added draws to the desk which can be pulled out (press d or D).
The teapot, cup, table and room are all modelled (by hand, by working out the coordinates) on real things. The models are stored in files in a reasonably simple format which is read in by the program. Textures are read from PNG files, although the code for that is very broken.
Screen Shots
Download
This is Free software, released under the terms of the GNU GPL.
- README — the only documentation, apart from the sparse comments in the code.
- SI31-cw1.tar.gz — all the source code, models and textures, and a GNU/Linux binary. Note that the program must be run from the directory containing the other files.