Hello!
This is my first plugin. I wrote it for use in my short film “Alchemy” and I thought that the community might find it useful.
It is based on zblur, but operates using a greyscale image instead of the zbuffer. This makes it easier to tweak. Also, imho, I think that my plugin gives more control and is easier to use than zblur.
source: http://cs.unm.edu/~sketch/gallery/resource/dof/deepblur.c
windows .dll: http://cs.unm.edu/~sketch/gallery/resource/dof/deepblur.dll
linux .so: http://cs.unm.edu/~sketch/gallery/resource/dof/deepblur.so
The plugin requires 2 input strips. The first should be the rendered images. The second should be greyscale images that indicate the depth of each pixel in the first strip. The second strip can easily be created using the zutilz plugin which can be found in the plugin repository.
User defined variables:
Blur: Maximum radius of the blur effect.
Focus: Distance from camera to focal point.
Length: Distance from focal point that will remain in focus.
Fade: Distance for gradient between focused and blurred areas.
Show Weighting: Displays the greyscale image used to perform the weighted blur. Black areas will be in focus, while white will be blurred (and grey areas are everything in between).
For example:
Strip 1:
Strip 2 (created using zutilz plugin):
Output (using default settings):
I hope you all find it useful.