# DOF working on Custom Depth

**URL:** <https://forums.unrealengine.com/t/dof-working-on-custom-depth/340359>\
**Category:** Rendering\
**Tags:** Post-Processing, DOF, custom-depth, depth, unreal-engine, question\
**Created:** [December 2, 2015, 11:57pm UTC](https://forums.unrealengine.com/t/dof-working-on-custom-depth/340359 "2015-12-02T23:57:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [December 2, 2015, 11:57pm UTC](https://forums.unrealengine.com/t/dof-working-on-custom-depth/340359/1 "2015-12-02T23:57:49Z")

</div>

Hello.  
Some time ago (according to my logs about a year ago) I’ve got some working prototype of kind of see-through vision with usage of custom depth. Beyond that I’ve managed to get DOF working on that mask.  
Basic setup is this:  
One Capture 2d with capture source set to Final Color “LDR with postproces” - and DOF turned On.  
Render target texure used in Post process of basic camera.  
For some reason that setup doesn’t work anymore.  
My question is:  
If something changed in the rendering? and is there another way to make it work ?  
(I still can’t find working example - but it did work for sure)

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [December 9, 2015, 9:19pm UTC](https://forums.unrealengine.com/t/dof-working-on-custom-depth/340359/2 "2015-12-09T21:19:16Z")

</div>

Hi Gomo -

A lot has actually changed in a year. Can you show me what your setup looked like and I can help you translate it to 4.10?

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [December 9, 2015, 10:05pm UTC](https://forums.unrealengine.com/t/dof-working-on-custom-depth/340359/3 "2015-12-09T22:05:13Z")

</div>

Funny thing happened.  
When I just tried to make some clean recreation of that system I found working prototype.  
Here it is:  
[https://dl.dropboxusercontent.com/u/18219558/Astral.rar](https://dl.dropboxusercontent.com/u/18219558/Astral.rar)

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [December 11, 2015, 7:04pm UTC](https://forums.unrealengine.com/t/dof-working-on-custom-depth/340359/4 "2015-12-11T19:04:54Z")

</div>

Hi Gomo -

What version of the Engine were these assets created on?

Eric
