WEBVTT
Kind: captions
Language: en-GB

00:00:00.000 --> 00:00:03.823
I'm in the City of Leeds, at their Light Night Festival.

00:00:03.823 --> 00:00:11.232
And behind me is a building which is currently got all sorts of very loud laser effects.

00:00:11.232 --> 00:00:17.206
That's because, actually if we swing around over there, there's a bank of incredibly powerful lasers.

00:00:17.206 --> 00:00:21.884
And my friend, Seb Lee-Delisle, is currently up in the control room somewhere.

00:00:21.884 --> 00:00:26.640
Their&nbsp;computer is controlling these to do those effects.

00:00:26.640 --> 00:00:34.570
And I'm here because the mathematics behind&nbsp;how you get realistic lightning bolts is really interesting.

00:00:34.570 --> 00:00:39.180
'Cos they got to move randomly,&nbsp;but it's got to be natural randomness.

00:00:39.180 --> 00:00:43.603
And just your off-the-shelf random noise will not cut&nbsp;the mustard.

00:00:43.603 --> 00:00:53.284
And thankfully earlier on today, the mathematics of this was all explained by&nbsp;me... me.

00:00:53.284 --> 00:00:56.540
Thanks me, It's me, I'm here earlier in the day.

00:00:56.540 --> 00:00:59.846
The building is behind me waiting to&nbsp;be lasered by Seb.

00:00:59.846 --> 00:01:05.936
And we're going to have a look at why this random noise is not good enough&nbsp;for Seb.

00:01:05.936 --> 00:01:09.749
What I've got here is a grid 100 by 100 squares.

00:01:09.749 --> 00:01:16.400
And every single square I've given a&nbsp;random value between 0 and 1 to go from black through to white.

00:01:16.400 --> 00:01:19.306
And this is the standard issue,&nbsp;random noise we all know and love.

00:01:19.306 --> 00:01:25.728
This is Perlin Noise, this is what Seb is actually using in the&nbsp;lightning bolts.

00:01:25.728 --> 00:01:27.725
And as you can see, it looks very different.

00:01:27.725 --> 00:01:32.866
It's got kind of a landscapy, continuous&nbsp;feel because yes,

00:01:32.866 --> 00:01:36.741
while nature can be random, nature is also continuous.

00:01:36.741 --> 00:01:41.840
And if we wanted a&nbsp;bit of, like, continuous one-dimensional noise,

00:01:41.840 --> 00:01:47.580
we could draw a line across the proper&nbsp;random noise and then plot those values.

00:01:47.580 --> 00:01:49.655
But as you can see, it's super jerky.

00:01:49.655 --> 00:01:55.244
If we&nbsp;do the same thing with the Perlin Noise, we get a nice continuous line.

00:01:55.244 --> 00:01:58.799
And that's what&nbsp;Seb's using for the lightning.

00:01:58.799 --> 00:02:00.338
And that's only half of it.

00:02:00.338 --> 00:02:06.566
Not only is this noise more continuous&nbsp;and natural looking, it's also more predictable.

00:02:06.566 --> 00:02:10.543
It's technically pseudo-random-noise.

00:02:10.543 --> 00:02:16.310
So if we&nbsp;move around in the true random noise, you can see it's just glitching all over the place.

00:02:16.310 --> 00:02:18.629
Like,&nbsp;randomness has no memory.

00:02:18.629 --> 00:02:25.130
Whereas Perlin Noise, if we move around, we just get more of&nbsp;the same random landscape.

00:02:25.130 --> 00:02:34.916
Technically, there's an infinite amount of continuous, smooth-randomness noise available using Perlin Noise.

00:02:34.916 --> 00:02:39.506
And it will always constantly flow perfectly from&nbsp;one bit to the next.

00:02:39.506 --> 00:02:42.349
And the maths behind this is super interesting.

00:02:42.349 --> 00:02:49.411
So the problem we have to&nbsp;solve is, instead of assigning a random value to every pixel in a 2D image.

00:02:49.411 --> 00:02:54.196
Instead, how do we get&nbsp;a field of values across that whole image,

00:02:54.196 --> 00:02:57.389
which flow continuously but are still random.

00:02:57.389 --> 00:03:00.330
Thankfully&nbsp;maths comes to the rescue.

00:03:00.330 --> 00:03:03.670
You start with a grid and these are like integer coordinates.

