Depth of Field with Composition by Hani Mohammadi
6- Open both rendered pictures in Adobe Photoshop. While the z depth picture is active press Ctrl+A to select all frame. Then press Ctrl+C to save it.
7- Now active scene picture. In Channel tab select Alpha channel. Press Ctrl+V to paste z-depth to it.
If you zoom in the picture you may find there are some hard edges in Z depth. We need to smooth them before moving to the next step.
8- While Alpha channel of the picture is selected in Filter menu, choose Gaussian Blur from Blur submenu. Change the Radius size until satisfy with result. In this tutorial I used 0.9 as Radius.
09- Now in the Channels tab select RGB channel. It shows your original picture.
10- Go to Filter menu and this time choose Lens Blur from Blur submenu.
11- In Depth Map Source select Alpha channel. Now if you click on each object or place in your picture you will find that the camera will focus on it and rest of scene will be blurry. You can also change distance with Blur Focus Distance. Radius will set the maximum and minimum amount of blurring. And in noise group you can add noise to the blurry area.

So simply you could create DOF effect in any area of your picture with compositing 3ds Max and Photoshop. Just keep in mind that this composition cannot always work accurately.
|