Skip to content

About

Ray tracing in C++

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Ray Tracer

A simple ray tracing engine written in C++.

Features

  • Monte Carlo ray tracing algorithm
  • Depth of field
  • Motion blur
  • Materials: Lambertian, Metal, Dielectric
  • Antialiasing
  • Parallel rendering (pixel level)

Outputs

Depth of Field

Without Depth of Field With Depth of Field

Motion Blur

Without Motion Blur With Motion Blur

Setup

Dependencies:

  • CMake (version 3.20 or higher recommended)
  • OpenMP (for parallel processing support)
  • C++ compiler with C++20 support

To build the project:

mkdir build
cd build
cmake ..
make

Usage

Render an image and save it as a PPM file:

./build/raytracer > generated_images/output.ppm

Acknowledgment

Based on the Ray Tracing in One Weekend book.

About

Ray tracing in C++

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages