Skip to content

A simple ray tracer written with CUDA that saves its output in a .ppm file, CPU version included for reference.

License

Notifications You must be signed in to change notification settings

xkevio/CUDA-Raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUDA-Raytracer

A simple ray tracer written with CUDA that saves its output in a .ppm file, CPU version included for reference. Below, you can find the rendered image and a performance analysis.

This was made as a final project for the GPU programming course at Otto-von-Guericke University Magdeburg.

The Render

The code currently generates the following image, though it does support more spheres and light sources:

3 spheres

Performance Analysis

CPU version (serial vs parallel):

Note: In the diagrams I used the german spelling of "serial"

serial

parallel

GPU version:

gpu4spheres

Direct comparison with the parallel CPU version:

cpuvsgpu

CPU vs GPU Direct comparison with more than 4 spheres:

Note: The time axis is shown on a logarithmic scale

all

About

A simple ray tracer written with CUDA that saves its output in a .ppm file, CPU version included for reference.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published