Skip to content

richhaar/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple C++ Ray Tracer

Example Image

A C++ implementation of a ray tracer with no external dependencies.

Features

  • Reflection & Refraction
  • Shadows
  • Materials
  • Transformations
  • Planes and Spheres

Installation & Usage

CMake based project which can be built via command line or with your favourite IDE.

# Download the project
git clone https://github.com/richhaar/raytracer.git
cd raytracer
# Generate the project
cmake -S . -B bin -G Ninja
cd bin
# Build
ninja
# Run
./RayTracer

Tested and developed on Ubuntu 24.04 LTS with an Intel Pentium N5030 CPU @ 1.10GHz machine.

Taking 30s for a 2000x1000 4xMSAA image with kMaxReflections set to 5.

License

MIT

Acknowledgements

The Ray Tracer Challenge by Jamis Buck.

About

A C++ implementation of a ray tracer with no external dependencies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors