README for web-based renderer Steven Matuszek matuszek@cs.unc.edu December 2000 ------ This code is almost completely uncommented. It should all compile, though. Here's how to run the server: java ThreadServer width height It will output index.html. Open index.html with your appletviewer(s) or browser(s) to run the client applets. Click in the applet to start it going. It will display the current scanline that it is rendering. When the rendering is done, the server will output a file to results/nnnnn (where nnnnn is the port number it ran on), then exit. To view the results, you can use DisplayResults: java DisplayResults width height filename This is a very quick and dirty application, and it only draws once (no buffering) so don't hide it. The file is an array of Scanline objects. ------ The thread management in this program is a little odd. There are a lot of thread collisions over the distributed work, and a lot of threads that die for no apparent reason. But since the work distribution and collection protocol is robust and idempotent, the correct results are always achieved anyway!