All language subtitles for 4. Keeping Alpha Values Between 0.0 and 1.0

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:02,453 --> 00:00:05,347 In this clip we're going to take a look at keeping 2 00:00:05,347 --> 00:00:07,453 the alpha values between a 0 and 1. 3 00:00:07,453 --> 00:00:10,453 So let's take a look at our script. 4 00:00:10,453 --> 00:00:15,068 So the first example that I'm going to take a look at is I really 5 00:00:15,068 --> 00:00:18,453 like to keep the images alpha to 1 at all times. 6 00:00:18,453 --> 00:00:20,015 Now it's not always mandatory, 7 00:00:20,015 --> 00:00:23,453 but we'll take a look at why that could be important. 8 00:00:23,453 --> 00:00:28,119 So here I have the read node and if I scroll down to the properties bin, 9 00:00:28,119 --> 00:00:30,453 you can see the option for auto alpha. 10 00:00:30,453 --> 00:00:33,362 So let's take a look at the alpha. 11 00:00:33,362 --> 00:00:38,453 By default it is black and I can turn auto alpha to 100% white. 12 00:00:38,453 --> 00:00:42,452 The second option is if I turn that off, I can add a shuffle node. 13 00:00:42,453 --> 00:00:45,203 So the shuffle node by default will be the default alpha 14 00:00:45,203 --> 00:00:47,453 value so let's take a look at the shuffle. 15 00:00:47,453 --> 00:00:54,453 It will retain the black, but I can force white into the alpha as well. 16 00:00:54,453 --> 00:00:57,453 So again 100% white alpha in this image. 17 00:00:57,453 --> 00:01:00,453 So let's go back to full color, a, 18 00:01:00,453 --> 00:01:05,271 and take a look at why we might want to want to 19 00:01:05,271 --> 00:01:08,452 retain some alpha values in our image. 20 00:01:08,453 --> 00:01:14,953 So the first example is this here so here is a premultiplied image, 21 00:01:14,953 --> 00:01:19,496 no alpha, and a constant background that also has no alpha. 22 00:01:19,496 --> 00:01:22,887 So when I merge the two of them together you can see we 23 00:01:22,887 --> 00:01:24,452 don't get what we were expecting. 24 00:01:24,453 --> 00:01:28,452 That is a bright green circle on top of the blue background. 25 00:01:28,453 --> 00:01:33,189 Now the blue is retained just because there's no other information on top of it, 26 00:01:33,189 --> 00:01:37,252 but the center circle portion here has changed because it doesn't know 27 00:01:37,252 --> 00:01:41,452 what to do with the green circle because it has no alpha. 28 00:01:41,453 --> 00:01:46,452 So into the alpha and there's no alpha overall so this won't work for us. 29 00:01:46,453 --> 00:01:49,982 The second example is a green constant, again no alpha, 30 00:01:49,982 --> 00:01:52,453 but an alpha in our blue background. 31 00:01:52,453 --> 00:01:55,998 Again when we put a over b, because our circle has no alpha, 32 00:01:55,998 --> 00:01:57,634 it doesn't know what to do, 33 00:01:57,634 --> 00:02:02,453 but it carries through this old alpha from the blue background. 34 00:02:02,453 --> 00:02:07,084 Next we have a green premultiplied image with an alpha over 35 00:02:07,084 --> 00:02:10,453 top of a blue constant with no alpha. 36 00:02:10,453 --> 00:02:13,253 Now it carries through the circle's alpha, 37 00:02:13,253 --> 00:02:17,253 but because again there's no circle or any other image 38 00:02:17,253 --> 00:02:19,390 over top of the blue background, 39 00:02:19,390 --> 00:02:23,453 it's not changing it and we are retaining the green circle over top. 40 00:02:23,453 --> 00:02:26,119 So this is a great alternative. 41 00:02:26,119 --> 00:02:31,453 The last alternative will allow us to retain the best alpha overall. 42 00:02:31,453 --> 00:02:36,702 So again a premultiplied green circle so just take a look at that with an 43 00:02:36,702 --> 00:02:39,716 alpha and a constant background also with an alpha, 44 00:02:39,716 --> 00:02:42,558 a over b, and it retains that circle still, 45 00:02:42,558 --> 00:02:46,089 retains the blue background, and carries through a solid alpha. 46 00:02:46,089 --> 00:02:51,816 So now that we know why we might want to keep an alpha for 47 00:02:51,816 --> 00:02:55,453 images that are placed over top of each other, 48 00:02:55,453 --> 00:02:59,853 let's take a look at a couple of other examples where 49 00:02:59,853 --> 00:03:03,453 the alpha may not be either 0 or 1. 50 00:03:03,453 --> 00:03:05,452 So let's take a look at that. 51 00:03:05,452 --> 00:03:07,452 So the first example is two circles. 52 00:03:07,453 --> 00:03:13,452 So here's one circle, solid alpha 1 and a second circle, solid alpha 1. 53 00:03:13,453 --> 00:03:15,800 If I place one over top of each other, 54 00:03:15,800 --> 00:03:18,670 the alpha across the board is 100% white so this is 55 00:03:18,670 --> 00:03:20,953 exactly what we are looking for. 56 00:03:20,953 --> 00:03:26,453 Now in our next example, certain operators will change our alpha. 57 00:03:26,453 --> 00:03:30,310 So here we have the same thing, a circle, 58 00:03:30,310 --> 00:03:32,881 solid alpha, second circle, solid alpha, 59 00:03:32,881 --> 00:03:35,452 but we use a plus operator. 60 00:03:35,453 --> 00:03:40,453 Now not only does it change the rgb, but it also changes the alpha. 61 00:03:40,453 --> 00:03:44,302 So it changes the alpha to 2 and it's artificially inflating 62 00:03:44,302 --> 00:03:47,452 the alpha to a value that we don't need. 63 00:03:47,453 --> 00:03:51,453 So let's take a look at what that looks like over top of our background. 64 00:03:51,453 --> 00:03:55,974 So here is a background over top of it and now our alpha 65 00:03:55,974 --> 00:03:59,786 is solid everywhere else at 1 with the exception to where 66 00:03:59,786 --> 00:04:01,119 those two circles overlap. 67 00:04:01,119 --> 00:04:05,786 Now we can force the values in the alpha between 0 and 1 so 68 00:04:05,786 --> 00:04:09,982 there aren't these extra code values and one of the ways to 69 00:04:09,982 --> 00:04:12,452 do that is with a clamp tool. 70 00:04:12,453 --> 00:04:17,452 So I've taken those two circles with the value of 2 in the alpha and clamped it. 71 00:04:17,452 --> 00:04:20,725 So let's take a look at the clamp tool. 72 00:04:20,725 --> 00:04:24,362 By default it clamps the alpha channel only and it 73 00:04:24,362 --> 00:04:27,119 will keep the values between 0 and 1. 74 00:04:27,119 --> 00:04:28,786 So let's take a look. 75 00:04:28,786 --> 00:04:31,452 So here it changes the alpha to 1. 76 00:04:31,453 --> 00:04:35,186 Notice how it doesn't change the rgb. 77 00:04:35,186 --> 00:04:39,453 So on and off, only changing the alpha. 78 00:04:39,453 --> 00:04:41,953 So now if I take a look at the two, 79 00:04:41,953 --> 00:04:45,453 so here's the one with the alpha of 2 versus the alpha of 1 80 00:04:45,453 --> 00:04:48,397 and do a qc check with a different operator, 81 00:04:48,397 --> 00:04:49,953 it is the same. 82 00:04:49,953 --> 00:04:54,008 So there are no huge differences with this particular example, 83 00:04:54,008 --> 00:04:58,452 but it is introducing those extra code values. 84 00:04:58,453 --> 00:05:02,452 So let's look at the other extreme where we are 85 00:05:02,452 --> 00:05:04,452 looking at negative alpha values. 86 00:05:04,453 --> 00:05:07,753 So here I've artificially pushed the alpha to a negative value 87 00:05:07,753 --> 00:05:10,786 and I have merged over top of that same checkerboard 88 00:05:10,786 --> 00:05:13,119 background so because there is no alpha, 89 00:05:13,119 --> 00:05:19,119 it doesn't know what to do with the image on top of it and it looks transparent. 90 00:05:19,119 --> 00:05:22,453 So it's not giving us that proper math. 91 00:05:22,453 --> 00:05:27,452 If I go into the clamp tool, again clamp those values at 0 and 1. 92 00:05:27,453 --> 00:05:30,953 So here is the negative value here. 93 00:05:30,953 --> 00:05:38,453 In the alpha, clamp that value at 0 so rgb isn't changing, just the alpha. 94 00:05:38,453 --> 00:05:40,452 Take a look at it. 95 00:05:40,452 --> 00:05:45,652 Again it looks like it's transparent so if we compare the two images, 96 00:05:45,652 --> 00:05:48,008 qc difference, with the difference operator, 97 00:05:48,008 --> 00:05:49,564 they are the same. 98 00:05:49,564 --> 00:05:50,341 So again, 99 00:05:50,341 --> 00:05:56,119 generally speaking if you have alpha values that are below 0 and above 1, 100 00:05:56,119 --> 00:06:01,453 for the most part you are just carrying around extra code values. 101 00:06:01,453 --> 00:06:07,738 There is nothing more black than 100% black so 0 and there's 102 00:06:07,738 --> 00:06:12,452 nothing more opaque than 100% opaque which is 1. 103 00:06:12,453 --> 00:06:17,786 So alpha values should be between 0 and 1 and you're just 104 00:06:17,786 --> 00:06:20,453 carrying around extra information for processing, 105 00:06:20,453 --> 00:06:25,452 which is not needed in the alpha if they are not between those two values. 106 00:06:25,453 --> 00:06:32,453 So now let's take a look at what happens if we have values above 1 in our rgb. 107 00:06:32,453 --> 00:06:34,760 So here we have two images, 108 00:06:34,760 --> 00:06:39,760 one of them is a jpeg and that is an 8-bit image and 109 00:06:39,760 --> 00:06:42,452 the second one is a 16-bit exr. 110 00:06:42,453 --> 00:06:46,244 Now you'll notice right there that took a little bit longer to load 111 00:06:46,244 --> 00:06:49,453 the exr and that is because it is a larger image. 112 00:06:49,453 --> 00:06:54,189 So the 8-bit image contains 256 levels of information. 113 00:06:54,189 --> 00:06:59,453 The values represented are between 0 and 1 in NUKE. 114 00:06:59,453 --> 00:07:07,453 So it will clip or clamp values that are over 1 and that includes rgb and a. 115 00:07:07,453 --> 00:07:11,982 So I'll use the word clipping and clamping the same as 116 00:07:11,982 --> 00:07:14,453 basically ridding of certain code values. 117 00:07:14,453 --> 00:07:21,400 Now in the 16-bit image over here, 16-bit images contain 65, 118 00:07:21,400 --> 00:07:26,453 536 levels of information so far more information. 119 00:07:26,453 --> 00:07:29,310 They are represented in NUKE between the values of 0. 120 00:07:29,310 --> 00:07:30,167 0 and 1. 121 00:07:30,167 --> 00:07:30,452 0+. 122 00:07:30,453 --> 00:07:34,663 Now I say 1+ just because a 16-bit image doesn't 123 00:07:34,663 --> 00:07:39,738 necessarily contain those extra values, but it can contain values over 1. 124 00:07:39,738 --> 00:07:44,453 Now values over 1 are called Super Whites and these are 125 00:07:44,453 --> 00:07:47,453 RGB code values that are above 1. 126 00:07:47,453 --> 00:07:50,982 They are typically found in 16-bit images or higher and 127 00:07:50,982 --> 00:07:53,453 they are also found in linear images. 128 00:07:53,453 --> 00:07:58,180 So we'll go more into linear versus log images in our next module 129 00:07:58,180 --> 00:08:01,453 so be sure to watch that for more information. 130 00:08:01,453 --> 00:08:03,347 So back to our images here. 131 00:08:03,347 --> 00:08:05,874 When I compare the 8-bit versus the 16-bit, 132 00:08:05,874 --> 00:08:08,543 generally speaking over here it's looking the same. 133 00:08:08,543 --> 00:08:13,271 We can tell that this is indeed an 8-bit image because we can 134 00:08:13,271 --> 00:08:16,214 scroll and take a look at the metadata, 135 00:08:16,214 --> 00:08:21,167 so we scroll here in the property bin and it is 8-bit fixed 136 00:08:21,167 --> 00:08:24,953 versus the 16-bit image which is 16-bit half flow. 137 00:08:24,953 --> 00:08:29,453 So now let's do a very aggressive color correction. 138 00:08:29,453 --> 00:08:34,452 So here I have a gray tool and I have brought down the game very, very far. 139 00:08:34,453 --> 00:08:38,536 So here it is and we're going to focus again up here on the 140 00:08:38,536 --> 00:08:42,214 sky where our Super Whites whites may be and the same color 141 00:08:42,214 --> 00:08:44,119 correction for the 16-bit image. 142 00:08:44,119 --> 00:08:49,453 We can see that there's more information that has popped up in the clouds. 143 00:08:49,453 --> 00:08:53,409 So the reason that we want to retain these Super White or code 144 00:08:53,409 --> 00:08:58,031 values above 1 if there are any in an RGB image is because we can 145 00:08:58,031 --> 00:09:01,821 push the color correction further and we can really retain all that 146 00:09:01,821 --> 00:09:04,453 information that is in the image. 147 00:09:04,453 --> 00:09:10,453 If we clip or clamp them, then we lose that important information. 148 00:09:10,453 --> 00:09:11,974 So for the most part, 149 00:09:11,974 --> 00:09:16,844 it's a really good rule of thumb to never clip or clamp values over 1 in 150 00:09:16,844 --> 00:09:21,052 the RGB channels but rather only keep that to the alpha. 151 00:09:21,052 --> 00:09:27,452 So let's take a look at a couple of ways to do that with our tools. 152 00:09:27,453 --> 00:09:31,303 So here is a green constant and the green constant has 153 00:09:31,303 --> 00:09:34,453 artificially been inflated to an alpha value of 2. 154 00:09:34,453 --> 00:09:38,105 The clamp will take care of that so it will clamp it to 1, 155 00:09:38,105 --> 00:09:40,452 but the gray tool can also do the same. 156 00:09:40,453 --> 00:09:44,024 Now keep in mind the gray tool is generally reserved 157 00:09:44,024 --> 00:09:45,453 for color correction purposes. 158 00:09:45,453 --> 00:09:50,119 It has other options inside of it so when you see a gray tool, 159 00:09:50,119 --> 00:09:55,453 it will generally be recognized for color correction versus a clamp that's very 160 00:09:55,453 --> 00:10:00,453 specific to just keeping code values within a certain range. 161 00:10:00,453 --> 00:10:06,453 So this is the preferred tool to use when clipping or clamping your values. 162 00:10:06,453 --> 00:10:09,844 Inside of the gray tool if I scroll to the bottom of the 163 00:10:09,844 --> 00:10:13,503 property bin you'll see that there is a black clamp and this is 164 00:10:13,503 --> 00:10:17,703 by default so we'll make sure that there is no negative black 165 00:10:17,703 --> 00:10:19,453 values and also white clamp. 166 00:10:19,453 --> 00:10:23,874 So you can clamp that white value and by default it's turned 167 00:10:23,874 --> 00:10:26,452 off because you don't generally want it. 168 00:10:26,453 --> 00:10:32,078 The channels for a gray tool generally come in RGB so you do have to 169 00:10:32,078 --> 00:10:37,953 force it to alpha so that you are not color correcting your RGB and 170 00:10:37,953 --> 00:10:42,453 restraining or keeping the values between 0 and 1. 171 00:10:42,453 --> 00:10:47,452 So only keep those values between 0 and 1 in your alpha. 172 00:10:47,453 --> 00:10:50,453 So as a quick recap of this particular clip, 173 00:10:50,453 --> 00:10:54,453 we took a look at the importance of keeping our alpha values 174 00:10:54,453 --> 00:11:00,589 between 0 and 1 and why we want to make sure that we don't clip 175 00:11:00,589 --> 00:11:03,452 or clamp those values in our RGB. 176 00:11:03,453 --> 00:11:13,453 We also looked at the clamp tool versus clamping or 177 00:11:13,453 --> 00:11:20,453 clipping those values in the gray tool. 15914

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.