Peek the museum through a glass egg!

Release Time and Deadline

Release Time: October 17, 11:59 PM

Submission Deadline: November 7, 11:59 PM

1. Download the Code and Unit Test Data

You can download the complete code and test images as a zip file from the following link:

Assignment2.zip

This zip file contains all the source code required to implement the image ray tracing algorithm, along with example images for testing.

2. How to Compile and Run the Code

2.1 Compiling the Code

Follow these steps to compile the code:

  1. Navigate to the assignment folder:
  2. cd /path_to/Assignment2

  3. Create a build directory:
  4. mkdir build

  5. Navigate to the build directory:
  6. cd build

  7. Generate build files using CMake:
  8. cmake ..

  9. Compile the code:
  10. make

Once the code is compiled, you will have an executable named Assignment2 in the build directory .

2.2 Running the ray tracing program

To run the image ray tracing program, use the following command:

cd Bin

./Assignment2 --in "path to test.point.ray" –-out "path to output image file"

3. File Breakdown

Below is a brief description. Don't try to start by understanding all the files. Only try to understand the functions you neede would be enough. We provide you a bunch of files, but some of them are for reference. You should be mainly be working with changing the following files. Feel free to add helper functions as you see needed.

5. Expected Submission

When you complete the assignment, your submission should be a zip file containing the following:

7. References

If you need more information about the image ray tracing algorithm, please refer to the lecture slides.

6. Policy

*You are not allowed to distribute your solution to this homework either online or to other students without permission.