# HELP!! DoF Problem on Specular Surfaces

**URL:** <https://forums.unrealengine.com/t/help-dof-problem-on-specular-surfaces/147769>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [July 20, 2020, 6:39am UTC](https://forums.unrealengine.com/t/help-dof-problem-on-specular-surfaces/147769 "2020-07-20T06:39:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sogu17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sogu17](https://forums.unrealengine.com/u/Sogu17)\
**Post date:** [July 20, 2020, 6:39am UTC](https://forums.unrealengine.com/t/help-dof-problem-on-specular-surfaces/147769/1 "2020-07-20T06:39:25Z")

</div>

![735d42df8a8a3b14a439ad8353c5c9efc33f9b5c.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Hello,

I am a fresh newbie in the world of Unreal Engine and I’d like to ask for your help for something!

If you take a look at the attached pics, the DoF effect on the glass window in the contour of the headrest (the focal point) is incorrectly rendered.

I’d like to know how to correct this problem.

[https://forums.unrealengine.com/core/image/gif;base64](https://forums.unrealengine.com/core/image/gif;base64)  
​

​I understand this happens because the DoF in unreal engine is a post processing effect.

Is there any way to ray trace the depth of field and have physically accurate effect?

Thanks!

---

<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 20, 2020, 3:34pm UTC](https://forums.unrealengine.com/t/help-dof-problem-on-specular-surfaces/147769/2 "2020-07-20T15:34:22Z")

</div>

The photos are really difficult to see what I’m looking at. Is it a car interior, and the focal point is the top side of the door (where window goes in)? or is the focal point part of a reflection in the window? I see that the material of the seat(s) is not reflected in the glass though. Is “Render After DOF” set in the glass material and the seat material?

---

<div class="post-metadata">

**Author:** ![Sogu17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sogu17](https://forums.unrealengine.com/u/Sogu17)\
**Post date:** [July 22, 2020, 12:19am UTC](https://forums.unrealengine.com/t/help-dof-problem-on-specular-surfaces/147769/3 "2020-07-22T00:19:34Z")

</div>

> [@presto423](#):
>
> The photos are really difficult to see what I’m looking at. Is it a car interior, and the focal point is the top side of the door (where window goes in)?

yes, the focal point is on the headrest (Purple highlight) in the interior.

The blurry reflection on the “door” is the correct one. The reflection on the door in the purple patch should also be blurry, but it is not!

> [@presto423](#):
>
> Is “Render After DOF” set in the glass material and the seat material?

yes, it is on for both materials!

---

<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 22, 2020, 12:03pm UTC](https://forums.unrealengine.com/t/help-dof-problem-on-specular-surfaces/147769/4 "2020-07-22T12:03:18Z")

</div>

So the dof, or something else, formed an oval-shaped space (purple highlight) that looks like a hole in glass or plastic. It’s like a cutout in the dof. That’s so bizarre. What DOF settings were changed to create the overall effect, post process volume or camera? what are the settings?

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [July 23, 2020, 9:16am UTC](https://forums.unrealengine.com/t/help-dof-problem-on-specular-surfaces/147769/5 "2020-07-23T09:16:01Z")

</div>

That’s strange, no doubt, but sometimes, strange things happens with reflective surfaces or translucent ones. Try to go to that material and uncheck the option called something like “Render after DOF”.

Regards!
