Skip to content

A pathtracer written in C++ to continue my rendering journey.

Notifications You must be signed in to change notification settings

rachitkakkar/resurgence_renderer

Repository files navigation

RachitTracer

A pathtracer fully written in pure C++ and SDL

Status

MAJOR WORK IN PROGRESS

Example Render

About

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.

Getting Started

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 in bin, 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).
  • To clean, run: make clean

Credits

Much of the work here is based of Peter Shirley's amazing book: Raytracing in One Weekend

About

A pathtracer written in C++ to continue my rendering journey.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages