Search

Twitter

  • just got out of the pool at Underwriters' Laboratories after float-testing inflatable life jackets. I feel like a guinea pig. DC in 6 hours! 1 week ago
  • The new Netflix for iPhone/iPod Touch app is good, but stream quality could use some help-lots of compression artifacts on a wifi connection 1 week ago
  • just made Sweet Pepper Onion Grilled Cheese sandwiches for the family for lunch. Sauteed red bell pepper, sweet onions...just can't be beat 1 week ago
  • just made exquisite cheddar cheese omelets for the subset of the family that is at home today. #fb 1 week ago
  • teaching six-year-old boys square dancing is harder than it looks. These things do not come naturally! 1 week ago
  • 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