# 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:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanThompson64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DanThompson64](https://forums.unrealengine.com/u/DanThompson64)\
**Post date:** [May 17, 2020, 8:28am UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/1 "2020-05-17T08:28:31Z")

</div>

Hi There,

I’m using a Cinematic Camera and can’t seem to solve this. I’ve tried everything but the edges won’t go away! It seems to be most apparent on foreground objects that are out of focus. Does anyone have a suggestion about how I could fix this?

Thanks,

Dan.

 ![302097-annotation-2020-05-17-175025.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/b/e2bb40aa3a3aa429a9f9370dedd6eb219be58a5e.png)

---

<div class="post-metadata">

**Author:** ![DanThompson64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DanThompson64](https://forums.unrealengine.com/u/DanThompson64)\
**Post date:** [May 18, 2020, 11:47pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/2 "2020-05-18T23:47:47Z")

</div>

I’m curious if I’m the only one experiencing this or is it a know issue with the engine?

Thanks.

---

<div class="post-metadata">

**Author:** ![chuck\_wiese](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuck\_wiese](https://forums.unrealengine.com/u/chuck_wiese)\
**Post date:** [July 13, 2020, 4:47pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/3 "2020-07-13T16:47:15Z")

</div>

Hey Dan.  
I have the same problems. Already any solutions? Thanks!

 ![307103-cam090001.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/3/8d35f0c06065f952422f88b5b581a6b1dc31c4ba.jpeg)

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [July 17, 2020, 3:22pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/4 "2020-07-17T15:22:49Z")

</div>

It’s probably faster to get a response or solution to re-post this, and post it in the Rendering sub-forum. It’s showing as having 1 answer, which could imply to some that it’s solved.

---

<div class="post-metadata">

**Author:** ![DanThompson64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DanThompson64](https://forums.unrealengine.com/u/DanThompson64)\
**Post date:** [September 10, 2020, 9:28am UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/5 "2020-09-10T09:28:38Z")

</div>

Still no solutions at this point that I’m aware of… 😕

---

<div class="post-metadata">

**Author:** ![UnrealGary](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealGary](https://forums.unrealengine.com/u/UnrealGary)\
**Post date:** [October 7, 2020, 12:58pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/6 "2020-10-07T12:58:53Z")

</div>

Hi Dan, I’m having the same issue.

 ![317626-default1838.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/c/cfcb7e2189f6088805fbffdcb56fa6f92c766845.jpeg)

---

<div class="post-metadata">

**Author:** ![rogerodriguez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rogerodriguez](https://forums.unrealengine.com/u/rogerodriguez)\
**Post date:** [April 4, 2021, 5:39am UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/7 "2021-04-04T05:39:04Z")

</div>

Hi,  
I found this tread and it is the only place I have found people with the same issue I’m facing. Does anybody know any solutions for it yet.  
Thanks!!

---

<div class="post-metadata">

**Author:** ![mavibaykus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mavibaykus](https://forums.unrealengine.com/u/mavibaykus)\
**Post date:** [April 7, 2021, 10:27pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/8 "2021-04-07T22:27:52Z")

</div>

Hey guys, we found a one solution, make sure all of your particle and mesh material, go to Translucency

---

<div class="post-metadata">

**Author:** ![rellay1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rellay1](https://forums.unrealengine.com/u/rellay1)\
**Post date:** [April 3, 2022, 12:49am UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/9 "2022-04-03T00:49:26Z")

</div>

Accidentally found a solution for this issue  
Use console command: `r.DOF.Kernel.MaxForegroundRadius 0.003`.  
0.003 is the value that works for me, the default one is 0.025. Just decrease it until you are satisfied with the result.

---

<div class="post-metadata">

**Author:** ![not.Puffer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@not.Puffer](https://forums.unrealengine.com/u/not.Puffer)\
**Post date:** [June 15, 2022, 7:01am UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/10 "2022-06-15T07:01:01Z")

</div>

This fixed the issue. Thank you so much!!

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [August 10, 2022, 8:08pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/11 "2022-08-10T20:08:23Z")

</div>

I just posted something similar and i will try this solution, getting some hard time here to figure out how to clean edges out of focus.

[https://forums.unrealengine.com/t/movie-render-has-focus-artifacts-when-close-and-focused-on-small-objects-not-present-in-high-res-screenshot/](https://forums.unrealengine.com/t/movie-render-has-focus-artifacts-when-close-and-focused-on-small-objects-not-present-in-high-res-screenshot/)

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [August 10, 2022, 8:33pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/12 "2022-08-10T20:33:16Z")

</div>

Well, it removes the strange blur indeed, but the bugged edges are fricking there…

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/a/f5abffe73ffb0abe0823f6e019d1382fb1cf18e7.webm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/a/f5abffe73ffb0abe0823f6e019d1382fb1cf18e7.webm)

---

<div class="post-metadata">

**Author:** ![AngelBieliukas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/angelbieliukas/32/88714_2.png) [@AngelBieliukas](https://forums.unrealengine.com/u/AngelBieliukas)\
**Post date:** [August 10, 2022, 9:29pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/13 "2022-08-10T21:29:05Z")

</div>

Hello!

The solution might be to turn off the DOF render of the material shader, it makes the engine to render the translucent objects in another layer, so turning it of could solve the problem

 ![DOF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/9/5c9a7b8f2ac59d1dbf64fc421b6e0774de2c283e.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [August 11, 2022, 1:58am UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/14 "2022-08-11T01:58:50Z")

</div>

This option is not enabled for me to change:  
 ![Captura de tela 2022-08-10 225815](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/0/1307331e17f73b3b0bfd784336a63cf732ead20d.png)

I am using the master material from Quixel

---

<div class="post-metadata">

**Author:** ![AngelBieliukas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/angelbieliukas/32/88714_2.png) [@AngelBieliukas](https://forums.unrealengine.com/u/AngelBieliukas)\
**Post date:** [August 11, 2022, 2:42pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/15 "2022-08-11T14:42:31Z")

</div>

If the material has translucency you should be able to chance the Translucency pass to before DOF or After motion blur

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/a/9aa8d2266f3dab3768cba788bb537453fc0cff92.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/4/6a49b4b8a0e41179c140603e347f98751fe82e20.png)

hope this helps!

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [August 11, 2022, 6:10pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/16 "2022-08-11T18:10:35Z")

</div>

Ty for your reply.

I cannot change this option if the material is set on Blend Mode to Masked. My guess is that is a limit of the engine, really low Aperture for really close shots.

---

<div class="post-metadata">

**Author:** ![Axomit10](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axomit10](https://forums.unrealengine.com/u/Axomit10)\
**Post date:** [February 11, 2023, 11:58am UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/17 "2023-02-11T11:58:11Z")

</div>

It helped me. Thank you.

---

<div class="post-metadata">

**Author:** ![WHOBASTANK3000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/whobastank3000/32/726145_2.png) [@WHOBASTANK3000](https://forums.unrealengine.com/u/WHOBASTANK3000)\
**Post date:** [May 23, 2023, 9:08pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/18 "2023-05-23T21:08:04Z")

</div>

Sadly this is still the answer for me, just a limitation of the engine’s quality at extreme close up detail that begins clipping basically like any other 3D program. It’s either that or as somebody else said run DOF through a post-processes in dif program afterwards

---

<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:** [June 16, 2023, 2:57pm UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/19 "2023-06-16T14:57:58Z")

</div>

Thanks! This works as a workaround, still wondering if there is another option to get higher quality DOF for close objects.  
Its not a material issue, tried it with several different materials, including the most basic shader.

This command basically just tells the engine to not blur the foreground objects too much, which is what causes the artefacts.

---

<div class="post-metadata">

**Author:** ![Axomit10](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axomit10](https://forums.unrealengine.com/u/Axomit10)\
**Post date:** [July 17, 2023, 10:10am UTC](https://forums.unrealengine.com/t/dof-edge-artifacts-on-foreground-objects/465322/20 "2023-07-17T10:10:16Z")

</div>

I also noticed that the objects closer to the camera did not have proper DOF.  
In real life, a cine lens focused, let’s say at 20m, would have the object that are closer to the camera in an out-of-focus/soft, much more than UE does, for both wide angle and tele lenses.

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