BokehBlur simulates realistic lens blurring.
Bokeh_Blur
Updated: 6 October 2020
Author: jgbidwell
Compatible Nuke versions: 12.1 or later
Compatibility: Linux, Mac, Windows
BokehBlur V6.0
Completely redone for Nuke 12. (Use v5.3 for older versions of Nuke.)
Simulates realistic lens blurring. It's especially useful when you need to simulate a very 'out-of-focus' background. Has ability to use a mask or ramp to simulate DOF. (Fixed issue qith mask input)
All sliders have been normalized, so values live in a 1-10 size. Bokeh size is still dependent on the size of the plate connected to the image input.
Updated GUI
Cat-eye distortion
It’s not as accurate as others have done with blink-scripts, but this renders fairly quickly. It will be slower on lager plates.
Revised Anamorphic options to scale the bokeh shape, if needed, for matching to various lenses.
Mask Input, which can be used to simulate DOF.
You can attach a ramp or feathered roto. to the mask input and enable the mask check-box. You could even key the depth pass and use that as a mask.
Irregularity adds an organic look to the procedural iris shapes. This option is bypassed when using custom kernels.
Custom kernels should be a square format. BokehBlur creates a kernel based on the max RGBA.
Credits:
Cateye distortion inspired by Wes Heo’s ’W_CatsEye’ gizmo and M.Eiche’s ‘iBlur’ gizmo.
Nukepedia button inspired by Luma’s ‘Fuse’ gizmo. https://github.com/LumaPictures/LumaNukeGizmos