Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,533 --> 00:00:03,166
welcome to this new Pixel fudger video
2
00:00:03,200 --> 00:00:06,700
today we have an epic showdown between the
3
00:00:06,866 --> 00:00:08,500
said the focus node
4
00:00:08,733 --> 00:00:11,666
the new bouquet node and will also throw in
5
00:00:11,800 --> 00:00:14,600
pxfid focus into the mix
6
00:00:14,733 --> 00:00:18,366
we are gonna do a more creative type of defocus
7
00:00:18,366 --> 00:00:21,500
something that simulates the effect of a tilt shift
8
00:00:21,600 --> 00:00:23,966
lens if you are interested in a more
9
00:00:23,966 --> 00:00:25,700
traditional depth of field
10
00:00:25,866 --> 00:00:28,200
defocus based on a depth channel
11
00:00:28,333 --> 00:00:31,533
this will come in a separate video very soon
12
00:00:31,533 --> 00:00:33,766
so make sure you're subscribed to the channel
13
00:00:33,766 --> 00:00:34,933
so you don't miss it
14
00:00:35,100 --> 00:00:38,400
alright so I have a beautiful photo of a city here
15
00:00:38,400 --> 00:00:41,100
I've made sure to convert it to linear properties
16
00:00:41,100 --> 00:00:42,466
so all my highlights are
17
00:00:42,466 --> 00:00:45,333
now nice and punchy around 10 12
18
00:00:45,333 --> 00:00:46,900
13 something like that
19
00:00:47,100 --> 00:00:50,800
so that's gonna really bloom nicely when we defocus it
20
00:00:51,133 --> 00:00:52,733
and I also have
21
00:00:53,700 --> 00:00:56,400
an animated gradient that I've built with a
22
00:00:56,400 --> 00:00:58,400
couple roto shapes here just to give us
23
00:00:58,400 --> 00:01:02,333
a control channel to drive the amount of the focus
24
00:01:02,366 --> 00:01:04,866
I've combined the two images together
25
00:01:04,866 --> 00:01:08,066
with a copy node by copying the alpha
26
00:01:08,133 --> 00:01:11,066
of my roto to the depth layer
27
00:01:11,333 --> 00:01:15,666
the default depth dot Z layer that's built into nuke
28
00:01:15,766 --> 00:01:17,066
and that's gonna
29
00:01:17,066 --> 00:01:20,900
make both images travel through the same pipe here
30
00:01:21,100 --> 00:01:24,500
and we're gonna create a Z defocus node
31
00:01:26,166 --> 00:01:27,700
and a Boca node
32
00:01:30,733 --> 00:01:33,566
and we're gonna use the main input for Zeti
33
00:01:33,566 --> 00:01:35,466
Focus is called image as it should
34
00:01:35,466 --> 00:01:38,733
and bouquet node is using the input input
35
00:01:38,733 --> 00:01:40,166
so that's a little bit weird
36
00:01:40,900 --> 00:01:43,900
for a name but that's fine that's the main input here
37
00:01:43,900 --> 00:01:46,100
all right so we're gonna connect both nodes
38
00:01:47,000 --> 00:01:47,800
like so
39
00:01:48,100 --> 00:01:52,266
and now we have a few items to adjust on both sides
40
00:01:52,266 --> 00:01:53,400
so first we got to pick
41
00:01:53,400 --> 00:01:55,266
which channels we want to defocus
42
00:01:55,266 --> 00:01:57,300
by default zdfocus picks all
43
00:01:57,300 --> 00:02:00,566
I don't want to do all channels I just want to do RGBA
44
00:02:01,466 --> 00:02:01,900
and
45
00:02:01,900 --> 00:02:04,566
here on the bouquet side it's already set to our GBA
46
00:02:04,566 --> 00:02:06,900
that's fine then we're gonna pick
47
00:02:06,900 --> 00:02:09,766
which channel we want to use for the control channel
48
00:02:09,800 --> 00:02:11,966
so both are set by default to
49
00:02:12,333 --> 00:02:16,600
depth Z so that's fine here and that's fine here also
50
00:02:17,100 --> 00:02:19,766
next on the ZD Focus side we have to pick
51
00:02:19,933 --> 00:02:21,733
which type of mask we want to use
52
00:02:21,866 --> 00:02:25,166
so for this demo we want to use a direct
53
00:02:26,000 --> 00:02:27,600
mask so that's going to
54
00:02:27,866 --> 00:02:31,133
directly drive our defocus by using the
55
00:02:31,166 --> 00:02:31,966
control channel
56
00:02:32,200 --> 00:02:34,800
we don't need to adjust that here on the bouquet side
57
00:02:35,166 --> 00:02:37,200
next we need to adjust the focus plane
58
00:02:37,200 --> 00:02:38,133
so that's the
59
00:02:38,166 --> 00:02:40,800
area of the control channel that's gonna be sharp
60
00:02:40,800 --> 00:02:42,866
so we want the black to be sharp
61
00:02:42,900 --> 00:02:45,166
so we want the focus plane set to zero
62
00:02:45,400 --> 00:02:48,266
on the bouquet side the focal plane is set to 100
63
00:02:48,266 --> 00:02:50,400
by default we're gonna change that to
64
00:02:51,266 --> 00:02:52,066
0
65
00:02:52,133 --> 00:02:54,733
and next we need to adjust the size
66
00:02:54,900 --> 00:02:56,366
we want a big old defocus
67
00:02:56,366 --> 00:02:58,533
we want lots of defocus in the corners
68
00:02:58,566 --> 00:03:01,133
so I'm gonna increase that to a big number like 80
69
00:03:01,133 --> 00:03:04,733
pixels and notice that my defocus is not that big here
70
00:03:04,766 --> 00:03:06,200
that's because I'm hitting the
71
00:03:06,200 --> 00:03:07,600
maximum limit here
72
00:03:07,600 --> 00:03:10,733
so I need to increase the maximum to at least 80
73
00:03:10,900 --> 00:03:13,400
I'm gonna give myself a bit of headroom
74
00:03:13,400 --> 00:03:15,800
and increase it all the way up to 100
75
00:03:15,966 --> 00:03:17,700
on the bouquet side
76
00:03:17,700 --> 00:03:20,366
the size is called multiplier and I'm gonna
77
00:03:20,366 --> 00:03:21,966
change that to 80
78
00:03:22,200 --> 00:03:26,766
so now I have a very similar result on both
79
00:03:26,800 --> 00:03:29,966
sides all right cool now we can start comparing so
80
00:03:29,966 --> 00:03:31,066
right off the bat
81
00:03:31,100 --> 00:03:33,300
I can tell that bouquet is much
82
00:03:33,333 --> 00:03:35,133
slower I've made sure to enable
83
00:03:35,333 --> 00:03:36,800
render all lines
84
00:03:36,800 --> 00:03:37,500
on both
85
00:03:37,500 --> 00:03:40,933
viewers so zooming in and out won't affect performance
86
00:03:41,066 --> 00:03:44,100
so if I render both their their
87
00:03:44,333 --> 00:03:45,200
nuke renders
88
00:03:45,366 --> 00:03:48,066
both viewers one after the other so we can compare
89
00:03:48,166 --> 00:03:52,933
the the speed and ZD Focus renders much much faster
90
00:03:53,300 --> 00:03:55,700
and bouquet because mainly
91
00:03:55,966 --> 00:03:58,533
ZD focus is GPU accelerated
92
00:03:58,533 --> 00:04:02,500
and bouquet isn't bouquet is 100% CPU bound so
93
00:04:02,566 --> 00:04:04,066
this result can be
94
00:04:04,066 --> 00:04:06,366
very different from one machine to the other
95
00:04:06,400 --> 00:04:09,166
it really depends on how fast your CPU is
96
00:04:09,200 --> 00:04:12,266
compared to your GPU alright so both
97
00:04:12,566 --> 00:04:14,800
renders are done so I can look at the
98
00:04:14,800 --> 00:04:16,066
difference in quality
99
00:04:16,133 --> 00:04:16,666
they look
100
00:04:16,666 --> 00:04:19,300
pretty similar on the surface but when you start
101
00:04:19,400 --> 00:04:21,766
paying attention and zooming into details
102
00:04:22,000 --> 00:04:25,066
can see they're not totally identical so on the
103
00:04:25,133 --> 00:04:27,500
bouquet side the result is pretty smooth
104
00:04:27,500 --> 00:04:29,933
and if you look on the ZD Focus side
105
00:04:30,066 --> 00:04:34,066
it's pretty steppy it's pretty jittery or frame skippy
106
00:04:34,166 --> 00:04:36,866
for example if you look at this area here
107
00:04:36,866 --> 00:04:40,866
if I toggle between frame 22 and 23 you can see the
108
00:04:41,000 --> 00:04:42,366
circle is not moving
109
00:04:42,366 --> 00:04:44,466
where is it on the bouquet side
110
00:04:44,566 --> 00:04:48,566
it is moving on this side it is changing as it should
111
00:04:48,566 --> 00:04:49,933
so when your
112
00:04:50,166 --> 00:04:53,766
renders are really steppy with a ZD focus note
113
00:04:53,766 --> 00:04:54,566
it means your
114
00:04:54,600 --> 00:04:56,900
depth layers aren't set up properly
115
00:04:56,966 --> 00:04:59,700
you can see that more clearly if we turn
116
00:04:59,700 --> 00:05:01,566
off automatic layers spacing
117
00:05:01,566 --> 00:05:03,933
and set the layers to a really low number
118
00:05:03,933 --> 00:05:05,400
like say 10 layers
119
00:05:05,700 --> 00:05:07,933
so now this is going to render really fast
120
00:05:07,933 --> 00:05:10,500
so that's really great for performance
121
00:05:10,500 --> 00:05:12,333
but the quality suffers quite a bit
122
00:05:12,333 --> 00:05:13,933
you can see when we
123
00:05:14,333 --> 00:05:15,800
playback in motion
124
00:05:15,900 --> 00:05:19,500
we can actually see the boundary between each layer
125
00:05:19,500 --> 00:05:22,333
so if we look at this we can see
126
00:05:22,966 --> 00:05:27,166
different defocuses and the transition from one band to
127
00:05:27,166 --> 00:05:29,666
another so this is great for performance
128
00:05:29,666 --> 00:05:31,700
but this is terrible for quality
129
00:05:31,733 --> 00:05:32,533
so
130
00:05:33,100 --> 00:05:34,133
adjust this
131
00:05:34,300 --> 00:05:36,866
the best way to do that would be to change our output
132
00:05:36,866 --> 00:05:38,766
to layer setup
133
00:05:38,766 --> 00:05:40,733
and now we can see the actual bands
134
00:05:40,733 --> 00:05:42,000
individual bands here
135
00:05:42,100 --> 00:05:43,400
and this is
136
00:05:44,533 --> 00:05:45,866
not optimal at all
137
00:05:45,866 --> 00:05:47,700
so one way to optimize this
138
00:05:47,733 --> 00:05:50,333
would be to bring our maximum down to the same
139
00:05:51,000 --> 00:05:52,600
value as our size
140
00:05:52,600 --> 00:05:54,966
so that's going to optimize this a little bit
141
00:05:55,066 --> 00:05:56,133
so this will create
142
00:05:56,533 --> 00:05:59,133
more bands for the same coverage
143
00:05:59,166 --> 00:06:01,466
and then we can increase the number of bands of course
144
00:06:01,466 --> 00:06:04,766
so for this we need to increase the bands quite a lot
145
00:06:05,333 --> 00:06:09,466
about 150 so we don't see the transition from one band
146
00:06:09,500 --> 00:06:12,133
to the other and now
147
00:06:12,333 --> 00:06:15,933
if we buffer just a few frames we should see our
148
00:06:16,600 --> 00:06:20,300
little bouquet circle will progressively change size at
149
00:06:20,333 --> 00:06:22,800
every frame instead of skipping frames
150
00:06:22,800 --> 00:06:23,966
so we won't see
151
00:06:24,300 --> 00:06:26,400
the banding artifacts
152
00:06:26,666 --> 00:06:28,300
so that's great we fixed our
153
00:06:28,766 --> 00:06:31,466
our problem but now our render is much
154
00:06:31,600 --> 00:06:32,666
slower it's a
155
00:06:32,733 --> 00:06:35,533
three times slower than it used to be at 50 bands
156
00:06:35,566 --> 00:06:37,966
you can see that the focus now is
157
00:06:38,066 --> 00:06:39,333
slower than it used to be
158
00:06:39,366 --> 00:06:44,000
so now in terms of speed we're pretty much similar
159
00:06:44,066 --> 00:06:45,600
another thing we can compare
160
00:06:45,600 --> 00:06:48,700
is if the results actually match between each other
161
00:06:48,900 --> 00:06:52,166
so if we compare a Z Focus
162
00:06:52,766 --> 00:06:53,900
and Boca
163
00:06:54,933 --> 00:06:57,400
here you can see that there is a difference
164
00:06:57,400 --> 00:06:58,500
so for some reason
165
00:06:58,700 --> 00:07:00,733
Boca as an arbitrary
166
00:07:01,133 --> 00:07:04,533
maximum limit that I can't seem to get away from
167
00:07:04,666 --> 00:07:07,933
so no matter what I change I cannot reach
168
00:07:07,933 --> 00:07:10,200
the actual size that I'm supposed to get
169
00:07:10,200 --> 00:07:11,200
in the corners here
170
00:07:11,200 --> 00:07:16,400
so it's not a true linear match to my roto values here
171
00:07:16,766 --> 00:07:19,133
this is a bit annoying this bouquet is
172
00:07:19,166 --> 00:07:20,733
too small compared to what it
173
00:07:20,733 --> 00:07:21,966
should be according to the
174
00:07:21,966 --> 00:07:22,600
control channel
175
00:07:22,600 --> 00:07:23,933
so this is quite annoying
176
00:07:24,000 --> 00:07:27,333
I think this is because I'm hitting the limit of
177
00:07:28,200 --> 00:07:30,266
the maximum kernel size here
178
00:07:30,333 --> 00:07:33,100
but I can't make this bigger if I
179
00:07:33,200 --> 00:07:34,566
try to put a bigger number
180
00:07:34,566 --> 00:07:36,733
it caps out at 256
181
00:07:36,966 --> 00:07:39,266
so I'm not sure what the solution is
182
00:07:39,266 --> 00:07:41,866
if you know the answer put it in the comments below
183
00:07:41,866 --> 00:07:42,900
I would love to know
184
00:07:43,300 --> 00:07:44,666
alright so that's
185
00:07:44,866 --> 00:07:48,900
another difference between both bouquet and ZD focus
186
00:07:49,700 --> 00:07:53,900
now that we have pretty similar results let's compare
187
00:07:54,533 --> 00:07:58,600
bouquet shapes so right now both are set to circles
188
00:07:58,700 --> 00:07:59,666
we can change that
189
00:07:59,666 --> 00:08:02,333
so for right now we're set to disc here
190
00:08:02,333 --> 00:08:03,900
on the zdfocus side
191
00:08:04,100 --> 00:08:07,066
if we change that to bladed then we'll have a little
192
00:08:07,133 --> 00:08:07,966
pentagon
193
00:08:08,133 --> 00:08:10,300
if we do that on the bouquet side that's in the
194
00:08:10,300 --> 00:08:12,733
kernel tab and kernel type
195
00:08:12,866 --> 00:08:14,933
circular means circles of course
196
00:08:15,000 --> 00:08:16,666
and aperture blades will give
197
00:08:16,933 --> 00:08:18,466
us little shapes
198
00:08:18,466 --> 00:08:19,933
and if we change that to
199
00:08:20,100 --> 00:08:23,100
five blades we'll get little pentagons as well
200
00:08:23,200 --> 00:08:24,600
if you want to inspect
201
00:08:25,200 --> 00:08:29,100
the bouquet shape more closely you can go in the
202
00:08:29,466 --> 00:08:32,300
output type and pick filter shape
203
00:08:32,666 --> 00:08:34,600
and on the Z focus side
204
00:08:35,133 --> 00:08:36,166
you can pick
205
00:08:37,133 --> 00:08:38,000
output
206
00:08:38,733 --> 00:08:40,400
filter shape setup
207
00:08:40,933 --> 00:08:42,333
so now we're comparing the
208
00:08:42,333 --> 00:08:45,400
bouquet shape generator on both sides
209
00:08:45,500 --> 00:08:46,700
so on the
210
00:08:46,700 --> 00:08:49,733
Z focus side you can adjust the roundness to make the
211
00:08:49,733 --> 00:08:51,966
edges straight or round
212
00:08:52,066 --> 00:08:53,600
you can adjust the
213
00:08:53,800 --> 00:08:55,800
inner brightness to give your bouquet
214
00:08:55,800 --> 00:08:56,966
a little bit more of
215
00:08:57,300 --> 00:08:59,366
a ring type of effect
216
00:08:59,366 --> 00:09:01,900
so if we go to our result now we can see
217
00:09:01,966 --> 00:09:04,300
we've got a little ringy bouquet
218
00:09:04,333 --> 00:09:06,566
and you have a few other
219
00:09:06,600 --> 00:09:08,900
adjustments so you can adjust the
220
00:09:08,966 --> 00:09:10,766
thickness of the ring and so on
221
00:09:11,333 --> 00:09:14,133
the bouquet side we have similar controls
222
00:09:14,200 --> 00:09:17,533
so if I adjust the curvature I can make the bouquet
223
00:09:17,733 --> 00:09:18,600
round or flat
224
00:09:18,600 --> 00:09:21,366
but I can't seem to get really flat edges here
225
00:09:21,366 --> 00:09:23,900
so I need to go to negative curvature
226
00:09:25,000 --> 00:09:25,566
but
227
00:09:25,566 --> 00:09:27,600
it's always kind of a bit wonky
228
00:09:27,600 --> 00:09:30,100
and it seems to be worse if I have less blades
229
00:09:30,100 --> 00:09:31,733
so if I want a true triangle
230
00:09:31,733 --> 00:09:34,066
there's no way to do an actual triangle here
231
00:09:34,400 --> 00:09:34,766
which
232
00:09:34,766 --> 00:09:37,666
you know arguably is not that common but it does exist
233
00:09:37,666 --> 00:09:39,966
and I can't seem to get straight lines here
234
00:09:39,966 --> 00:09:40,933
so this is a bit
235
00:09:41,666 --> 00:09:44,866
annoying but if we're stick with a little pentagon
236
00:09:44,866 --> 00:09:47,166
it's not too bad I guess
237
00:09:47,200 --> 00:09:48,666
but you hit the limits pretty
238
00:09:49,900 --> 00:09:52,900
early and if you want to have a ring effect
239
00:09:52,933 --> 00:09:53,800
that would be under
240
00:09:53,900 --> 00:09:57,333
optical artifacts and spherical aberration
241
00:09:57,600 --> 00:10:00,133
and it does kind of a center
242
00:10:00,866 --> 00:10:03,366
that's darker but it's a different type of shape
243
00:10:03,366 --> 00:10:06,133
so we can't really match them perfectly
244
00:10:06,733 --> 00:10:08,566
another thing that's
245
00:10:08,700 --> 00:10:11,333
available here in bouquet that's not is
246
00:10:11,333 --> 00:10:12,533
chroma aberration
247
00:10:12,666 --> 00:10:15,333
so if we go back to our result
248
00:10:17,100 --> 00:10:18,466
and enable
249
00:10:18,533 --> 00:10:19,533
chroma aberration
250
00:10:19,533 --> 00:10:21,933
or chromic aberration as they call it
251
00:10:23,566 --> 00:10:24,766
and you can see
252
00:10:25,700 --> 00:10:28,700
does a little chroma aberration type of effect on the
253
00:10:28,700 --> 00:10:29,500
edge here
254
00:10:29,966 --> 00:10:32,200
you can do that natively with a
255
00:10:32,900 --> 00:10:35,133
bouquet generator and ZD focus
256
00:10:35,133 --> 00:10:37,933
but you could fake that afterwards with a
257
00:10:37,933 --> 00:10:39,133
chroma aberration
258
00:10:39,366 --> 00:10:42,200
after the zdfocus or feed a
259
00:10:43,366 --> 00:10:46,000
bouquet shape that already has chroma aberration
260
00:10:46,266 --> 00:10:48,600
built in we'll get to that in a second
261
00:10:48,966 --> 00:10:51,600
all right so let's turn off Chrome laboration for now
262
00:10:53,533 --> 00:10:56,000
so if we look at our results
263
00:10:57,066 --> 00:10:57,700
now of course
264
00:10:57,700 --> 00:10:58,966
they won't be exactly the same
265
00:10:58,966 --> 00:11:00,466
because I'm not using the same
266
00:11:00,566 --> 00:11:02,700
bouquet shape but they are
267
00:11:03,200 --> 00:11:04,600
fairly similar
268
00:11:04,866 --> 00:11:07,766
if you're not satisfied with the bouquet generator in
269
00:11:07,766 --> 00:11:08,566
either
270
00:11:09,000 --> 00:11:10,333
zdfocus or bouquet
271
00:11:10,400 --> 00:11:13,100
you can feed it your own bouquet image
272
00:11:13,133 --> 00:11:17,133
so here I have a little image 255 by 255
273
00:11:17,300 --> 00:11:18,100
I'm gonna
274
00:11:18,133 --> 00:11:21,600
connect that to the filter input of the ZD focus node
275
00:11:21,600 --> 00:11:25,100
and the kernel input of the bouquet node
276
00:11:25,333 --> 00:11:28,666
and in zdfocus I'm gonna switch that to
277
00:11:29,200 --> 00:11:30,966
filter type image
278
00:11:31,200 --> 00:11:35,900
and for bouquet I'm gonna do kernel type input
279
00:11:37,866 --> 00:11:40,066
you can see they look similar
280
00:11:40,066 --> 00:11:42,666
but one is upside down compared to the other
281
00:11:42,666 --> 00:11:45,566
so if we want a true match between both
282
00:11:45,866 --> 00:11:48,333
nodes we need to put a mirror node
283
00:11:49,933 --> 00:11:53,600
set it to vertical flip and put that
284
00:11:54,266 --> 00:11:56,100
in between our image and our
285
00:11:57,300 --> 00:11:58,766
kernel input here
286
00:11:59,100 --> 00:12:00,800
so now we have a
287
00:12:01,900 --> 00:12:03,666
true match between them
288
00:12:03,666 --> 00:12:05,400
if we didn't have the actual
289
00:12:05,700 --> 00:12:08,333
upper limit that I'm hitting in the corners here
290
00:12:08,366 --> 00:12:10,900
they would be very very similar if not
291
00:12:10,900 --> 00:12:12,166
identical images here
292
00:12:12,166 --> 00:12:13,100
so this is
293
00:12:14,200 --> 00:12:17,466
pretty close so you can use obviously
294
00:12:17,700 --> 00:12:20,733
custom shapes here little hearts or whatever to
295
00:12:21,200 --> 00:12:22,566
have a creative output
296
00:12:22,566 --> 00:12:25,000
but you could also capture the true bouquet
297
00:12:25,000 --> 00:12:26,166
of a true lens
298
00:12:26,166 --> 00:12:28,300
so this is a photograph of a
299
00:12:28,466 --> 00:12:30,333
tiny light source that was
300
00:12:31,066 --> 00:12:32,500
shot out of focus
301
00:12:32,500 --> 00:12:35,066
and this is the actual real shape of the
302
00:12:35,066 --> 00:12:36,900
real Iris of a real lens
303
00:12:36,900 --> 00:12:39,533
and we can use that instead here
304
00:12:39,766 --> 00:12:41,133
and now we have
305
00:12:41,666 --> 00:12:42,466
the
306
00:12:42,800 --> 00:12:43,666
actual
307
00:12:44,466 --> 00:12:45,866
bokeh of a real lens
308
00:12:45,866 --> 00:12:48,466
that's synthetically applied to an image
309
00:12:48,466 --> 00:12:50,966
so if you need to match a true lens
310
00:12:50,966 --> 00:12:54,966
you could shoot a bouquet sample and use that in your
311
00:12:55,000 --> 00:12:57,200
filter or kernel inputs here
312
00:12:57,333 --> 00:12:59,766
note that my bouquet sample here has
313
00:12:59,766 --> 00:13:01,400
chroma aberration built in
314
00:13:01,400 --> 00:13:03,466
so we want to have that in our
315
00:13:03,533 --> 00:13:04,600
result as well
316
00:13:04,733 --> 00:13:07,566
so bouquet does that natively
317
00:13:07,666 --> 00:13:09,133
we don't have to adjust anything
318
00:13:09,366 --> 00:13:13,400
we do have the little red Halo around our bouquet shape
319
00:13:13,500 --> 00:13:15,466
if we look at the ZD focus node
320
00:13:15,466 --> 00:13:17,666
we don't have the chroma aberration
321
00:13:17,700 --> 00:13:21,200
that's because it's using the alpha channel as the
322
00:13:21,733 --> 00:13:23,766
filter we could click E
323
00:13:23,766 --> 00:13:25,500
use input channels to
324
00:13:25,500 --> 00:13:29,200
use the individual RGB channels to defocus our image
325
00:13:29,300 --> 00:13:32,766
and it looks a little bit wonky
326
00:13:32,866 --> 00:13:35,100
that's because it's using an impulse filter
327
00:13:35,100 --> 00:13:37,333
to resize our defocus
328
00:13:37,333 --> 00:13:38,766
so we can uncheck
329
00:13:38,766 --> 00:13:42,266
legacy resize mode and use a qbic filter
330
00:13:42,500 --> 00:13:45,533
and that's gonna be much smoother on the edge
331
00:13:45,533 --> 00:13:48,400
so I'm not sure why legacy is turned on by default
332
00:13:48,500 --> 00:13:49,966
this should be off by default
333
00:13:49,966 --> 00:13:51,600
maybe a little update to our
334
00:13:51,866 --> 00:13:53,800
preferences should be in order here
335
00:13:54,000 --> 00:13:55,800
so let's compare
336
00:13:56,333 --> 00:14:00,266
both sides now we have very very close results
337
00:14:00,866 --> 00:14:02,400
bouquet still is capped
338
00:14:02,533 --> 00:14:05,766
to some random maximum here so that's very annoying
339
00:14:05,866 --> 00:14:07,400
but otherwise they are
340
00:14:08,266 --> 00:14:09,600
almost interchangeable
341
00:14:09,600 --> 00:14:12,100
in terms of result and render speeds
342
00:14:12,266 --> 00:14:14,666
mostly because Foundry doesn't give us any
343
00:14:14,666 --> 00:14:16,966
blending controls of the depth layers
344
00:14:16,966 --> 00:14:18,933
if we did have blending controls
345
00:14:18,933 --> 00:14:21,700
then we could reduce the amount of layers quite a bit
346
00:14:21,700 --> 00:14:23,733
still get a very acceptable result
347
00:14:23,733 --> 00:14:25,933
and speed up our renders massively
348
00:14:25,933 --> 00:14:29,600
unfortunately we don't have that here in the ZD Focus
349
00:14:29,900 --> 00:14:31,533
if there was only a way
350
00:14:31,566 --> 00:14:34,933
to do that that would be awesome but wait there is
351
00:14:34,933 --> 00:14:40,133
we can use PXF ID Focus so let's do that instead
352
00:14:40,166 --> 00:14:42,100
I'm gonna put bouquet aside
353
00:14:42,266 --> 00:14:44,600
and we're gonna compare ZD Focus to
354
00:14:45,000 --> 00:14:47,733
ID Focus really quick just to see
355
00:14:48,600 --> 00:14:50,566
what's the difference between them
356
00:14:50,866 --> 00:14:52,566
alright so now we've replaced our
357
00:14:52,866 --> 00:14:55,466
bouquet node with an pxfiid focus
358
00:14:55,466 --> 00:14:57,066
that's a pixel fudger gizmo
359
00:14:57,066 --> 00:14:58,966
of course it doesn't come with nuke
360
00:14:58,966 --> 00:15:01,000
you have to install it separately
361
00:15:01,766 --> 00:15:04,566
we connected our image input to our
362
00:15:04,600 --> 00:15:07,866
photo of the city and we've connected the map input
363
00:15:07,866 --> 00:15:09,533
to our control channel
364
00:15:09,900 --> 00:15:12,266
and by default here we've got a
365
00:15:12,400 --> 00:15:16,000
size of 20 let's make that bigger to 80 to match
366
00:15:16,000 --> 00:15:17,933
and already we have a pretty
367
00:15:18,900 --> 00:15:19,966
similar result
368
00:15:20,333 --> 00:15:23,533
the main benefit here is that we can get away with
369
00:15:23,566 --> 00:15:27,000
much fewer bands of the focus
370
00:15:27,066 --> 00:15:30,333
so by default we have 10 bands here called slices
371
00:15:30,333 --> 00:15:32,700
if we turn off the overlap completely
372
00:15:32,700 --> 00:15:35,000
we'll be able to see our bands very clearly
373
00:15:35,000 --> 00:15:38,866
so here we can see the transition from one
374
00:15:38,866 --> 00:15:41,000
band of defocus to the next
375
00:15:41,000 --> 00:15:42,100
to the next here
376
00:15:42,100 --> 00:15:44,733
there is zero feathering between our bands
377
00:15:44,733 --> 00:15:46,666
so we need to adjust the overlap
378
00:15:46,700 --> 00:15:49,333
if we adjust the overlap a little bit
379
00:15:49,500 --> 00:15:51,400
to like let's say point two
380
00:15:51,733 --> 00:15:54,500
then we'll have a result that's very similar to
381
00:15:54,600 --> 00:15:57,700
the zdfocus feathering between the bands
382
00:15:57,700 --> 00:16:00,400
so we can see the transition still
383
00:16:00,400 --> 00:16:03,333
it's a bit smoother but it's not invisible
384
00:16:03,566 --> 00:16:06,533
however unlike zdfocus
385
00:16:06,533 --> 00:16:08,733
we have full control on our feathering here
386
00:16:08,733 --> 00:16:11,066
so we can increase the feathering a lot
387
00:16:11,066 --> 00:16:13,466
so if we crank that up to the maximum of 1
388
00:16:14,200 --> 00:16:16,400
then we have a full feather
389
00:16:16,400 --> 00:16:19,133
between each band and it becomes much harder
390
00:16:19,166 --> 00:16:21,733
to spot the line between each band
391
00:16:21,733 --> 00:16:23,900
so even though I only have 10 bands here
392
00:16:23,900 --> 00:16:25,000
which is very low
393
00:16:25,266 --> 00:16:27,500
it's almost usable as is
394
00:16:27,600 --> 00:16:30,366
however you can kind of see both
395
00:16:30,700 --> 00:16:32,766
values blended together here
396
00:16:32,766 --> 00:16:35,500
so maybe 10 bands is a bit extreme
397
00:16:35,500 --> 00:16:37,333
let's make that 25 bands
398
00:16:37,333 --> 00:16:39,566
just to have a bit more precision
399
00:16:39,666 --> 00:16:43,966
and now we get a result that's pretty smooth and
400
00:16:44,733 --> 00:16:48,266
almost interchangeable with our 150 bands here
401
00:16:48,266 --> 00:16:51,266
so this is gonna render much much faster
402
00:16:51,400 --> 00:16:54,300
so if I turn off set the focus for a second
403
00:16:54,933 --> 00:16:57,300
and just update the ID Focus
404
00:16:57,333 --> 00:17:00,066
you can see it's rendering at 11 frames per second
405
00:17:00,266 --> 00:17:02,000
so it's really really fast here
406
00:17:02,133 --> 00:17:06,400
so this is so much faster than ZD Focus that I would
407
00:17:06,533 --> 00:17:09,733
just for that I would pick pxf ID Focus
408
00:17:10,000 --> 00:17:12,733
there's also other benefits here besides the speed
409
00:17:13,000 --> 00:17:15,800
we have a more complete bouquet generator
410
00:17:15,866 --> 00:17:19,300
so the built in bouquet generator has more options
411
00:17:19,300 --> 00:17:21,266
compared to zdfocus
412
00:17:21,266 --> 00:17:25,333
and just like zdfocus and Boca we can feed it our own
413
00:17:25,400 --> 00:17:27,533
shape if we're not satisfied with this
414
00:17:27,600 --> 00:17:29,933
we have the Boca input
415
00:17:30,333 --> 00:17:33,300
there you go so we can feed it our own Boka
416
00:17:33,533 --> 00:17:34,500
so there you go
417
00:17:34,500 --> 00:17:36,600
that was our epic battle between
418
00:17:36,666 --> 00:17:41,333
the bokeh node the ZD focus node and PXF ID focus
419
00:17:41,600 --> 00:17:44,766
if you want to achieve this type of creative defocus
420
00:17:44,766 --> 00:17:47,200
that's similar to a tilt shift lens where you
421
00:17:47,200 --> 00:17:49,166
control the defocus with a random
422
00:17:49,666 --> 00:17:50,566
control channel
423
00:17:50,600 --> 00:17:53,966
I would definitely use PXF ID focus
424
00:17:53,966 --> 00:17:55,800
if only just for the speed
425
00:17:55,933 --> 00:17:57,733
improvement for the performance
426
00:17:58,166 --> 00:18:02,300
if you don't have Pxfid Focus I would use zdfocus
427
00:18:02,300 --> 00:18:05,900
I would not use the bouquet node because of the
428
00:18:06,333 --> 00:18:08,733
upper limit on the control channel
429
00:18:08,733 --> 00:18:11,266
so let's compare the features of our different tools
430
00:18:11,266 --> 00:18:13,100
here in a nutshell
431
00:18:13,100 --> 00:18:17,100
Zdfocus Bouquet and ID Focus all have variable
432
00:18:17,200 --> 00:18:18,766
size d focus that's great
433
00:18:19,200 --> 00:18:20,666
zdfocus has a variable
434
00:18:20,666 --> 00:18:23,866
number of bands which is great to optimize performance
435
00:18:23,900 --> 00:18:25,500
so does ID Focus
436
00:18:25,733 --> 00:18:29,166
but ID Focus enables you to adjust the overlap
437
00:18:29,166 --> 00:18:30,133
between the bands
438
00:18:30,133 --> 00:18:32,900
which enables you to lower the number of bands
439
00:18:32,900 --> 00:18:34,933
quite a bit makes the render
440
00:18:35,100 --> 00:18:36,566
much much faster
441
00:18:36,866 --> 00:18:40,666
so that's the main benefit I think of ID Focus here
442
00:18:40,733 --> 00:18:42,766
you can generate your own bouquet shape
443
00:18:42,766 --> 00:18:43,733
and all three of them
444
00:18:44,066 --> 00:18:46,966
ID Focus has the most complete bouquet generator
445
00:18:46,966 --> 00:18:48,500
you can do straight corners
446
00:18:48,500 --> 00:18:50,400
rounded corners noisy bouquet
447
00:18:51,766 --> 00:18:52,933
chrome aberration
448
00:18:53,166 --> 00:18:55,366
so it does it does almost everything
449
00:18:55,533 --> 00:18:58,500
bouquet and Z Focus can generate bouquet shapes
450
00:18:58,500 --> 00:19:00,966
but they're much more limited
451
00:19:01,300 --> 00:19:02,866
all of them have a
452
00:19:03,000 --> 00:19:04,166
custom bouquet input
453
00:19:04,166 --> 00:19:06,500
so if you're not satisfied with the bouquet shapes
454
00:19:06,500 --> 00:19:07,566
you can feed your own
455
00:19:07,866 --> 00:19:13,166
and ZD Focus and ID Focus are GPU accelerated and
456
00:19:13,366 --> 00:19:17,200
bouquet isn't so that's a difference there
457
00:19:17,700 --> 00:19:20,200
between bouquet and the other two
458
00:19:20,866 --> 00:19:21,533
so there you go
459
00:19:21,533 --> 00:19:22,566
that was an
460
00:19:22,566 --> 00:19:25,333
overview of the different tools you can use for a
461
00:19:25,333 --> 00:19:28,133
manual tilt shift type of effect
462
00:19:28,333 --> 00:19:29,600
if you want to do a
463
00:19:29,866 --> 00:19:31,400
depth based defocus
464
00:19:31,566 --> 00:19:33,700
on a full CG image for example
465
00:19:33,700 --> 00:19:36,100
stay tuned there will be another video
466
00:19:36,466 --> 00:19:37,733
about that soon
467
00:19:37,733 --> 00:19:39,800
so make sure to subscribe to the channel
468
00:19:40,133 --> 00:19:41,566
know when that's gonna happen
469
00:19:41,566 --> 00:19:42,366
in the meantime
470
00:19:42,366 --> 00:19:45,800
have a good one and I'll see you in the next video
471
00:19:46,000 --> 00:19:46,800
goodbye
34282
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.