Nuke - Realistic Depth of Field Defocus. Complete Guide for CLEAN edges!

  Рет қаралды 5,605

Pixelfudger

Pixelfudger

Күн бұрын

Here's a complete guide to setting up ZDefocus and Bokeh to achieve realistic 'depth of field' (DOF) defocus effects for VFX and animation in Nuke.
Lets compare ZDefocus, Bokeh, PxF_ZDefocus and PxF_DeepDefocus nodes to see which one is the best tool for creating DOF effects with CLEAN edges and fast render times.
More information about PxF_ZDefocus here:
• PxF_ZDefocus
More information about PxF_DeepDefocus here:
• PxF_DeepDefocus
• PxF_DeepDefocus - New ...
Don't forget to install Pixelfudger gizmos!
www.pixelfudger.com
www.nukepedia.com/gizmos/filt...
Find me on LinkedIn
/ xbourque
#VFX #Nuke #Compositing
00:00 Intro
00:44 Setting up ZDefocus and Bokeh
01:53 Picking the focal point
03:23 Comparing results: they're both bad.
05:44 Lens Simulation
07:00 Replacing ZDefocus with PxF_ZDefocus
08:54 Foreground Fill / Edge Inpainting
09:34 Pro Tip 1: Dilate the depth pass
10:20 Bokeh vs ZDefocus edges
11:27 Animating a 'rack focus'
11:55 Adjusting 'depth layers'
14:28 Pro Tip 2: Edge detect the depth pass
15:48 RGBA + Depth recap
16:52 Fixing edge issues with Deep Images
17:42 Converting RGBAZ to Deep
19:42 Inspecting our Deep image
21:01 Bokeh vs. PxF_DeepDefocus - initial setup
22:24 Comparing Edges
23:31 Bokeh artefacts
24:35 Understanding Deep slices
26:13 Bokeh node doesn't deliver!
27:25 Finally a good result!
28:16 Bokeh (in deep mode) is really slow!
28:42 Final thoughts

Пікірлер: 25
@danielmiller1826
@danielmiller1826 4 ай бұрын
OK I'm sold. Also the maths in PxFZDefocus is much better than the OpticalZDefocus node
@GabrielMendezC
@GabrielMendezC Ай бұрын
Amazing tools you have going on here man! Thank you for making these, Keep up the good work!! 👏🙌🤝
@henrythejeditube
@henrythejeditube 3 ай бұрын
fantastic tutorial
@SHKAAL887
@SHKAAL887 5 ай бұрын
Great stuff man !
@sunejunk05
@sunejunk05 5 ай бұрын
Thank you so much. lifesaver Gizmo.
@LoveVFX
@LoveVFX 5 ай бұрын
Awesome!!! Thank you!
@rahjvfx
@rahjvfx 5 ай бұрын
Thank you ✌🏻
@mrrafsk
@mrrafsk 5 ай бұрын
Pxf_Zdefocus. Would love a camera input pipe pls. What do you think? FYI: zdefocus was originally dev’d at DNEG. I helped beta it many moons ago. Would love to hear your take on 1) how you order motion blur and defocus filters? 3) filtering opinions from CG? I.e in some renderers it can combine filtered and unfiltered(for rendered of cg), and give ok results without dilate/blur hacks, on jumps of distance. 3) the workflow of rendering separate cg layers with filtered and unfiltered depth and them combining them to create one defocus pass. Thanks for your work dude, amazing development & contribution here!
@mrrafsk
@mrrafsk 5 ай бұрын
You video has inspired me to change a mergeCG node I have previously written (that combined un/filtered depth), to allow one defocus node downstream, and experiment creating a MergeToDeep node instead. I.e. The main spline is in deep, made from non-deep Apipe images with depth data.
@pixelfudger
@pixelfudger 5 ай бұрын
Mixing 'big' defocus with 'big' motion blur is very tricky to do 'right'. In camera defocus is first (lens) and motion blur second (sensor). The problem is that it is hard to elegantly defocus motion vector passes (or motion blur depth passes). At some point you might just want to bite the bullet and do DOF and moblur in 3D.
@pixelfudger
@pixelfudger 5 ай бұрын
Regarding the camera input, there is a 'pick camera' button instead. Is that not doing what you want? See 4:37: kzbin.info/www/bejne/np67dKeOmsaBedksi=HaCbGTU3tTkTvMli.
@mrrafsk
@mrrafsk 5 ай бұрын
@@pixelfudger >Regarding the camera input In a template situation, centralising a procedurally updated camera asset, allows multiple defocus nodes being adjusted/versioned from a central point in the script (connected with an expression or preferably an asset only dot_connect system). Arguably only beneficial on: feature animation/animatics/large CG shows/multi-shot workflows... especially when the director dials in narrative defocus decisions at the post-via stage. 1) I additionally I do like two extra f-stop offset knobs for Front/Back , for 'creative' adjustment of individual nodes, and then 2) I add an extra tab for sub-frame bokeh vignetting (aka cats-eye/magic defocus) My old defocus node used hacked maths of the OZD node using direct Z.. but your node is significantly better in several areas.. good work dude!
@mrrafsk
@mrrafsk 5 ай бұрын
@@pixelfudger > Mixing 'big' defocus with 'big' motion blur is very tricky to do 'right'. yep.. I too haven't found a satisfactory solution. My general rule to reduce artefacts is whatever has a smaller spread of pixels is the top node.
@KORTULSGAMEROOM
@KORTULSGAMEROOM 5 ай бұрын
Awesome! I wonder how pxf_zdefocus compares to optical_zdefocus
@mrrafsk
@mrrafsk 5 ай бұрын
See pixelfudgers previous video, that also includes pgBokeh?
@pixelfudger
@pixelfudger 5 ай бұрын
The last time I tried OZD (a while ago) it struggled with foreground objects becoming out of focus because internally it was using 'direct' math on the ZDefocus node. I dont know if it's still the case today.
@danielmiller1826
@danielmiller1826 4 ай бұрын
Yes it still has this issue. Out of the box your tool gave a better result on the same CG@@pixelfudger
@manolomaru
@manolomaru 5 ай бұрын
✨👌💪😎😉😎👍✨
@madlookzvfx
@madlookzvfx 5 ай бұрын
PxF won!
@IanSocolaiandres
@IanSocolaiandres 4 ай бұрын
by this point, can't you just teach foundry how to design their products? lol
@pixelfudger
@pixelfudger 4 ай бұрын
I'm available if they want to hire me. I'd love to do a bug / quality of life blitz on Nuke. :-)
@kerryniekdam
@kerryniekdam 3 ай бұрын
A Python exception occurred: AttributeError: 'NoneType' object has no attribute 'addAction' File "C:\Program Files\Nuke14.0v5\pythonextensions\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import return original_import(name, *args, **kwargs) File "C:\Program Files\Nuke14.0v5\pythonextensions\site-packages\hiero\ui uke_bridge\initNuke.py", line 17, in cacheMenu.addAction(localisation) this happend to me
@pixelfudger
@pixelfudger 3 ай бұрын
What were you doing? The scripts triggering the error don't appear to be PxF.
Nuke - Which node for the best 'tilt shift' defocus effect?
20:01
Pixelfudger
Рет қаралды 1,9 М.
Roto - Where do you put the edge!?
28:58
Pixelfudger
Рет қаралды 4,2 М.
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 6 МЛН
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 4 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 52 МЛН
Simulating Physically Accurate Depth of Field in Nuke
43:13
Jed Smith
Рет қаралды 62 М.
Nuke - Use the CopyCat node to make clouds!
24:31
Pixelfudger
Рет қаралды 5 М.
How to get the ACES Look in Davinci Resolve
4:51
Douglas Dutton
Рет қаралды 3,9 М.
How to solve Depth of Field edge problems in Nuke
6:50
Hugo's Desk ™
Рет қаралды 73 М.
Should you use LAYERS or NODES for VFX? (Complete Analysis)
15:58
Compositing Complex Shadows in Nuke [Advanced]
19:14
Compositing Academy
Рет қаралды 45 М.
How to add Lens FX in Nuke #nuke #compositing #deep #lens
12:21
VFX SHOWDOWN
Рет қаралды 6 М.
I suspect someone is playing tricks, but I have no evidence
0:27
I suspect someone is playing tricks, but I have no evidence
0:27
حليت المشكلة بينهم😂😂#shorts
0:14
عائلة ليانا وداد
Рет қаралды 8 МЛН
I Parking My Car 😂 #shorts #funny #viral
0:11
Funny Club TV
Рет қаралды 4,5 МЛН
Counter The Ki11er #spongebobexe #shorts
0:14
ANA Craft
Рет қаралды 5 МЛН