

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


This assigment involves implementing two acceleration structures to the ray tracer with the purpose of making it efficient in scenes with a large number of triangles. For all tasks the three builtin scenes 1, 2 and 3 that are built by the Triangles constructor must be rendered using miro (or your own derivative renderer). Note that if you use your own renderer then you must make sure that the cam- era, the image resolution, the shading, and the sampling (1 sample through the center of each pixel) matches the implementation in miro. For reference here are the number of ray-triangle tests for the three scenes unaccelerated at a low resolution of 16x12.
Scene Triangles Ray-triangle intersections 1 69451 13,334, 2 69451 13,334, 3 1389021 266,692,
All the (accelerated) images should be rendered at 640x480 with 1 sample per pixel. Percentages indicate percentage value for this assignment.
This assignment requires reporting on results. Send a PDF file or an ascii text file with the results, and send the source files (all .cpp, .h and makefile - not object files) as a packed .tar.gz file to [email protected] before the deadline.
Task 1: Implement and optimize a Bounding Box Hierarchy: 40 % This task can be divided into a set of smaller tasks:
one bounding box per triangle and then merging near bounding boxes. Alternatively, the hierarchy can be built by splitting the triangles and creating smaller bounding boxes in a top-down approach.
Task 2: Implement BSP tree acceleration: 60 % This task can be divided into a set of smaller tasks: