Skip to content
A path tracing renderer with a Qt GUI
C++ Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Source
.gitignore
README.md
install.sh
screenshot.png

README.md

Path Tracer

https://georgeloines.com/projects/path-tracer

This application implements a pathtracer that renders a cornell box with a shadowed area light, reflections and indirect lighting. I completed this project for an individual coursework submission during my masters degree.

screenshot of the application

Main Features

  • Moveable camera and Qt GUI
  • Toggle direct light, impulse light, indirect light and shadows on and off
  • Threaded rendering - Multiple worker threads are started to compute ray samples - The GUI updates to show the image as it is being rendered - Rendering stats (samples / render time) are shown in the GUI
  • Extra scene items (reflective spheres) can be toggled on and off

How To Run (Mac / Linux)

  • Ensure qt 5 is installed
  • Run install.sh
  • Run ./pathtracer

Instructions

  • Use W,A,S,D,Q and E to move the camera
  • Moving the camera restarts the rendering process
  • Hold left shift to move the camera faster
  • Adjust rendering settings using the UI

Debugging Overlays

I added a number of debugging modes to the renderer during development. I decided to leave them in and make them toggleable from the UI:

  • Pixel view ray directions
  • Hit distance
  • Hit position
  • Surface diffuse color
  • Surface normal durection (y/green is up)
  • Surface emission
You can’t perform that action at this time.