Skip to content

r1walz/cuda-ray-tracing-in-one-weekend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Didactic ray tracing implementation using C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published