Okay, so what I want to be able to do is to use the defocus node to create depth of field in post production using my EXR multilayer files.
A simple test image of my issue:
It works great if I do it in compositing on render, just setting a focuspoint for the camera with no native blur and then just using a defocus node. The blur is both in front of and behind the camera focus point.
The problem is that I can’t get this to work when I composite my EXR files later. Everything gets blurred with no focus.
I have tried to use map value to modify the depth map to at least create a focus point myself but I just can’t get it to work.
I hope someone knows how this can be achieved
Thanks in advance!