Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:04,259 --> 00:00:08,760
There are several ways in which we can use
a Math node get results derived from a comparison
2
00:00:08,760 --> 00:00:10,309
of two values.
3
00:00:10,309 --> 00:00:13,920
These operations can be found in the Comparison
category.
4
00:00:13,920 --> 00:00:15,820
Let's take a look at some of them.
5
00:00:15,820 --> 00:00:20,600
The most basic thing we can do is just see
which of the two inputs is the greatest.
6
00:00:20,600 --> 00:00:24,400
For this we can use the Greater Than, and
Less Than operations.
7
00:00:24,400 --> 00:00:28,600
The Greater Than operation tells us if the
first input is greater than the threshold
8
00:00:28,600 --> 00:00:30,630
set in the second input.
9
00:00:30,630 --> 00:00:34,980
Despite the different input names, the two
input sockets are functionally identical,
10
00:00:34,980 --> 00:00:37,860
and there is nothing special about the threshold
field.
11
00:00:37,860 --> 00:00:42,219
All the node does is check if the first input
is greater than the second.
12
00:00:42,219 --> 00:00:47,059
The output of this comparison can either be
true or false, but this gets encoded in a
13
00:00:47,059 --> 00:00:51,969
numeric value, with one assigned to true,
and zero assigned to false.
14
00:00:51,969 --> 00:00:56,059
This means that given an input to the value
field, and a threshold, whenever the value
15
00:00:56,059 --> 00:01:00,429
is greater than the threshold, we get one,
and whenever the value is not greater, we
16
00:01:00,429 --> 00:01:03,260
get zero.
17
00:01:03,260 --> 00:01:06,570
And again, there is nothing special about
the threshold field, so it doesn't have to
18
00:01:06,570 --> 00:01:11,610
be a constant value, we can feed whatever
we want in there, and for each point the two
19
00:01:11,610 --> 00:01:13,470
inputs will be compared.
20
00:01:13,470 --> 00:01:17,980
This was the Greater Than operation, now,
the Less Than operation is exactly the same,
21
00:01:17,980 --> 00:01:22,530
except that the output is reversed, giving
a result of one wherever the value is less
22
00:01:22,530 --> 00:01:26,880
than the threshold, and zero otherwise.
23
00:01:26,880 --> 00:01:32,200
The Minimum and Maximum operations, also compare
two values to see which one is greater.
24
00:01:32,200 --> 00:01:36,640
The Minimum operation checks which value is
the smallest, but instead of giving a binary
25
00:01:36,640 --> 00:01:41,390
true or false output, it actually outputs
the smallest input value itself.
26
00:01:41,390 --> 00:01:45,780
So whenever you feed two values into this
function, you just get the smallest one as
27
00:01:45,780 --> 00:01:47,530
output.
28
00:01:47,530 --> 00:01:53,920
The Maximum operation follows the same principle,
except that it returns the greatest of the
29
00:01:53,920 --> 00:01:57,140
two values.
30
00:01:57,140 --> 00:02:01,750
The Minimum and Maximum operations also have
smooth variants, which use fancy maths to
31
00:02:01,750 --> 00:02:04,909
make the transition between the two values
smooth.
32
00:02:04,909 --> 00:02:10,520
These operations take a third input called
distance, which determines the amount of smoothing.
33
00:02:10,520 --> 00:02:14,610
This smoothing doesn't work like a blur, as
we can't access neighboring values.
34
00:02:14,610 --> 00:02:19,200
Rather, it uses a clever function which starts
taking effect whenever the two input values
35
00:02:19,200 --> 00:02:23,689
are closer to each other than the distance
parameter, and gradually offsets the output
36
00:02:23,689 --> 00:02:26,819
proportionally to how close the two inputs
are to each other.
3813
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.