All language subtitles for 05_Lens_distortion

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
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 Download
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:00,133 --> 00:00:00,866 in this lesson 2 00:00:00,866 --> 00:00:02,700 we're gonna learn about lens distortion 3 00:00:02,700 --> 00:00:04,366 and field curvature 4 00:00:04,900 --> 00:00:07,166 so here's our camera diagram again 5 00:00:07,200 --> 00:00:10,566 we are now inside the filter and inside the lens hood 6 00:00:10,566 --> 00:00:12,400 so now we're hitting the actual glass 7 00:00:12,400 --> 00:00:13,700 elements of the lens 8 00:00:13,700 --> 00:00:16,400 and there's a lot of different things happening here 9 00:00:16,400 --> 00:00:18,566 so we're gonna begin by looking at 10 00:00:18,566 --> 00:00:21,366 lens distortion and field curvature 11 00:00:21,500 --> 00:00:24,566 now lens distortion happens because there are so many 12 00:00:24,566 --> 00:00:27,266 elements and so many things we want to fix 13 00:00:27,766 --> 00:00:31,033 uh we need to somewhat bend the image 14 00:00:31,100 --> 00:00:34,866 and you'll notice we are going against a flat sensor 15 00:00:34,900 --> 00:00:37,000 so lens distortion 16 00:00:37,000 --> 00:00:40,300 shows itself usually in bent lines 17 00:00:40,333 --> 00:00:43,200 so I wanna open up an image from a wide angle lens 18 00:00:43,200 --> 00:00:44,333 and you can see 19 00:00:44,333 --> 00:00:47,300 that the lines here that are straight in real life 20 00:00:47,300 --> 00:00:50,700 are bent to an almost absurd angle 21 00:00:50,766 --> 00:00:52,866 now this was not shot in some sort of 22 00:00:52,866 --> 00:00:54,266 uh fairy land 23 00:00:54,266 --> 00:00:59,033 this is actually just the natural um result 24 00:00:59,066 --> 00:01:02,766 of trying to remove as many aberrations as possible 25 00:01:02,933 --> 00:01:06,333 and so this is more common with wider angle lenses 26 00:01:06,333 --> 00:01:08,066 but even uh 27 00:01:08,066 --> 00:01:11,466 zoom lenses or even high focal length lenses 28 00:01:11,466 --> 00:01:14,500 will show a little bit of lens distortion 29 00:01:14,866 --> 00:01:15,700 now in our case 30 00:01:15,700 --> 00:01:17,633 we're at a somewhat unique 31 00:01:17,766 --> 00:01:20,266 um position in that we do 32 00:01:20,266 --> 00:01:23,133 not have any lens distortion to go off of 33 00:01:23,133 --> 00:01:24,600 since this is a CG image 34 00:01:24,600 --> 00:01:27,900 it does not have any natural lens distortion in it 35 00:01:28,066 --> 00:01:31,300 if we were adding this or modifying a C 36 00:01:31,300 --> 00:01:32,466 G or excuse me 37 00:01:32,466 --> 00:01:34,266 a real life clip 38 00:01:34,266 --> 00:01:36,133 we would need to calculate 39 00:01:36,133 --> 00:01:38,066 the lens distortion happening 40 00:01:38,066 --> 00:01:42,033 and then match that inside of our composite 41 00:01:42,533 --> 00:01:43,300 now on our case 42 00:01:43,300 --> 00:01:45,600 we're just going to add a lens distortion 43 00:01:45,600 --> 00:01:48,833 so I'm gonna hit tab and drop in a lens distortion node 44 00:01:49,333 --> 00:01:50,466 and drop this in 45 00:01:50,666 --> 00:01:53,333 now parts of this node only work inside of Nuke X 46 00:01:53,333 --> 00:01:54,533 which I'm currently running 47 00:01:54,533 --> 00:01:57,066 so uh we'll take a look at those here in a second 48 00:01:57,066 --> 00:01:57,866 but for now 49 00:01:57,866 --> 00:02:00,700 we can add the different types of distortion 50 00:02:00,700 --> 00:02:01,933 to our image 51 00:02:01,933 --> 00:02:03,566 so there's two main types 52 00:02:03,566 --> 00:02:04,566 well three main types 53 00:02:04,566 --> 00:02:05,366 I should say 54 00:02:05,400 --> 00:02:06,966 first is pin cushion 55 00:02:06,966 --> 00:02:10,466 where the corners of our image are pulled out 56 00:02:10,733 --> 00:02:12,666 uh in sort of a pin cushion manner 57 00:02:12,666 --> 00:02:15,400 so let me scale this down so we can see 58 00:02:15,600 --> 00:02:18,033 exactly what is happening to our frame 59 00:02:19,500 --> 00:02:22,966 and let me turn back on the black outside 60 00:02:22,966 --> 00:02:25,000 so I'm gonna disable my crop up here 61 00:02:25,000 --> 00:02:27,366 so we can see what is actually happening 62 00:02:27,966 --> 00:02:29,700 oh that is not actually fixing that 63 00:02:29,700 --> 00:02:32,600 so right before our lens distortion 64 00:02:32,666 --> 00:02:34,866 just gonna add a transform node 65 00:02:36,066 --> 00:02:37,566 that's still giving us the outside 66 00:02:37,566 --> 00:02:40,400 so let's try to scale us down in the transform node 67 00:02:40,533 --> 00:02:41,933 and we're probably doing a little 68 00:02:41,933 --> 00:02:43,533 bit too heavy of a lens distortion 69 00:02:43,533 --> 00:02:44,700 so let's pull that back 70 00:02:44,800 --> 00:02:47,600 okay so here is a pin cushion distortion 71 00:02:47,600 --> 00:02:50,866 you can see that the corners are being pulled out 72 00:02:50,966 --> 00:02:53,366 now the opposite of the pin cushion is a barrel 73 00:02:53,366 --> 00:02:54,633 distortion where 74 00:02:54,700 --> 00:02:57,500 the image begin taking on the shape of a barrel 75 00:02:57,500 --> 00:02:59,700 you'll notice the corners are being pulled in 76 00:02:59,800 --> 00:03:02,600 and lens distortion always happens or has the most 77 00:03:02,600 --> 00:03:05,500 effect on the corners or edges of an image 78 00:03:05,533 --> 00:03:08,200 you'll notice that this pixel is displaced much 79 00:03:08,200 --> 00:03:11,666 much further than pixels in the center of our image 80 00:03:12,266 --> 00:03:15,100 now the third type of distortion is a 81 00:03:15,100 --> 00:03:16,466 mustache distortion 82 00:03:16,466 --> 00:03:18,666 and it's gonna be a little bit difficult to see 83 00:03:18,700 --> 00:03:19,966 but if you just imagine 84 00:03:19,966 --> 00:03:22,700 the curvature of a fancy mustache 85 00:03:22,700 --> 00:03:26,000 it is a complex distortion with the mix of barrel 86 00:03:26,000 --> 00:03:28,100 and pincushing like properties 87 00:03:28,666 --> 00:03:31,866 now since we do not have a source to go off of 88 00:03:31,866 --> 00:03:33,433 I'm just gonna remove that 89 00:03:33,566 --> 00:03:35,033 transform there 90 00:03:36,366 --> 00:03:38,266 so that we can see this again 91 00:03:38,533 --> 00:03:42,400 uh we can uh sort of make up a lens distortion 92 00:03:42,400 --> 00:03:44,466 although I really do not like uh 93 00:03:44,466 --> 00:03:48,000 going by this method as it's uh a little bit random for 94 00:03:48,100 --> 00:03:49,466 uh my preferences 95 00:03:49,466 --> 00:03:52,366 so uh inside of your footage folder 96 00:03:52,700 --> 00:03:55,466 we're gonna have a piece of footage that are shot on 97 00:03:55,466 --> 00:03:56,400 one of our lenses 98 00:03:56,400 --> 00:03:58,200 so I'm just gonna import this 99 00:03:59,933 --> 00:04:02,800 and this is just a piece of grid 100 00:04:02,800 --> 00:04:05,166 paper that we shot with a camera lens 101 00:04:05,166 --> 00:04:08,433 this is one of the many ways of analyzing a lens 102 00:04:08,733 --> 00:04:11,466 so I'm gonna plug the lens distortion node into this 103 00:04:11,466 --> 00:04:13,133 and again if you do not have Nuke X 104 00:04:13,133 --> 00:04:15,100 this is not going to work 105 00:04:15,300 --> 00:04:18,733 um but we can jump over to grid analysis 106 00:04:18,733 --> 00:04:21,300 and change our grid type to thin line 107 00:04:22,200 --> 00:04:23,333 analyze the grid 108 00:04:23,333 --> 00:04:26,500 and it is going to give us the distortion values 109 00:04:27,900 --> 00:04:30,400 so we'll let uh new tick for a second 110 00:04:30,866 --> 00:04:32,866 and here we can see the original grid 111 00:04:32,900 --> 00:04:34,400 you can see it is distorted 112 00:04:34,400 --> 00:04:38,300 uh with a slight what looks like a barrel distortion 113 00:04:38,366 --> 00:04:39,933 and then the undistorted 114 00:04:39,933 --> 00:04:42,700 makes all of these lines straight again 115 00:04:42,966 --> 00:04:43,933 and you might be asking 116 00:04:43,933 --> 00:04:47,500 why are we trying to undistort this random image 117 00:04:47,566 --> 00:04:49,400 and the reason we're doing that is 118 00:04:49,400 --> 00:04:52,966 to get natural values for a lens distortion 119 00:04:53,000 --> 00:04:53,533 now of course 120 00:04:53,533 --> 00:04:55,400 if you have your live action footage 121 00:04:55,400 --> 00:04:57,233 or if you have your real footage 122 00:04:57,500 --> 00:05:01,633 analyze that footage to get your lens distortion values 123 00:05:02,400 --> 00:05:03,400 but since we don't 124 00:05:03,400 --> 00:05:05,000 I'm just gonna use this uh 125 00:05:05,000 --> 00:05:07,533 random grid image we had laying around 126 00:05:07,533 --> 00:05:10,500 plug this back into our original source 127 00:05:10,500 --> 00:05:12,666 and uncheck und distort 128 00:05:12,733 --> 00:05:14,166 so we are now 129 00:05:14,300 --> 00:05:16,533 and if I turn off my grid overlay here 130 00:05:16,533 --> 00:05:18,866 we are now distorting our image 131 00:05:18,866 --> 00:05:21,000 with this lens distortion 132 00:05:21,133 --> 00:05:22,366 now let's double check 133 00:05:22,600 --> 00:05:24,666 and our let's see our 134 00:05:25,300 --> 00:05:27,133 our image has grown leaps and bounds 135 00:05:27,133 --> 00:05:30,100 so let's actually add a few crop nodes in here to 136 00:05:30,266 --> 00:05:31,166 cut that down 137 00:05:31,166 --> 00:05:32,733 let's see where that would end up 138 00:05:32,733 --> 00:05:35,200 so just going to crop this oops 139 00:05:35,200 --> 00:05:36,166 not cross talk it 140 00:05:36,166 --> 00:05:38,000 I'm going to crop it down 141 00:05:38,000 --> 00:05:39,166 just so we're not 142 00:05:39,500 --> 00:05:40,900 unnecessarily 143 00:05:40,900 --> 00:05:42,600 adding a lot of information 144 00:05:42,600 --> 00:05:44,600 before our lens stored there 145 00:05:45,333 --> 00:05:47,200 alright so here is with our new crop 146 00:05:47,200 --> 00:05:49,266 and we might need to increase the size of this 147 00:05:49,266 --> 00:05:50,066 a little bit 148 00:05:50,500 --> 00:05:52,933 trying to see if this lens distortion 149 00:05:52,933 --> 00:05:54,566 it is um okay 150 00:05:54,566 --> 00:05:55,866 so without the crop 151 00:05:55,933 --> 00:05:57,933 one thing you'll need to be careful about whenever 152 00:05:57,933 --> 00:05:59,400 adding lens distortions 153 00:05:59,400 --> 00:06:03,433 is if you lose information from the edge of the frame 154 00:06:03,566 --> 00:06:06,633 so you'll notice here that if we zoom in 155 00:06:06,733 --> 00:06:08,300 we are losing about 156 00:06:08,300 --> 00:06:08,866 I don't know 157 00:06:08,866 --> 00:06:12,966 5 to 6 pixels on the edges of our frames 158 00:06:13,100 --> 00:06:15,066 and this is noticeable because 159 00:06:15,066 --> 00:06:18,033 the last line of pixels will be stretched out 160 00:06:18,333 --> 00:06:19,266 now unfortunately 161 00:06:19,266 --> 00:06:20,700 with this uh 162 00:06:20,700 --> 00:06:22,266 kind of a mechanical looking image 163 00:06:22,266 --> 00:06:23,700 it's gonna be difficult to see 164 00:06:23,700 --> 00:06:26,566 but you can tell here that these pixels are 165 00:06:26,566 --> 00:06:29,433 all repeats of the exact same pixel 166 00:06:29,866 --> 00:06:31,533 and so we need to be careful whenever we 167 00:06:31,533 --> 00:06:33,133 use a lens distortion 168 00:06:33,133 --> 00:06:34,333 so if we add a crop 169 00:06:34,333 --> 00:06:35,866 we can see that our 170 00:06:35,966 --> 00:06:39,233 uh new distortion is much smaller 171 00:06:39,400 --> 00:06:40,766 than the actual image 172 00:06:40,766 --> 00:06:43,266 so what we're gonna need to do is actually scale 173 00:06:43,266 --> 00:06:44,500 up the image 174 00:06:44,566 --> 00:06:47,800 uh if we want to keep it within these boundaries 175 00:06:48,500 --> 00:06:49,400 now an important note 176 00:06:49,400 --> 00:06:50,900 if you are matching 177 00:06:51,133 --> 00:06:53,000 any kind of other element 178 00:06:53,066 --> 00:06:56,333 to a different element that has lens distortion 179 00:06:56,333 --> 00:06:57,633 the workflow is 180 00:06:57,900 --> 00:06:59,766 you und distort everything 181 00:06:59,766 --> 00:07:02,266 so you calculate the distortion on everything 182 00:07:02,300 --> 00:07:04,600 und distort it and then 183 00:07:04,966 --> 00:07:06,600 comp everything together 184 00:07:06,600 --> 00:07:07,900 and then finally 185 00:07:08,133 --> 00:07:10,366 add the distortion again 186 00:07:10,366 --> 00:07:12,533 and what that is going to do is it's going to give you 187 00:07:12,533 --> 00:07:13,966 uh something akin 188 00:07:13,966 --> 00:07:16,866 to the original uh frame 189 00:07:17,500 --> 00:07:19,566 that we started with but again 190 00:07:19,566 --> 00:07:21,200 since we're working with a CG source 191 00:07:21,200 --> 00:07:23,666 we really only need to distort this 192 00:07:24,366 --> 00:07:26,400 the importance of lens distortion is that 193 00:07:26,400 --> 00:07:27,733 straight lines are 194 00:07:27,733 --> 00:07:30,166 not actually straight when they're captured by a camera 195 00:07:30,166 --> 00:07:32,100 and although it's unconscious 196 00:07:32,300 --> 00:07:33,700 our brain knows this 197 00:07:33,700 --> 00:07:35,866 so even if you have a completely CG image 198 00:07:35,866 --> 00:07:38,766 we need to add a little bit of lens distortion 199 00:07:39,000 --> 00:07:40,566 now to get around this curvature 200 00:07:40,566 --> 00:07:42,100 I'm just gonna add in a transform 201 00:07:42,100 --> 00:07:43,800 and scale this up a little bit 202 00:07:44,066 --> 00:07:45,100 now I know you're thinking 203 00:07:45,100 --> 00:07:46,100 scaling up oh 204 00:07:46,100 --> 00:07:47,200 what are we doing 205 00:07:47,200 --> 00:07:48,066 uh we're gonna 206 00:07:48,066 --> 00:07:49,200 ruin our image 207 00:07:49,200 --> 00:07:50,666 but again in this case 208 00:07:50,666 --> 00:07:51,766 we have a CG image 209 00:07:51,766 --> 00:07:54,400 which needs to be softened regardless 210 00:07:54,533 --> 00:07:56,133 and scaling it up a little 211 00:07:56,133 --> 00:07:58,466 bit is actually going to soften it 212 00:07:58,600 --> 00:07:59,600 just enough 213 00:07:59,600 --> 00:08:02,566 so that it's not too noticeable alright 214 00:08:02,566 --> 00:08:04,000 so if we go back to 215 00:08:04,000 --> 00:08:05,700 uh 1 x zoom 216 00:08:05,733 --> 00:08:06,600 let's take a look at this 217 00:08:06,600 --> 00:08:07,666 with and without 218 00:08:07,666 --> 00:08:08,900 our lens distortion 219 00:08:08,900 --> 00:08:09,700 so you can see here 220 00:08:09,700 --> 00:08:12,666 our lens distortion is bending the image 221 00:08:12,666 --> 00:08:13,766 in a way that actually 222 00:08:13,766 --> 00:08:15,566 our eyes do find pleasing 223 00:08:15,566 --> 00:08:16,566 and once this begins 224 00:08:16,566 --> 00:08:18,300 moving throughout our shot 225 00:08:18,600 --> 00:08:20,533 the sort of dynamic way 226 00:08:20,533 --> 00:08:21,566 those straight lines 227 00:08:21,566 --> 00:08:22,733 are going to bend 228 00:08:22,733 --> 00:08:24,766 and shift inside of our frame 229 00:08:24,766 --> 00:08:25,800 is gonna feel 230 00:08:25,800 --> 00:08:27,833 much more realistic to us than 231 00:08:27,900 --> 00:08:29,100 seeing a completely 232 00:08:29,100 --> 00:08:30,700 un distorted image 233 00:08:31,266 --> 00:08:32,566 so that is how we can 234 00:08:32,566 --> 00:08:34,366 add lens distortion now 235 00:08:34,366 --> 00:08:36,800 I actually wanted to go into field curvature in this 236 00:08:36,800 --> 00:08:37,600 lesson as well 237 00:08:37,600 --> 00:08:38,666 but as you can see here 238 00:08:38,666 --> 00:08:39,200 we're running 239 00:08:39,200 --> 00:08:40,066 out of time 240 00:08:40,066 --> 00:08:40,800 so let's actually 241 00:08:40,800 --> 00:08:41,966 cover field 242 00:08:41,966 --> 00:08:43,300 uh curvature in 243 00:08:43,300 --> 00:08:44,466 the next lesson 244 00:08:45,466 --> 00:08:46,166 so in this lesson 245 00:08:46,166 --> 00:08:47,866 we Learned about lens distortion 246 00:08:47,866 --> 00:08:49,000 which is just a natural 247 00:08:49,000 --> 00:08:49,866 characterist 248 00:08:49,866 --> 00:08:50,533 characteristic 249 00:08:50,533 --> 00:08:52,233 whenever we bend light 250 00:08:52,266 --> 00:08:52,966 this is most 251 00:08:52,966 --> 00:08:54,333 commonly or most 252 00:08:54,333 --> 00:08:55,666 extensively seen 253 00:08:55,700 --> 00:08:57,400 inside of a 254 00:08:57,400 --> 00:08:58,666 wide angle lens 255 00:08:58,666 --> 00:08:59,966 as we can see here 256 00:08:59,966 --> 00:09:01,533 but even uh 257 00:09:01,533 --> 00:09:02,866 at any focal length 258 00:09:02,866 --> 00:09:03,666 we still need to 259 00:09:03,666 --> 00:09:04,533 add this into 260 00:09:04,533 --> 00:09:05,766 our composites 261 00:09:05,766 --> 00:09:07,400 and if it is inside of 262 00:09:07,400 --> 00:09:08,700 our natural footage 263 00:09:08,700 --> 00:09:09,400 we can either 264 00:09:09,400 --> 00:09:10,366 understort it to 265 00:09:10,366 --> 00:09:11,166 add in more 266 00:09:11,166 --> 00:09:12,633 elements naturally 267 00:09:12,700 --> 00:09:14,166 or if we're working with 268 00:09:14,166 --> 00:09:15,266 uh CG render 269 00:09:15,266 --> 00:09:17,466 we need to add in this lens distortion 270 00:09:17,466 --> 00:09:18,766 so that the lines 271 00:09:18,766 --> 00:09:20,733 curve in a more pleasing manner 18694

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