00:03:03.670 --> 00:03:09.356
So 0, 1, 2, 3, on the horizontal axis and then likewise going up the vertical.

00:03:09.356 --> 00:03:18.309
You then assign a random unit vector&nbsp;to every single integer coordinate on the grid.

00:03:18.309 --> 00:03:20.191
So let me just do that quickly.

00:03:20.191 --> 00:03:25.719
Now I'm a human, so the human random in my example.

00:03:25.719 --> 00:03:30.941
In reality you would use like a hashing function or something&nbsp;deterministic.

00:03:30.941 --> 00:03:38.254
So you take the coordinates as an input and that would give you a random vector in&nbsp;some direction.

00:03:38.254 --> 00:03:42.728
And the original version of this, which a guy called Ken Perlin came up with,

00:03:42.728 --> 00:03:44.732
the vectors were completely random.

00:03:44.732 --> 00:03:53.207
In newer versions he just had, like, a set of 12 vectors&nbsp;and you'd pick one of those at random.

00:03:53.207 --> 00:03:58.999
And he had clever computational ways of, like, permutating&nbsp;them all around that's kind of your seed.

00:03:58.999 --> 00:04:05.250
But somehow you end up with a bunch of vectors,&nbsp;one per unit coordinate,

00:04:05.250 --> 00:04:08.715
and then you get the point where you want to calculate the noise for.

00:04:08.715 --> 00:04:12.177
So let's say we've got a point, I don't know, right here.

00:04:12.177 --> 00:04:15.677
There's the point, we want to know&nbsp;what is the noise at that point?

00:04:15.677 --> 00:04:25.283
Ok, so if I zoom in on that one square, you then calculate the&nbsp;vectors from every corner to that point.

00:04:25.283 --> 00:04:35.629
You then take each of those four vectors and you calculate&nbsp;its dot-product with all the other random vectors.

00:04:35.629 --> 00:04:41.482
So for this top right corner, the dot-product&nbsp;between the difference vector coming out here.

00:04:41.482 --> 00:04:44.818
And our random vector from before.

00:04:44.818 --> 00:04:49.733
Well, the dot-product is just the angle between the two vectors.

00:04:49.733 --> 00:04:51.435
Whatever this angle in here is.

00:04:51.435 --> 00:04:55.521
And then, obviously,&nbsp;it's scaled based on the size of the vectors.

00:04:55.521 --> 00:05:03.670
You calculate that dot-product for all four corners and then you, somehow, average them together

00:05:03.670 --> 00:05:07.757
and that gives you your random noise at that point.

00:05:07.757 --> 00:05:10.258
I&nbsp;mean, there are a few other extra steps

00:05:10.258 --> 00:05:14.166
because you want to make sure this is nice and smooth and&nbsp;continuous.

00:05:14.166 --> 00:05:21.510
So you've got some normalising and some waiting to get a nice smooth average as you&nbsp;move around.

00:05:21.510 --> 00:05:29.290
Specifically in the updated version of the original Perlin Noise, Ken Perlin used the&nbsp;formula of:

00:05:29.290 --> 00:05:37.511
6t^5 - 10t^4 + 15t^3 [note: transcription of formula in line with verbal error by Matt]

00:05:37.511 --> 00:05:41.423
where "t" is just the distance that you're putting&nbsp;this envelope across.

00:05:41.423 --> 00:05:43.421
And you think, "what a weird formula."

00:05:43.421 --> 00:05:47.956
And I plotted it and it's a very nice&nbsp;smooth curve going from 0 to 1;

00:05:47.956 --> 00:05:51.670
fading in, fading out, pretty linear in the middle.

00:05:51.670 --> 00:05:53.675
It's&nbsp;good, but you think, what an odd formula.

00:05:53.675 --> 00:05:58.774
Well, partly it's deliberately picked because 6 - 10 +&nbsp;15 equals 1.

00:05:58.774 --> 00:06:01.770
So, you end up with 1 at the end.

00:06:01.770 --> 00:06:07.830
And because we got sequential powers, it's actually&nbsp;computationally quite nice to work out

00:06:07.830 --> 00:06:13.560
because you can just gradually multiply by extra values&nbsp;of t as you're putting in those constants.

