Skip to content

benpm/cuda-raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUDA Raytracer

A simple raytracer using CUDA and OpenGL. Raytracing is performed by a CUDA kernel, and drawing is done with OpenGL. Adapted from "Accelerated Ray Tracing in One Weekend in CUDA".

Screenshot

Features

  • Diffuse lighting
  • Matte material, metallic (reflective) material, dielectric (refractive) material
  • Planes and spheres

Dependencies

  • CUDA 10
  • OpenGL 4
  • glm
  • GLFW 3
  • glew
  • CMake

Building and Running

Tested on Ubuntu 19.10

  1. Install dependencies: nvidia-cuda-toolkit libglm-dev libglfw3-dev libglew-dev cmake
  2. mkdir build && cd build
  3. cmake ..
  4. make
  5. ./main

About

A simple raytracer using CUDA and OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published