My extra objective on A4 was multithreading. These graphs show the rendering time, regarding the number of threads used.
New primitives were implemented: The cylinder and the cone.
The textures were found on the Internet and are acknowleged in the manual.
From the left to the right: image with only transparency, with only reflection and with both reflection and transparency.
The bump mapping was realized by using an heightmap.
Supersampling was implemented by throwing 9 rays by pixel instead of 1, and the pixel color is the average of the 9 colors.
image size | with BSP | time (min) |
---|---|---|
150x150 | no | 5.2 |
yes | 2.38 | |
250x250 | no | 14.5 |
yes | 6.33 | |
500x500 | yes | 23.5 |
Theses numbers are the time used to render the rabbit mesh (69666 triangles) with and without the BSP tree. The raytracer was launched on the gl09 computer with 6 threads.
The implementation of caustics with Photon mapping has been aborted.
It tooks 30 min to render the final scene on my personnal laptop, for a 2048x2048 pixels image, with supersampling and 4 threads.