Chapter 1Tuples, Points, and Vectors
A sphere sits alone in a room with checkered walls and floor. It reflects light from a bulb somewhere above it. In fact, it reflects just about everything: the checkered wall behind the camera, the ceiling above, and even (if you look closely) its own shadow.
Mmmm. Isn’t that gorgeous? Don’t you just want to touch that sphere? Well, step in close and let me tell you a little secret. You ready?
You’ll be rendering scenes like this with software you wrote yourself before you’re half done with this book.
It’s the truth. Cross my heart. It’s all just modeling light and objects and how they interact.
But before ...
Get The Ray Tracer Challenge now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.