00:06:13.560 --> 00:06:20.356
So, like everything involving computers, I tend&nbsp;to focus on the maths of how it works.

00:06:20.356 --> 00:06:25.373
So all my talking about the vectors and whatnot is just&nbsp;the mathematical logic behind it.

00:06:25.373 --> 00:06:32.900
But the people who originally developed it were also thinking&nbsp;about what is computationally clever,

00:06:32.900 --> 00:06:37.748
like what can we implement in hardware and software&nbsp;that can be done in the most efficient way possible.

00:06:37.748 --> 00:06:43.728
Which actually brings us to the direct&nbsp;descendant of Perlin Noise, Simplex Noise.

00:06:43.728 --> 00:06:46.971
The reason an upgrade was needed was because,

00:06:46.971 --> 00:06:51.716
while&nbsp;every pixel in 2D just requires those four vector calculations.

00:06:51.716 --> 00:06:55.925
For higher dimensions things get much&nbsp;worse.

00:06:55.925 --> 00:07:02.743
When you go to 3D, well now all your points are somewhere inside a cube and suddenly you've&nbsp;got eight vectors

00:07:02.743 --> 00:07:07.200
that you've got to do the dot-product for each one, you've got to do all&nbsp;the weighting and the averaging.

00:07:07.200 --> 00:07:10.711
Computationally it doubles each dimension.

00:07:10.711 --> 00:07:14.456
So, if we go up into&nbsp;a hyper cube, uh, okay, I'm going to draw it.

00:07:14.456 --> 00:07:21.849
If we go up to a hyper cube, suddenly you've&nbsp;got 16 corners, which means you've got 16; oh, you get the idea.

00:07:21.849 --> 00:07:24.940
You got 16 of everything.

00:07:24.940 --> 00:07:26.973
And&nbsp;when you go up to 5D, you've got 32.

00:07:26.973 --> 00:07:32.823
And Ken Perlin originally did the whole thing based on&nbsp;hyper cubes, and it worked,

00:07:32.823 --> 00:07:38.262
but computationally got a bit heavy, and people ended up using the&nbsp;higher dimensional versions of this.

00:07:38.262 --> 00:07:40.854
So then they come up with a new version.

00:07:40.854 --> 00:07:44.830
And they went, "Forget&nbsp;hyper cubes. We're going to use simplexes."

00:07:44.830 --> 00:07:50.850
And "simplex" is just the fancy word for triangle, but&nbsp;in arbitrary dimensions.

00:07:50.850 --> 00:07:52.713
So once again, you can start with a line segment.

00:07:52.713 --> 00:07:54.466
There's my 1D triangle, there.

00:07:54.466 --> 00:07:57.990
In 2D, you've then got an equilateral triangle.

00:07:57.990 --> 00:08:00.982
They tile the 2D plane quite nicely.

00:08:00.982 --> 00:08:03.517
In&nbsp;3D, you've got a tetrahedron.

00:08:03.517 --> 00:08:09.529
So, you put an extra vertex on and then you join that up to all of the&nbsp;other vertices.

00:08:09.529 --> 00:08:16.560
And now you work out where each of your points are in terms of which simplex or which&nbsp;tetrahedron they're in.

00:08:16.560 --> 00:08:21.741
And then you've only got to do in this case now four, four calculations.

00:08:21.741 --> 00:08:28.141
So what's called simplex noise because you're using simplexes instead of hyper cubes.

00:08:28.141 --> 00:08:36.395
You, the&nbsp;same computational cost what used to have to be done in 2D with four points you can now do 3D.

00:08:36.395 --> 00:08:40.940
And&nbsp;when you go up to 4D, I'll add an extra point in there, join that all up;

00:08:40.940 --> 00:08:45.120
you've only got, what's&nbsp;that now, five points so you're going up it's linear.

00:08:45.120 --> 00:08:50.403
The computational complexity is linear with&nbsp;dimension, which is way better.

00:08:50.403 --> 00:08:55.989
So I'm not going to be very careful about saying the correct type of&nbsp;Perlin Noise or simplex noise.

00:08:55.989 --> 00:09:02.835
I'm just going to say Perlin Noise and I mean the entire family&nbsp;of Perlin Noises,

00:09:02.835 --> 00:09:05.547
be they hyper cube based or simplex.

00:09:05.547 --> 00:09:10.555
The fact that Perlin Noise is defined&nbsp;by vectors at the integer coordinates means

