Settings and Macros/DepthDefocus Description
From VFXpedia
DepthDefocus_v03-1
Creates physically-correct depth of field effect using an additional image as a depth map.
If you have objects on transparent background to defocus, you need to expand your Z-channel beyond the edges of the objects so it fills all the area covered with the effect.
You can use the Erode/Dilate for this purpose, but there is a special tool BzPixelExtend designed to work in conjunction with the macro.
See an example of joint using these tools: DepthDefocus_Macro_v03_Example_CubesZ_EdgeExtend
- Main Inputs
- Input
- Source image
- Depth Map
- Image indicating distance from the camera. The brighter are pixels the closer they are. Darker pixels are farther from the camera.
- Controls
- Depth Map Channel
- Select a channel to use as the depth map
- Focal Point
- Pick an object that should be in focus or enter numerically the depth for the focal point. The picker should be used on the resulting image
- Blur Size
- Power of defocus
- Depth Power Curvature
- Makes the power of defocus to increase non-linearly with depth like in real-world defocus
If Depth Power Curvature = 1, defocus size increases linearly with depth.
If Depth Power Curvature > 1, defocus size increases slower with depth which is physically correct. - FG Power
- Adjusts the power of defocus for the objects in front of the focal point separately
- Quality
- Quality of the effect
- Image Gamma
- Adjusts the blooming effect. Start from 2.2 for sRGB images
- Show Defocus Power Map
- Displays the amount of the effect map instead of the final output
- Connect Z Buffer to the Output
- Attaches the Z Channel to the output image
Depth_Defocus_Macro_v01-1.mov - a demo movie
Depth_Defocus_Macro_v03_Example_Plane.comp - an example of using the DepthDefocus macro
Development History on PigsFly

