Skip to content

calpoly-parmer/CUDA_RayTracer

Repository files navigation

======================================

458 & 570 Combo Lab
CUDA Ray Tracer
Prof. Christopher Lupo & Prof. Zoë Wood

Paul Armer (parmer)
Bryan Ching (bcching)
Matthew Crussell (macrusse)

======================================

Implementation
-------------------------------------
Our CUDA Ray Tracer builds off our previous parallelized ray tracer and makes it
real time. To do this only a little of optimization needed to be done to prevent
divergence. Otherwise, we used glut to run our cuda kernel, generate the
image, and display it on the screen. 


FPS 100 spheres 6 planes + shadows + lighting
---------
65 fps


Options for coolness
--------------------------------------
wasd  - movement
ijkl  - turning (jl working ik broken)
q     - reset camera
r     - redraw spheres
o     - spiral inwards
p     - spiral outwards
[     - orbit camera CW
]     - orbit camera CCW
+     - increase sphere size
=     - decrease sphere size
9     - darkens planes
0     - brightens planes


Instructions for Compiling and Running
--------------------------------------
unzip glm
make to compile code 
./RTRT to run

To make changes in sphere numbers, edit cudaRayTrace.h

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published