00:09:10.555 --> 00:09:12.917
that it has a certain scale to it,

00:09:12.917 --> 00:09:18.415
and that means you&nbsp;can both zoom in too far, if you go all the way down you hit nothingness.

00:09:18.415 --> 00:09:23.554
In fact, when I was&nbsp;first messing around with Perlin Noise in Python, I rendered this.

00:09:23.554 --> 00:09:28.460
And I thought I'd made a mistake,&nbsp;but I just rendered the 0 to 1 origin square,

00:09:28.460 --> 00:09:31.980
which is a square of nothingness.

00:09:31.980 --> 00:09:33.425
And you can&nbsp;also zoom too far out,

00:09:33.425 --> 00:09:38.655
'cos if you go to the point where the noise fluctuations are smaller than your&nbsp;pixel size,

00:09:38.655 --> 00:09:40.899
you're just back to regular old noise.

00:09:40.899 --> 00:09:48.930
But the fact that Perlin Noise changes with&nbsp;scale and that you can get it wrong is a feature, not a bug.

00:09:48.930 --> 00:09:52.913
It means you can layer up several&nbsp;scales to get fractal noise.

00:09:52.913 --> 00:09:55.320
So we can take this region of noise.

00:09:55.320 --> 00:09:58.587
We can then take a region which&nbsp;is twice as big,

00:09:58.587 --> 00:10:02.410
but scale it by a factor of a half and then add them together.

00:10:02.410 --> 00:10:07.761
We can get a region&nbsp;which is four times as big, scale it by a quarter, add that as well.

00:10:07.761 --> 00:10:14.786
We can stack layers of noise&nbsp;at different scales and that's nature for you, right?

00:10:14.786 --> 00:10:15.779
Fractal noise.

00:10:15.779 --> 00:10:19.425
A little aside though,&nbsp;when I was messing around with this in my code,

00:10:19.425 --> 00:10:24.372
I was using red, green and blue values for&nbsp;different scales of noise

00:10:24.372 --> 00:10:27.143
so I could keep track of what was happening when I was debugging&nbsp;the code.

00:10:27.143 --> 00:10:29.967
And I had these weird, lava-lamp like images

00:10:29.967 --> 00:10:35.374
I'm going to render a unique one of these&nbsp;for every Patreon supporter and email them out.

00:10:35.374 --> 00:10:39.327
I'm also going to do a limited run of postcards,&nbsp;I think.

00:10:39.327 --> 00:10:41.860
Details at the end of the video.

00:10:41.860 --> 00:10:46.671
Anyway, in the noise business, these different scales&nbsp;of noise are called octaves,

00:10:46.671 --> 00:10:52.458
which is a great name because the wavelength of the noise&nbsp;is getting half as big each time.

00:10:52.458 --> 00:10:56.498
So, the frequency is actually getting twice as much, just&nbsp;like an octave.

00:10:56.498 --> 00:11:01.462
And these octaves are exactly what Seb was using for his lightning.

00:11:01.462 --> 00:11:08.658
For the record,&nbsp;Seb using Perlin Noise in visual effects is not unusual or indeed uncommon.

00:11:08.658 --> 00:11:11.146
It's the very point&nbsp;of Perlin Noise.

00:11:11.146 --> 00:11:13.872
Ken Perlin is indeed a professor of computer science.

00:11:13.872 --> 00:11:19.523
But they were inspired&nbsp;to create their noise when they were working on the 1982 film, Tron,

00:11:19.523 --> 00:11:25.647
and were dissatisfied with&nbsp;the random noise that was currently available to put into visual effects.

00:11:25.647 --> 00:11:30.640
They later developed the&nbsp;original Perlin Noise and it was a huge success.

00:11:30.640 --> 00:11:38.313
It would take clinical looking VFX and turn it&nbsp;into realistic, natural textured surfaces.

00:11:38.313 --> 00:11:42.374
And not only is it now ubiquitous across the VFX industry.

00:11:42.374 --> 00:11:49.224
But in 1997, random noise, Ken's Perlin Noise, won an Academy Award.

00:11:49.224 --> 00:11:53.733
It is hard to understate&nbsp;how useful Ken's noise is in visual effects.

00:11:53.733 --> 00:11:56.393
And to take a closer look at how it's implemented,

