Make camera fade everything with distance

This might be a python code thing, but essentially, I'd like my camera to render in such a way that, as it looks or sees objects further out, those objects fade into the background, whether that background be a single color or HDRI, the world background in other words. This will be some sort of clipping distance coupled with a gradient opacity fade. Is there a way to achieve this in Blender?

1 love
Reply
  • Martin Bergwerf replied

    Hi Sid,

    Blender has got you covered:

    DOF.png

    1 love
  • Omar Domenech replied

    Kent did that on the Spice Vendor house collab. He used a node and did some fancy noodling so that objects that were further out from the camera started to look foggy. As a hack to simulate morning due or something. I can't remember in which of the livestreams he sets it up, for sure it's after all the modeling, in the shading stages, but it's there. Also if you download the files and go into the tree's objects you'll probably see the setup in the nodes. 

    https://cgcookie.com/playlists/156-collab-02-2021

    1 love