Search

Twitter

  • Singing Purcell's mighty anthem O God, Thou Art My God tonight. "As long as I live will I magnify Thee in this manner!" 2010-11-07
  • sang Be Thou My Vision today with 300 others in an 800-year-old, still faithful church...oh, the spiritual heritage in this place! #fb 2010-11-07
  • is reading scientific papers on time travel. Who knew writing was so technical? #fb 2010-11-06
  • conducted a tour of his room for prospective Dale residents before he fully woke up. Glad the scout had just been by yesterday! 2010-11-06
  • Fun fact...if you look at Oxford on Google Maps, it's quite easy to pick out the myriad red double-decker buses in the streets. 2010-11-06
  • More updates...

Follow

Blender 2.43 Depth-of-Field

by John Calvin | February 25th, 2007

I recently posted on the Christian Filmmakers Email List — Tech a quick tuto­r­ial on how to use Blender 2.43’s new Defocus node to cre­ate a real­is­tic depth of field. After post­ing the first tuto­r­ial, (which sim­ply doesn’t com­pare with the release notes page at the link below) I was asked to post an exam­ple .blend with the node set­tings for DoF. Here’s the orig­i­nal tuto­r­ial, with an exam­ple frame and the .blend file below.

The DoFDist set­ting in the Camera Edit menu (F9) feeds a new node, the Defocus node. Turn on Limits in the Camera Edit menu. You will see a yel­low X on the sight line where the focus point is set. Adjust the DoFDist slider until the X is at the approx­i­mate point where you want sharp focus. Then go to Node view and add a new Defocus node. Wire in the RenderLayer, but do not wire it to a Composite or Viewer until you get the set­tings in place–else Blender feels the need to recom­pos­ite after every change. For some rea­son, it takes a lot longer to do that while you are chang­ing set­tings than when you fin­ish. Then turn off Preview Mode and No Zbuffer in the node, ver­ify the Zbuffer from the RenderLayer is wired in as well as the RGB, and adjust the f-stop down. 128 focuses to infin­ity, so to test it, you might want to change it to 32 or even 16 (half the f-stop dou­bles the blur). After you have all that set, you can enable Composite ren­der­ing in the main ren­der menu (F10) and wire the Defocus node into the Composite out­put node. Just be sure to unlink it again before chang­ing the defo­cus set­tings.

Here is a proof-of-concept ren­der I tried, the clas­sic line-of-spheres scene. I ren­dered it with f-stop=8 and OSA=16 to HD res­o­lu­tion. The full image ren­der is avail­able at http://www.youngchristianstudios.com/2.43_DOF.jpg.

The .blend file is below. It is a sim­ple scene with 1 light, 1 cam­era, and 16 spheres. (15,904 verts) It ren­dered with two threads in 1:44:44 on my 2.8 GHz Pentium 4, though I was run­ning some other pro­grams at the same time. The .blend is avail­able at http://www.youngchristianstudios.com/2.43_DOF.blend (1.1 Mb).

I hope this helps you get out there with 2.43 and ren­der even more photo-realistic scenes!

One Response to “Blender 2.43 Depth-of-Field”

  1. Hey John, I was doing a google search for my name and came across your blog, I didn’t know you had one, let alone know you had a link to mine! Thanks for the link!

    Also, very cool post, I am sure I will be able to make some good use of it!

Leave a Reply