00:11:56.393 --> 00:12:00.840
Seb assures me he has a version of his lightning that's safe to use indoors.

00:12:00.840 --> 00:12:04.878
[Matt] So, here's, like, a&nbsp;mini laser; this is, like, a tiny little laser.

00:12:04.878 --> 00:12:09.860
And you're projecting a frozen bolt onto the&nbsp;wall here for us.

00:12:09.860 --> 00:12:10.398
[Seb] Yeah, that's right, so...

00:12:10.398 --> 00:12:12.498
[Matt] And this is like one frame of your lightning effect.

00:12:12.498 --> 00:12:15.690
[Seb] Yeah, exactly. It's one frame of lightning. It's a simplex noise.

00:12:15.690 --> 00:12:21.793
It's one dimension from top&nbsp;to bottom with the noise value adjusting the horizontal.

00:12:21.793 --> 00:12:24.972
[Matt] All right. So, if you turned all the&nbsp;noise off, it would just be a straight line.

00:12:24.972 --> 00:12:25.534
[Seb] Oh, yeah.

00:12:25.534 --> 00:12:26.392
[Matt] Actually, can you turn all.

00:12:26.392 --> 00:12:28.550
[Seb] I can change the&nbsp;width, so it's like.

00:12:28.550 --> 00:12:29.930
[Matt] Oh, there it is.

00:12:29.930 --> 00:12:31.599
[Seb] I suppose I could turn all the octaves.

00:12:31.599 --> 00:12:32.740
[Matt] Yeah, turn the octaves&nbsp;off.

00:12:32.740 --> 00:12:33.372
[Seb] There you go.

00:12:33.372 --> 00:12:36.260
[Matt] There you are, nothing. Turn on the zeroth octave.

00:12:36.260 --> 00:12:38.817
[Seb] Yeah. The zeroth octave&nbsp;obviously start at zero.

00:12:38.817 --> 00:12:41.498
[Matt] So, this is just a line through some Perlin noise.

00:12:41.498 --> 00:12:42.419
[Seb] Exactly.

00:12:42.419 --> 00:12:43.136
[Matt] Backwards&nbsp;and forwards.

00:12:43.136 --> 00:12:43.657
[Seb] Yeah.

00:12:43.657 --> 00:12:45.469
[Seb] Simplex noise. This is octave one.

00:12:45.469 --> 00:12:46.237
[Matt] Yeah.

00:12:46.237 --> 00:12:47.563
[Seb] And then we can see octave two.

00:12:47.563 --> 00:12:52.857
Each&nbsp;time the noise gets not only, like, wigglier but actually narrower as well

00:12:52.857 --> 00:12:57.440
because we don't add the&nbsp;same amplitude of noise for each octave.

00:12:57.440 --> 00:13:00.225
[Matt] So you decay the amplitude for each one, gotcha,

00:13:00.225 --> 00:13:04.999
[Seb] Yeah, you see the finest octave you can barely even see it, right?

00:13:04.999 --> 00:13:06.945
[Matt] But now if you combine them.

00:13:06.945 --> 00:13:07.738
[Seb] Yeah.

00:13:07.738 --> 00:13:12.633
[Matt] Actually what would octave zero and like octave four together look like?

00:13:12.633 --> 00:13:14.772
So that's zero. Oh yeah, hah! Yeah.

00:13:14.772 --> 00:13:16.395
[Seb] Just makes it a little wiggly.

00:13:16.395 --> 00:13:21.330
[Matt] Love it. So you can if we switch them all on then you've got&nbsp;your your basic lightning effect.

00:13:21.330 --> 00:13:22.153
[Seb] There you go.

00:13:22.153 --> 00:13:23.872
[Matt] Look at that.

00:13:23.872 --> 00:13:26.743
[Seb] But we can also take that and add&nbsp;another dimension, right?

00:13:26.743 --> 00:13:29.442
So we can move through the second dimension in time.

00:13:29.442 --> 00:13:34.150
And that just makes&nbsp;this vary over time in the similar smooth way as,

00:13:34.150 --> 00:13:36.548
as we're moving down in that first dimension.

00:13:36.548 --> 00:13:38.880
[Matt] So&nbsp;you've got a single line through the 2D noise.

00:13:38.880 --> 00:13:39.290
[Seb] Yeah.

