Chapter 4Matrix Transformations

Awesomesauce! You’re about to take the foundation of matrix operations you implemented in the previous chapter and start doing some practical things, like transformations, which your ray tracer will (eventually) use to move and deform objects. Consider the following scene.

images/transformations/transforms.png

Your ray tracer won’t be able to render those reflections until Chapter 11, Reflection and Refraction, but the scene itself is not really too complicated—a few colored spheres, some checkered planes. The relevant bit here, though, is how each of those spheres is sized and positioned. Without transformations, you’d have to explicitly describe ...

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.