The code can be here are a ZIP file of the code. Under Linux, please copy all the .h/cpp files to your home directory, as well as simplescene.dat and the makefile. Under Windows, just load the question.sln into MS Visual Studio. Compile the code, and then run it by executing it with question.exe < simplescene.dat . Note that under Windows, it is important to have the scene file and the executable in the same directory.
The part of the code you must edit is in litscenecene.cpp, in the method calculateColour ("Your code here!"). You should experiment with changing the scene structure. Note that the sphere on the left has *only* specular colour. You should think about why it thus looks odd!
On no account may they be shown or in any way given to any person not on this course without permission from Anthony Steed.
They may be copied to your personal machine for use at home, without requiring permission.
On no account may any aspect of the software be used or modified for use for any commercial reason whatsoever.