00:13:39.290 --> 00:13:40.550
[Matt] But now you're going to move that line.

00:13:40.550 --> 00:13:42.184
[Seb] Move&nbsp;it along in the next dimension.

00:13:42.184 --> 00:13:45.475
Let's turn that on. So we can do that with time.

00:13:45.475 --> 00:13:48.038
Keep it quite&nbsp;slow. You can just see that motion.

00:13:48.038 --> 00:13:48.846
[Matt] Look at that.

00:13:50.279 --> 00:13:53.801
[Seb] And we're close to, like, my electric bolt effect, right?

00:13:53.801 --> 00:13:55.500
But&nbsp;the the main problem I've got here is that

00:13:55.500 --> 00:13:59.196
the top and the bottom also oscillate with all that other&nbsp;noise.

00:13:59.196 --> 00:14:04.204
Um, and I need the start and the end to be in a fixed position.

00:14:04.204 --> 00:14:09.274
So what I do is I take a&nbsp;sine curve, you know, from zero to one and then back to zero again.

00:14:09.274 --> 00:14:13.952
And I multiply that to the&nbsp;amplitude from the top to the end of the line.

00:14:13.952 --> 00:14:20.390
[Matt] So you're just using half a sine wave as a&nbsp;nice envelope from zero to a lot to zero.

00:14:20.390 --> 00:14:22.811
[Seb] Yeah, exactly. It's a nice way to pinch the ends.

00:14:22.811 --> 00:14:24.256
If&nbsp;I turn that on, you'll see it there.

00:14:24.256 --> 00:14:24.864
[Matt] Oh, nice.

00:14:24.864 --> 00:14:26.492
[Seb] So now the...

00:14:26.492 --> 00:14:27.727
[Matt] something going wrong somewhere.

00:14:27.727 --> 00:14:28.683
[Seb] It's&nbsp;all fine.

00:14:28.683 --> 00:14:31.395
[Matt] It's like your solution was just to turn off the radio, fixed.

00:14:31.395 --> 00:14:33.729
[Seb] Yeah, that's my solution to all the&nbsp;crew, crew problems.

00:14:33.729 --> 00:14:37.056
It's like, "la la la la" it's all fine.

00:14:37.056 --> 00:14:39.543
[Matt] It's either you turn that off or you hit this&nbsp;giant.

00:14:39.543 --> 00:14:42.387
This button also fixes a lot of problems.

00:14:42.387 --> 00:14:44.322
[Seb] Yeah, that's the big emergency button.

00:14:44.322 --> 00:14:45.764
Uh,&nbsp;anyway, where were we?

00:14:45.764 --> 00:14:47.442
[Matt] Yeah. So, okay. So, you fixed the top and bottom.

00:14:47.442 --> 00:14:48.604
[Seb] Fixed the top and the&nbsp;bottom.

00:14:48.604 --> 00:14:51.314
That's basically my electricity effect, but it's running a bit.

00:14:51.314 --> 00:14:54.051
I mean, it's very pretty.&nbsp;It's not very dramatic.

00:14:54.051 --> 00:14:54.714
[Matt] No.

00:14:54.714 --> 00:14:56.457
[Seb] So, let's turn the speed up.

00:14:56.457 --> 00:14:57.577
[Matt] And there it is.

00:14:57.577 --> 00:14:59.076
[Seb] There you go.

00:14:59.076 --> 00:14:59.832
That's&nbsp;my electricity.

00:14:59.832 --> 00:15:00.831
[Matt] I mean, that's lightning.

00:15:00.831 --> 00:15:06.993
Seb has also very helpfully inadvertently answered a very&nbsp;common question about Perlin Noise.

00:15:06.993 --> 00:15:13.290
And that is what would you possibly want with 4D noise or 5D noise.

00:15:13.290 --> 00:15:16.472
Like, what practical application can there possibly be for the fact

00:15:16.472 --> 00:15:19.722
that Perlin Noise can be rendered&nbsp;easily in four dimensions.

00:15:19.722 --> 00:15:23.569
And it's because often if you want noise of a certain dimension,

00:15:23.569 --> 00:15:28.534
you will&nbsp;take it as, like, a slice or a section of higher dimensional noise

00:15:28.534 --> 00:15:31.245
because that gives you more room to move.

