This project is a simple implementation of the concepts from Peter Shirley's Ray Tracing in One Weekend book series. The series is an excellent introduction to ray tracing and consists of three books:
This implementation focuses on the first book, and the code is written in Rust.
- PPM Viewer: A simple tool to view the rendered
.ppm
images.
- Chapter 1: Output an Image
- Chapter 2: Vec3
- Chapter 3: Rays, a Simple Camera, and Background
- Chapter 4: Adding a Sphere
- Chapter 5: Surface Normals and Multiple Objects
- Chapter 6: Antialiasing (Random Sampling)
- Chapter 7: Diffuse Materials
- Chapter 8: Metal
- Chapter 9: Dielectrics
- Chapter 10: Positionable Camera
- Chapter 11: Defocus Blur
- Chapter 12: Where Next?
To run the project and generate a rendered image:
cargo run --release