It looks like you're using an ad blocker! I really need the income to keep this site running.
If you enjoy BlenderNation and you think it’s a valuable resource to the Blender community, please take a moment to read how you can support BlenderNation.

Z-Pazz / DOF in OpenGL Rendering


A technique to create a depth of field effect in the OpenGL Renderer.

cfirwin3 writes:

This is a wild and crazy solution for creating a Z-Pass for instantaneous atmosphere and depth of field effects for OpenGL render. The tutorial explores the concept of using point lights as a depth gage and compositing several scenes in the video sequence editor to create fast rendering optical effects.

The tutorial can be viewed here:


    • It wasn't perfect, but I do remember demonstrations (and even one prince of rather impressive Prince of Persia style game demo) that were doing this in the BGE years ago. From memory they were running things through the compositor using zdepth or some such malarkey. Do search on BA and I'm sure you'll find it.

    • Alex Delderfield (AD-Edge) on

      Once we have better options for shaders (ie downsampling) it should be much better for all shaders (like DOF), thats pretty much what we're hoping for in the near future (I believe), and it more than likely wont be an option until the new rendering updates (harmony phase 2-3) are closer to completion.

  1. I shudder when I remember how difficult it was to create believeable DOF in Blender only a while ago (I know this is supposed to be a quick and dirty solution, but the image is a perfect illustration of one of the dear old problems with the postpo approach).

Leave A Reply

To add a profile picture to your message, register your email address with To protect your email address, create an account on BlenderNation and log in when posting a message.

Recommended articles