# DOF edge artifacts on foreground objects

**URL:** <https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322>\
**Category:** Rendering\
**Tags:** DOF, unreal-engine, question\
**Created:** [May 17, 2020, 8:28am UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322 "2020-05-17T08:28:31Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![riorichman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@riorichman](https://forums.unrealengine.com/u/riorichman)\
**Post date:** [July 19, 2023, 10:35pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/21 "2023-07-19T22:35:00Z")

</div>

if you are using Path Tracer like me, my solution is go to post process volume, and tick the reference depth of field. i think this forum doesn’t provide me with this method after days of searching. finally found on reddit.  
here is the before

 ![before](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/6/dd6cfa31f45508c40d01c3474ebb72c3d13e666e.png)

and after

 ![after](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/b/c8b034e6209bbe5289edc70deaa065b53bec9a36.png)

---

<div class="post-metadata">

**Author:** ![Acolori\_Medien](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/acolori_medien/32/88713_2.png) [@Acolori\_Medien](https://forums.unrealengine.com/u/Acolori_Medien)\
**Post date:** [July 26, 2023, 1:54pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/22 "2023-07-26T13:54:15Z")

</div>

Good to know, but we mostly don´t use pathtracer, so the other workaround works best.  
Pretty sure its just a limitation due to the realtime restrictions, just like it would be for a post-production DoF effect based on the z-depth.

---

<div class="post-metadata">

**Author:** ![andresfrancken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@andresfrancken](https://forums.unrealengine.com/u/andresfrancken)\
**Post date:** [February 13, 2025, 4:18pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/23 "2025-02-13T16:18:31Z")

</div>

Just posting on the forums for the first time to say thank you to this 3-year old comment. I have been looking for a solution to a DOF issue in a shot I’m working on for days and had tried about 20 different things before finally finding something that actually worked; this was it.

[Previous page](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322.md?page=1)
