I am working with Blender to generate defocus images using the Defocus filter it provides in the Node Editor. The official doc says that the blurring is done as a "post-process" using the Z values in the Z-Buffer. Can someone explain to me what is the actual algorithm in place for doing that? How does blender's defocus give pretty realistic images with just a post-process? Thanks in advance.

  • 1
    $\begingroup$ A quick look over the code here, looks like it does a fast gaussian blur, a bokeh image and a variable size bokeh blur. $\endgroup$
    – sambler
    Aug 13 '16 at 11:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.