1
00:00:00,160 --> 00:00:03,360
There’s a simple math function\h
from the ’80s that has quietly\h\h

2
00:00:03,360 --> 00:00:06,880
shaped some of the most iconic\h
games of the last few decades.

3
00:00:06,880 --> 00:00:12,160
Today, I want to tell you the story behind\h
it, why it was invented, why it works so well,\h\h

4
00:00:12,160 --> 00:00:15,520
and why I believe it might be the single\h
most important algorithm in the history\h\h

5
00:00:15,520 --> 00:00:19,440
of video games. And hopefully give you\h
enough evidence to see if you agree.

6
00:00:19,440 --> 00:00:24,640
It all starts in 1982, with a movie that\h
changed the history of computer graphics.

7
00:00:24,640 --> 00:00:29,120
Ken Perlin was part of the visual effects\h
team on Tron, the first Hollywood film\h\h

8
00:00:29,120 --> 00:00:35,120
built almost entirely with computer-generated\h
imagery. It was groundbreaking. But to him,\h\h

9
00:00:35,120 --> 00:00:39,440
it wasn’t good enough: “everything\h
looked machine-like”, he later said.

10
00:00:39,440 --> 00:00:44,000
The problem was texture. When they tried\h
to simulate things like fire or smoke,\h\h

11
00:00:44,000 --> 00:00:47,071
the results looked flat and artificial.

12
00:00:47,071 --> 00:00:50,520
The tools\hfor generating detail relied on white noise,

13
00:00:50,520 --> 00:00:54,194
which gave results that felt\hmore like static than nature.

14
00:00:54,194 --> 00:00:56,037
Perlin wanted something better.

15
00:00:56,037 --> 00:00:59,720
Something that felt smooth and organic,
but could be generated quickly,

16
00:00:59,720 --> 00:01:02,160
with\hno handcrafting or heavy computation.

17
00:01:02,160 --> 00:01:08,400
His solution became Perlin Noise, and in 1997, it\h
won an Academy Award for Technical Achievement,\h\h

18
00:01:08,400 --> 00:01:10,800
a recognition presented alongside the Oscars,\h\h

19
00:01:10,800 --> 00:01:15,200
in a ceremony that would later also\h
celebrate the creators of Photoshop.

20
00:01:15,200 --> 00:01:18,417
So… what exactly is Perlin Noise?

21
00:01:18,417 --> 00:01:20,880
At its core, it’s just a function.

22
00:01:20,880 --> 00:01:25,200
You give it one or more numbers as input\h
(a position in space) and it gives you back\h\h

23
00:01:25,200 --> 00:01:31,360
another number. Technically, the output goes\h
from –1 to 1, but in most visual applications,\h\h

24
00:01:31,360 --> 00:01:37,920
it’s scaled to a range between 0 and 1: black\h
to white, with shades of gray in between.

25
00:01:37,920 --> 00:01:43,600
But here’s the trick: nearby inputs produce\h
similar outputs. We’ll later see that this is\h\h

26
00:01:43,600 --> 00:01:48,880
exactly what makes it so useful in video games:\h
it creates patterns with just the right balance\h\h

27
00:01:48,880 --> 00:01:55,680
of order and chaos. Unpredictable,\h
but smooth. Random, but structured.

28
00:01:55,680 --> 00:02:00,720
Let’s take a look at how it works. And, don’t\h
worry, it’s actually surprisingly simple.

29
00:02:00,720 --> 00:02:05,600
To generate Perlin Noise, we start by\h
dividing the space into a regular grid.

30
00:02:05,600 --> 00:02:11,328
At each corner of that grid, we assign\h
a unit vector pointing in a random direction.\h\h

31
00:02:11,328 --> 00:02:15,600
These are called gradients,\h
and they shape the behavior of the noise.

32
00:02:15,600 --> 00:02:21,200
For every pixel in the image, we look at the four\h
corners that surround it and calculate how much\h\h

33
00:02:21,200 --> 00:02:26,320
that pixel is influenced by each gradient.\h
From each corner, we do this by computing\h\h

34
00:02:26,320 --> 00:02:32,745
the displacement, the vector from the pixel to\h
the corner, and taking its dot product with the\hgradient.\h

35
00:02:32,745 --> 00:02:37,760
This is a simple operation that tells us\h
how aligned the two vectors are. If they point in\h\h

36
00:02:37,760 --> 00:02:44,400
a similar direction, the result is closer to 1. If\h
they point away from each other, it’s closer to 0.

37
00:02:44,400 --> 00:02:49,760
This gives us four numbers, one from each\h
corner. We repeat this process for every\h\h

38
00:02:49,760 --> 00:02:55,280
pixel in the image, calculating four partial\h
results. We then combine those numbers through\h\h

39
00:02:55,280 --> 00:03:02,080
linear interpolation: a mathematical operation\h
used to smooth transitions. First horizontally,\h\h

40
00:03:02,080 --> 00:03:06,240
then vertically, eliminating visible\h
seams, and producing a continuous pattern\h\h

