Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
welcome to this overview of pxfz Defocus
note that a Pixel Fudger version 3 now includes three
different
defocus nodes
we have pxfz defocus for depth based defocus
we also have two other nodes
we have pxfi defocus to use any random
ramp or gradient as a source of defocus
and we have deep defocus to defocus deep images
this video is about zdfocus
there will be a separate video about idfocus and d
defocus
so let's have a look at the real life example here
I've got a
3 render here that was delivered to me with aovs
so if I look here I have a depth pass
the values are normal values in meters
so this scene is in meters
so if I look here at the value the chair
is about half a meter in front of the camera
the wall is about 8 meters away
this chair is about 2.4 meters away and so on and so on
so now that I have a good depth pass I can try to
defocus this image
of course you could do that with the built in
zdfocus node so nuke includes a zdfocus
and you could totally achieve a good defocus with it
however the interface is not the most user friendly
and there's one big thing that's missing here is there
there is no way to include camera information
like F stop focal length or
sensor size and so on
so that's a little omission here
there's we have to estimate the size of the defocus
and there's no way to
enter values for our lens here so
to try to work around that we now have a
PXF ZD Focus which essentially is a front end for
ZD Focus so under the hood there is a single
ZD Focus node along with some utilities
but the bulk of the work is being done by
is that the focus node
so here I'm gonna connect my rgba
Z input so it's expecting the depth to be on a
separate layer here
here we go put my viewer on it everything goes blurry
I've got an autofocus Jack
if you don't see it make sure your overly is turned on
with Q and then
if I move the autofocus Jack
I can specify which area is supposed to be in focus
so now I'm focusing on the wall
if I bring it here I'm gonna focus on the chair
there we go and if I put it forward here
I'm gonna focus on the chair in the very foreground
like so
so let's
go back to that middle chair here
all right so let's have a look at the various
knobs and controls here
so first I got to specify which kind of
the focus I want I've got a choice of
gosh and blur which is not
real life accurate
this doesn't look like a real lens
but you might want to have
some variable blur
for some reason
you can do the focus which will give you
little circles
actually
let's change the defocus point to be able to see the
filter a bit better
so I'm going to focus on the chair in the foreground
here we can see the filter so if I go to gaushan
you can see that it's a gaushan blur like a blur node
this doesn't look like a real life lens
if we choose the focus
then this would look like a lens wide open with a
circular aperture
and then we can choose bouquet which will
use the custom bouquet
and we can customize that using the bouquet tab here
so if I want let's say a 5 blated lens
I can change the number of blades
and now I'm seeing little pentagons
instead of little circles
if you want to see the
bouquet shape you can click View Bouquet
and customize
the bouquet
character
so you can have a donut you can have more noise
you can have more chrome aberration and so on
so you can customize that
as much as you want I'm not going to go through every
knob here each knob should have a tool tip
so if you're not sure what a specific knob does
you can look at the tool tips
and if we turn off View Bouquet
now we're back to our rendered image
and we could see our beautiful
custom bouquet here
if you need a very
custom bouquet and you cannot achieve it with the
bouquet tab here you can feed your own custom image
in the bouquet input
now we should have a little b's
as our d focus shape here
so this is the bouquet tab
let's go back to regular round d focus
here we go so another big feature here is
lens simulation
so if I know the f stop and
aperture of my lens I can plug that in here
and get real life accurate defocus
so let's move the focus point
to the middle somewhere here
here we go and go to the Lens Simulation tab
and click enable Lens Simulation
our specific scene is built in meters so we're gonna
switch that to meters
this lens is a 35mm lens
the f stop we get to choose the f stop
and the sensor size for this specific render was
32mm wide we only need
the sensor width
here we go so this is a physically accurate
depiction of what the defocus should look like
if we took a picture of this scene
with a 35 millimeter lens at f 1.4
on a film back or a sensor that was 32 millimeters wide
so this is a big update compared to the built in
Z the focus node
that comes with nuke
now we can enter real life numbers here
so let's go through the other
parameters we've already covered
the type of filter here
you can turn on and off GPU if you
have a powerful GPU
if it gets too slow
you can decrease the resolution for more interactivity
so you can choose half Rez quarter Rez 18th rez to get
faster if your depth is not stored in depth point Z
you can choose which channel your contains your depth
so usually it's gonna be depth Point Z
if it comes from a deep from image
you might want to use deep front
but most of the time it's gonna be depth Point Z
if it's not in one of these channels
you'll have to shuffle it first
depth style refers to which type of depth encoding
is it real values like our shot here
was the values really refer to the depth
or is it more of a scanline render type of
format where each value
has been inverted so 1 divided by the value
so this will be for
scanline render and this will be for most 3D packages
autofocus this is the picker
this is what we move here
so you shouldn't have to enter values here
this is just to move the picker by hand
focus plane is how far away in front of the lens is the
area that's in focus
so that chair that we want in focus is at 2.37
meters in front of the lens
we can use the auto focus picker
or if you have a very busy scene
you can enter value by and
if you know how far away the item is
so I know this wall is about
8 meters away
so if I set the focus plane to 8 meters
then the wall should be in focus and everything
else will be out of focus
here we go let's go back to the chair
if you do not want to use
lens simulation you can specify the blur
or the amount of the focus by hand
but this is great out
because lens simulation is turned on
let's turn that off
and now we can specify the amount of
defocus at infinity
so at infinity will have 15 pixels of defocus
note that this is not the maximum
amount of the focus possible
if you have something really close to the camera
it's gonna be much bigger than 15 pixels
so that's why we also have max size
so this is an upper limit on how
blurry things can get
so if you have stuff really close to camera or really
big
size or a really big aperture
then you might want to increase the max size
so this is the limit of how big
single pixel can be defocused
aspect ratio is for animorphic type defocus
so if you set it 2.5
then you will have ovals instead of
circles
here we go and mix is a mix knob just like
most nuke notes
you can
have mix your result with the original if you want to
there we go so
if you need to limit the effect
only to some area of the frame
then you can mask your effect for example with Erodo
like so
and now you can limit the effect only on some area
so the mask is not meant to feed depth information
depth information should come in the rgbaz input
so there you go
that was an overview of PXF Zdfocus
a more user friendly front end
to the built in Zdfocus node
I hope you've enjoyed it and I'll see you in the
next video goodbye
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.