This project is a part of the course TNCG15 Advanced Global Illumination and Rendering at Linköping University 2024. The project aimed to create a Monte Carlo ray tracer in C++ from scratch that simulates realistic global illumination featuring transparent, reflective, and Lambertian surfaces.
- CMake GUI
- VS 2022/2019
- Clone repo.
- Create a build directory within the project.
- Open CMake.
- Select the TNGC15-Global-Illumination directory as the source.
- Select the build directory created in step 2 as the build.
- Press Generate.
Done! Now you can open the solution created in the build directory (.sln file).
- CMake (Install via Homebrew:
brew install cmake
) - A C++ compiler (e.g., Clang, included with Xcode Command Line Tools)
-
Clone the Repository
-
Install Xcode Command Line Tools
If you don’t already have Xcode Command Line Tools installed, run:xcode-select --install
-
Create a Build Directory
Create a separate directory for the build files:mkdir build cd build
-
Run CMake to Configure the Project
Run the following command to configure the build system, specifying the parent directory as the source:cmake ..
-
Build the Project
Use CMake to compile the project:cmake --build .
or
make
-
Run the Executable
After the build completes, you’ll find the executable in thebuild
directory. Run it using:./Raytracing
That’s it! The ray tracer will run and generate the output based on the provided settings.