Skip to content

sunfish2010/RayTracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RayTracer

Mini Ray tracer from ray tracing in one weekend.

The project is built with bazel.

To run, cd to the root directory of the project and enter the following:

bazel run //:ray_tracer > image.ppm

The final image looks something like the following: scene

Potential Optimization

The program runs very slow when the number of spheres is large in the scene as the computation is running on CPU and executed sequentially even though the operations on each pixel is highly parallelizable. It is possible to speed things up by chunking blocks of pixels and parallize each block with threads. Or better yet, use GPU for the computation.

About

Mini Ray tracer from ray tracing in one weekend

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published