Skip to content

philiparvidsson/GPU-Raytracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raytracing in real-time on the GPU

Real-time raytracer implemented in HLSL. The raytracer runs on the GPU, not the CPU. This allows for parallelization pf pixel calculations on the GPU's shader units, resulting in thousand-fold speedup for the raytracing process, compared to software rendering.

Features

  • Adaptive antialiasing (not working too well)
  • Keyboard controls
  • Parallelization through use of shader units on GPU
  • Specular materials (Phong illumination)
  • Refractions (Snell's law)
  • Reflections
  • Soft shadows/shadow ray sampling (Monte Carlo integration)

Building and Running

  1. Clone this repository.
  2. Chdir into the project root.
  3. Type python make.py init
  4. Type python make.py scene0 to run the first scene, or python make.py scene1 to run the second scene.

NOTE: Scenes can take a long time to load!

Video

image