41
00:03:06,240 --> 00:03:10,813
of organic variation, smoother at higher\h
resolutions.\h\h

42
00:03:10,813 --> 00:03:13,016
A pattern that would have
looked completely different,

43
00:03:13,016 --> 00:03:17,040
if the initial\hgradients had pointed
in other directions.

44
00:03:17,040 --> 00:03:20,729
But we’re not limited to just
one of these\hpatterns.\h\h

45
00:03:20,729 --> 00:03:24,285
We can generate multiple variations and
combine them using a technique 

46
00:03:24,285 --> 00:03:27,456
usually referred to\has fractal noise.

47
00:03:27,456 --> 00:03:32,781
With each new layer (or octave),\hwe increase
the frequency and reduce the strength.\h

48
00:03:32,781 --> 00:03:36,160
Then we simply add their values, pixel by pixel,\h\h

49
00:03:36,160 --> 00:03:40,960
layering detail without overwhelming the\h
structure. The first layer captures the\h\h

50
00:03:40,960 --> 00:03:47,440
broad strokes, the big shapes. The next\h
adds smaller waves. Then finer bumps.

51
00:03:47,440 --> 00:03:49,280
That’s how you get erosion on a mountain,\h\h

52
00:03:49,280 --> 00:03:54,960
or the turbulence in a cloud. It’s still\h
just noise, but it feels like nature.\h

53
00:03:54,960 --> 00:04:01,120
And the best part? It’s incredibly efficient. You\h
can compute it on the fly, with no need to store\h\h

54
00:04:01,120 --> 00:04:09,680
large textures or pre-made assets. Just math.\h
Simple, elegant, fast… and endlessly useful.

55
00:04:09,680 --> 00:04:13,680
Let’s actually look at some of its\h
most common use cases in games.

56
00:04:13,680 --> 00:04:15,708
First: terrain.

57
00:04:15,708 --> 00:04:20,444
In procedural worlds,\h
you often want to generate landscapes\halgorithmically.

58
00:04:20,444 --> 00:04:25,600
Hills, mountains, valleys…\h
all of that can come from a Perlin Noise map,\h\h

59
00:04:25,600 --> 00:04:29,760
where each value defines the\h
elevation at a point in space.

60
00:04:29,760 --> 00:04:34,880
Perlin Noise can also define how a world is\h
structured, not just the height of the land,\h\h

61
00:04:34,880 --> 00:04:40,874
but the layout of entire regions. Where one\h
area ends and another begins. 

62
00:04:40,874 --> 00:04:42,497
Where caves\htwist.

63
00:04:42,497 --> 00:04:47,840
Instead of building these structures by\h
hand, you let the noise carve the space for you.

64
00:04:47,840 --> 00:04:54,800
Next: distribution. Instead of placing things at\h
random, you can use Perlin Noise as a density map.\h\h

65
00:04:54,800 --> 00:05:00,800
Think of trees, loot, or enemies: areas with\h
high values get more content, while others\h\h

66
00:05:00,800 --> 00:05:06,640
stay sparse. The result is natural-looking\h
clusters that feel like real ecosystems:\h\h

67
00:05:06,640 --> 00:05:11,920
dense forests, scattered resources,\h
or danger zones crawling with enemies.

68
00:05:11,920 --> 00:05:17,200
Then there’s texture. Perlin Noise\h
is a go-to tool for visual variety,\h\h

69
00:05:17,200 --> 00:05:22,240
often used to generate effects\h
like smoke, magical energy or fire.\h\h

70
00:05:22,240 --> 00:05:28,160
It can modulate color and transparency, for\h
example, to make things feel more organic.

71
00:05:28,160 --> 00:05:35,120
It can also drive animation, both in textures and\h
larger scenes, like grass swaying in the wind or\h\h

72
00:05:35,120 --> 00:05:41,680
waves gently rolling. The result is motion\h
that doesn't feel looped, always shifting.

73
00:05:41,680 --> 00:05:47,520
And that same idea can be applied to sound.\h
Perlin Noise can subtly vary things like pitch\h\h

74
00:05:47,520 --> 00:05:54,960
or volume. Especially useful in ambient elements\h
that repeat often, like footsteps or wind.

75
00:05:54,960 --> 00:05:58,519
Anything that needs to feel alive can use Perlin Noise.

76
00:05:58,519 --> 00:06:04,400
It’s a building block. A seed.\h
A rhythm. Whatever you need it to be.

77
00:06:04,400 --> 00:06:08,849
Nowhere is this more obvious than\h
in Minecraft. That game uses Perlin\hNoise

78
00:06:08,849 --> 00:06:14,000
for everything, but the way it\h
generates biomes is especially clever.

79
00:06:14,000 --> 00:06:17,680
Instead of assigning them randomly, it\h
first creates a set of environmental\h\h

80
00:06:17,680 --> 00:06:25,680
properties using separate noise maps. Temperature,\h
humidity, erosion, elevation… and a few others.

81
00:06:25,680 --> 00:06:32,005
Then it combines those properties using\ha set of rules
to decide what biome makes sense in each location. 

