- 290 pages
- English
- ePUB (mobile friendly)
- Only available on web
About This Book
The renderer is a ray tracer, which means it simulates the physics of light by tracing the path of light rays around your scene. Each exciting chapter presents a bite-sized piece of the puzzle, building on earlier chapters and setting the stage for later ones. Requirements are given language-agnostically; it's up to you to translate them into tests and code using whatever language you prefer. When the project is complete, you'll look back and realize you've built an entire system test-first!
There's no research necessary â all the necessary formulas and algorithms are presented and illustrated right here. Dive into intriguing topics from fundamental concepts such as vectors and matrices; to the algorithms that simulate the intersection of light rays with spheres, planes, cubes, cylinders, and triangles; to geometric patterns such as checkers and rings. Lighting and shading effects, such as shadows and reflections, make your scenes come to life, and constructive solid geometry ( CSG ) enables you to combine your graphics primitives in simple ways to produce complex shapes.
Play and experiment as you discover the fun of writing a ray tracer. Accept the challenge today!
Frequently asked questions
Information
Table of contents
- The Ray Tracer Challenge