How To Create depth of field using layers in a compositor
When using layers you will get more control by creating the depth of field in a compositor rather than Muvizu.
When rendering your layers tick the "depth pass" option. This creates an additional TGA sequence which looks like this…….
![](../Attachments/Depth%20of%20field%20in%20compositor/Depth%20Pass.jpg)
The darker the image the closer it is to the camera.
I use HitFilm as my compositor so I will demonstrate the effect in that.
Add a grade layer and apply a lens blur effect. Set the depth pass layer as a source for your lens blur effect (setting the source channel to Luminance).
![](../Attachments/Depth%20of%20field%20in%20compositor/lens%20blur.jpg)
You then get this effect on the layers below......
![](../Attachments/Depth%20of%20field%20in%20compositor/result.jpg)
Focus is quite subtle in this shot, but you get the idea. There will be something similar in other compositors.
If I don’t need any compositing then I just do everything in Muvizu as it will be a lot quicker !