Imperfection

How to 3D

Chapter 11: Noise

Imperfection

Algorithms produce output that is too perfect. Look at the colors and shapes in the renderers we've written. You can smell the math behind them. When we explore the physical world, we see splotches, cracks, and wobbles. How do we mimic these imperfections in our algorithmic output? With a careful application of randomness.

In this chapter, we explore two algorithms for generating random imperfections and several ways of applying imperfection to mimic natural phenomena. By its end, you'll be able to answer the following questions:

The code provided in this chapter is written in pseudocode rather than TypeScript to avoid getting bogged down in details. If you find noise interesting, take ownership of these ideas and implement your own library.

Value Noise →