00:15:31.245 --> 00:15:34.246
So Seb was using 1D noise, represented by this pen,

00:15:34.246 --> 00:15:39.726
and Seb then moved it through a 2D, like,&nbsp;flat surface of noise.

00:15:39.726 --> 00:15:43.611
So he got it changing over time, but you could start with 3D noise.

00:15:43.611 --> 00:15:45.447
So&nbsp;imagine I'm surrounded by 3D noise.

00:15:45.447 --> 00:15:48.099
There's my 1D line I'm taking.

00:15:48.099 --> 00:15:53.266
And if I move my 1D section&nbsp;through the 3D noise and back to where I started,

00:15:53.266 --> 00:15:59.878
I will have a perfect loop of noise because the&nbsp;beginning and the end are identical.

00:15:59.878 --> 00:16:01.936
It's not like we had to go and then reverse it.

00:16:01.936 --> 00:16:06.543
We have&nbsp;completely different unique frames organically changing smoothly

00:16:06.543 --> 00:16:08.701
from one to the other right&nbsp;back to where we started.

00:16:08.701 --> 00:16:09.997
And we could do a different path.

00:16:09.997 --> 00:16:11.650
We could come down this way and&nbsp;back up again.

00:16:11.650 --> 00:16:19.177
We could have as many different looping bits of organic noise all with the same&nbsp;start and finish frames.

00:16:19.177 --> 00:16:22.754
I've actually done the same thing a dimension higher.

00:16:22.754 --> 00:16:30.560
So here is some 2D&nbsp;Perlin Noise, but it's a slice through 4D noise.

00:16:30.560 --> 00:16:31.731
And here's the same slice.

00:16:31.731 --> 00:16:36.117
I then worked out two&nbsp;different paths through the four-dimensional

00:16:36.117 --> 00:16:41.778
noise space that don't intersect and both end up where&nbsp;they started.

00:16:41.778 --> 00:16:46.477
So now I can have this initial frame I can loop through perfectly organic

00:16:46.477 --> 00:16:50.379
continuous&nbsp;noise and get right back to where I started.

00:16:50.379 --> 00:16:54.145
It's so good, I mean Perlin Noise is just amazing.

00:16:54.145 --> 00:16:59.983
Just so amazing. In fact, it is my favourite random noise.

00:16:59.983 --> 00:17:01.448
And that is quite an accolade.

00:17:01.448 --> 00:17:07.623
I know it's already won an Academy Award, but just below that is the award.

00:17:07.623 --> 00:17:09.771
And yes, I got&nbsp;a trophy made.

00:17:09.771 --> 00:17:15.749
It's to Perlin, winner of Matt Parker's favourite random noise.

00:17:15.749 --> 00:17:20.901
That is now two&nbsp;major awards that Perlin Noise has won.

00:17:20.901 --> 00:17:24.595
Apart from thanks to Ken Perlin, for coming up with&nbsp;the noise.

00:17:24.595 --> 00:17:28.877
I also want to thank Seb Lee-Delisle for getting me along for this fantastic installation.

00:17:28.877 --> 00:17:31.859
You must check out Seb's YouTube channel.

00:17:31.859 --> 00:17:35.477
On there, he gave me a guided tour of all the tech.

00:17:35.477 --> 00:17:37.955
I mean,&nbsp;we literally followed the network cable.

00:17:37.955 --> 00:17:43.468
So, if you want to see how this was put together, how&nbsp;it all works, head on over to Seb's channel.

00:17:43.468 --> 00:17:47.622
And as I mentioned earlier on, if you're one of&nbsp;my Patreon supporters,

00:17:47.622 --> 00:17:54.678
I am going to email a unique frame of that RGB Perlin overlays noise.

00:17:54.678 --> 00:17:57.930
So, you'll have one each. It's yours to have.

00:17:57.930 --> 00:18:01.680
It's like an NFT but less naff. It's all yours.

00:18:01.680 --> 00:18:06.983
And&nbsp;if you support me at the "Statistically Significant" level or higher.

00:18:06.983 --> 00:18:08.123
[Glitching noises]

00:18:08.123 --> 00:18:11.478
[Future Matt] Psst. Over here! Hey, it's&nbsp;me, Future Matt.

00:18:11.478 --> 00:18:14.809
I don't know if you could tell from the somewhat dated NFT joke.

