Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 819 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 819 Bytes

Ray Tracing in One Weekend

Output Image

Didactic ray tracing implementation using C++ adapted from Ray Tracing in One Weekend by Peter Shirley. Apart from the original implementation, I've tried to achieve parallelism using Cuda C++.

Requirements

  • g++ 7.4.0 or Cuda Toolkit with nvcc v9.1
  • make 4.1

Compilation and Running

1. Clone the repository: $ git clone https://github.com/r1walz/ray-tracing-in-one-weekend.git
2. cd ray-tracing-in-one-weekend
3. use `$ make` to compile using g++ or `$ make CC=nvcc` for gpu parallelism
4. ./tracer >image.ppm
5. Open the `image.ppm` file using your favourite ppm image viewer

To clean up, use $ make clean.