MAJOR WORK IN PROGRESS
This project is a fully featured pathtracer based of the book Raytracing in One Weekend. It originally started as an improvement to a python raytracing library I made a long time ago in middle school (called resurgence_renderer
). The code for this older version can be found in the Version 1
directory.
The only requirement is g++ (or another C++ compiler) and SDL2 (with SDL_image). Because of my choice of language and libraries, it is decently portable.
Steps tested on MacOS
- Clone the repository to your desired directory.
- To compile, run:
make
- To run the program, use the
RachitTracer
executable inbin
, passing in an argument for the output file path:- Example:
./bin/RachitTracer render.png
- An image of the render will be written to the specified file and displayed on an SDL window (for easy viewing).
- Example:
- To clean, run:
make clean
Much of the work here is based of Peter Shirley's amazing book: Raytracing in One Weekend