00:18:14.809 --> 00:18:20.393
I filmed that&nbsp;back in 2021 and then never finished the edit to release it.

00:18:20.393 --> 00:18:22.602
'Cos I take on too many projects.

00:18:22.602 --> 00:18:24.880
Which is going to be a theme of this update.

00:18:24.880 --> 00:18:27.131
But I've come back to Leeds to first of all say:

00:18:27.131 --> 00:18:32.140
if you want this year's Patreon Christmas card, which will be Perlin Noise based,

00:18:32.140 --> 00:18:37.774
you have&nbsp;until the end of November 2025 to sign up and get that.

00:18:37.774 --> 00:18:41.351
Oh, it's raining, great... Um, this&nbsp;is what I get for filming on location again.

00:18:41.351 --> 00:18:47.381
Um, I'm also here to apologise for my previous Patreon&nbsp;supporters,

00:18:47.381 --> 00:18:52.322
who will have noticed they probably got their birthday card late if they were entitled to&nbsp;it last year.

00:18:52.322 --> 00:18:56.270
And they didn't get a Christmas card at all.

00:18:56.270 --> 00:19:00.700
And that's because last year I took&nbsp;on too much stuff, which is on me.

00:19:00.700 --> 00:19:04.263
What was I going to do, not calculate pi on the moon?

00:19:04.263 --> 00:19:05.644
So, I did. I over-committed.

00:19:05.644 --> 00:19:10.577
I didn't burn out, um, because I have a release valve where I just&nbsp;stopped doing some things

00:19:10.577 --> 00:19:15.063
and I figured Patreon supporters wouldn't mind if everything was super&nbsp;late.

00:19:15.063 --> 00:19:19.456
So, I meant to put the laser video with Seb, I thought it was late at the end of 2024.

00:19:19.456 --> 00:19:22.125
Never&nbsp;got it out. Never got your Christmas cards.

00:19:22.125 --> 00:19:24.797
So, if you were a Patreon supporter before,

00:19:24.797 --> 00:19:30.123
you&nbsp;will get the extra RGB postcard as well as your Christmas card this year.

00:19:30.123 --> 00:19:32.684
And if you're&nbsp;new, you just get the Christmas card.

00:19:32.684 --> 00:19:36.864
Oh, and if you were signed up and now you're not, I'll just send you the RGB Christmas card.

00:19:36.864 --> 00:19:37.884
I will get it to you.

00:19:37.884 --> 00:19:39.849
So, thank you so much to your support&nbsp;everyone.

00:19:39.849 --> 00:19:40.703
I'm going to make a dash for it now.

00:19:40.703 --> 00:19:44.792
Um, I really appreciate you supporting everything&nbsp;I do.

00:19:44.792 --> 00:19:49.572
And oh, I'm here in Leeds, by the way, because I'm doing my show, "Getting Triggy With It"&nbsp;tonight.

00:19:49.572 --> 00:19:50.807
Of course, I'm on tour.

00:19:50.807 --> 00:19:53.152
That's one ex-. It's been such a year.

00:19:53.152 --> 00:19:56.692
But I've got another date coming&nbsp;up on the 1st of December,

00:19:56.692 --> 00:20:02.632
which is the day after the deadline for joining Patreon in time to&nbsp;get the Christmas card.

00:20:02.632 --> 00:20:09.641
But if you want to come to the it's on the set of, um, Matilda in London,&nbsp;it's going to be amazing.

00:20:09.641 --> 00:20:11.468
I'd love to see loads of you there.

00:20:11.468 --> 00:20:14.008
Um, yeah, that's then we're on tour&nbsp;first next year.

00:20:14.008 --> 00:20:15.567
Um, thanks for your support.

00:20:15.567 --> 00:20:19.420
Oh, I meant to, I meant to hand you back to 2021&nbsp;Matt.

00:20:19.420 --> 00:20:24.052
Ah, he's probably still blah-blah-blah'ing.

00:20:24.052 --> 00:20:24.655
[Glitch noise]

00:20:24.655 --> 00:20:26.480
[Past Matt] So, look forward to that.

00:20:26.480 --> 00:20:29.490
So, anyway, thank you&nbsp;so much everyone for watching this video.

00:20:29.490 --> 00:20:34.845
Check out said video and support me on Patreon to get&nbsp;your own, free noise by the end of the month.