82
00:06:32,005 --> 00:06:35,967
High temperature and low\h
humidity? Maybe it's a desert.

83
00:06:35,967 --> 00:06:40,460
High elevation,\hhumid and hot? 
Could be a jungle in the mountains.

84
00:06:40,460 --> 00:06:44,184
Low elevation and high erosion?
This is a beach.

85
00:06:44,184 --> 00:06:47,920
This way, you don’t get snowy\h
peaks right next to a volcano.\h\h

86
00:06:47,920 --> 00:06:52,091
You get transitions, gradients,\h
just like in the real world.

87
00:06:52,091 --> 00:06:57,760
And it’s not just aesthetic. Biomes\h
affect gameplay: what mobs spawn,\h\h

88
00:06:57,760 --> 00:07:02,720
what resources appear, what the weather\h
is like. It’s procedural generation,\h\h

89
00:07:02,720 --> 00:07:08,720
but with meaning. A world that makes sense,\h
even though no one designed it by hand.

90
00:07:08,720 --> 00:07:14,174
So… is Perlin Noise really the most important\h
algorithm in the history of video games?

91
00:07:14,174 --> 00:07:19,280
It’s\ha big claim. But starting in the mid-90s,\h
and especially throughout the 2000s,\h\h

92
00:07:19,280 --> 00:07:23,760
it gained traction and quietly became\h
a standard tool across the industry.

93
00:07:23,760 --> 00:07:26,880
To get a clearer sense of just\h
how far its influence goes,\h\h

94
00:07:26,880 --> 00:07:32,720
I analyzed a broad set of games from three\h
categories: the 50 best-sellers of all time,\h\h

95
00:07:32,720 --> 00:07:36,947
the Game of the Year winners, and the titles\h
most frequently cited as the greatest ever\h\h

96
00:07:36,947 --> 00:07:42,960
made, based on cross-referenced critical\h
rankings. All together, nearly 400 titles.

97
00:07:42,960 --> 00:07:47,680
For each game, I analyzed whether it used\h
Perlin Noise, or a closely related technique,\h\h

98
00:07:47,680 --> 00:07:53,360
in any of its most common applications. Each\h
case was scored using three levels of certainty:\h\h

99
00:07:53,360 --> 00:07:59,280
no use, possible or indirect\h
use, and clear or documented use.

100
00:07:59,280 --> 00:08:04,880
The results were pretty striking.
Among the 50 best-sellers, 84% showed clear\h\h

101
00:08:04,880 --> 00:08:11,520
or very likely use of Perlin Noise or derivatives.\h
The remaining 16% were mostly older titles, some\h\h

102
00:08:11,520 --> 00:08:16,800
released even before the algorithm was invented.
In the Game of the Year list, every single game\h\h

103
00:08:16,800 --> 00:08:20,960
used it in at least one common form,\h
most often for visuals and effects,\h\h

104
00:08:20,960 --> 00:08:26,560
but also for animation and procedural content.
And in the list of the greatest games of all time,\h\h

105
00:08:26,560 --> 00:08:32,080
which spans several decades, the further you\h
go in time, the more the algorithm shows up.\h

106
00:08:32,080 --> 00:08:37,120
Finally, many of the top-selling titles\h
don’t just use it, they use it often,\h\h

107
00:08:37,120 --> 00:08:42,240
and in more sophisticated ways. Across\h
multiple domains, layered with other systems.

108
00:08:42,240 --> 00:08:47,360
Perlin Noise has quietly become one of the most\h
widely used algorithms in game development.\h\h

109
00:08:47,360 --> 00:08:53,360
It shapes how games look, sound, and feel. And\h
it’s the backbone of procedural generation,\h\h

110
00:08:53,360 --> 00:08:56,320
a technique that defines modern game design.

111
00:08:56,320 --> 00:09:00,320
If you want proof of its impact, just\h
look at the best-selling, and arguably\h\h

112
00:09:00,320 --> 00:09:03,296
most influential game of the last\h
couple of decades.

113
00:09:03,296 --> 00:09:06,302
Would Minecraft\hexist without Perlin Noise?

114
00:09:06,302 --> 00:09:07,652
Maybe.

115
00:09:07,652 --> 00:09:10,256
But\hit definitely wouldn’t feel the same.

116
00:09:10,256 --> 00:09:14,074
Some of the most powerful tools in\hgames
are the ones you never see.

117
00:09:14,074 --> 00:09:19,215
Perlin Noise doesn’t call attention to itself.
But it’s always there, under the surface.

118
00:09:19,215 --> 00:09:23,635
It’s not just math.
It’s a way to\hbuild complexity out of simplicity.

119
00:09:23,635 --> 00:09:27,681
To create the illusion of infinity,\h
in a world that fits on a hard drive.

120
00:09:27,681 --> 00:09:30,459
Perlin Noise isn’t why we play games.

121
00:09:30,459 --> 00:09:34,102
But maybe it’s why they feel like games.

122
00:09:35,662 --> 00:09:36,671
See you next time.

