Skip to content

ericwoude/ray-tracer

Repository files navigation

Main Status Latest Release License

Simple Ray Tracer

Demo 1 picture

An implementation of a basic ray tracer following Ray Tracing In One Weekend Ray Tracing in One Weekend.

Outside the scope of the book, I added:

  • multithreading
  • triangle rendering

Usage

  1. Configure the project and generate the native build system, and call the build system to compile and link the project:
$ make build

The compiled executables will be placed in build/bin.

  1. Invoke the ray tracer and output the results to a file
$ ./bin/raytracer > image.ppm

Literature

  • Shirley, P. (2016). Ray tracing in one weekend. Amazon Digital Services LLC, 1.
  • Möller, T., & Trumbore, B. (1997). Fast, minimum storage ray-triangle intersection. Journal of graphics tools, 2(1), 21-28.