# How to setup DOF to blur near and far objects

**URL:** <https://forums.unrealengine.com/t/how-to-setup-dof-to-blur-near-and-far-objects/480022>\
**Category:** Rendering\
**Tags:** Depth-Of-Field, Post-Processing, DOF, unreal-engine, blur, question\
**Created:** [March 10, 2021, 2:18am UTC](https://forums.unrealengine.com/t/how-to-setup-dof-to-blur-near-and-far-objects/480022 "2021-03-10T02:18:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asayi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Asayi](https://forums.unrealengine.com/u/Asayi)\
**Post date:** [March 10, 2021, 2:18am UTC](https://forums.unrealengine.com/t/how-to-setup-dof-to-blur-near-and-far-objects/480022/1 "2021-03-10T02:18:52Z")

</div>

Hello. My question is in the title. I want to achieve an effect where near enough and far enough objects are blurred, but everything else is sharp. From example on the picture, I want to blur two objects close to camera, leave the area with player sharp, and blur the cityscape. What settings should I tweak to achieve that? For now I can only either blur everything or blur only distant objects, which I can’t blur hard enough not to touch middle plane. So what should I do?

 ![331945-ue4editor-u9ia4j00c8.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/b/54bf9a51984f32be69bd10e3fd070c0b1f378718.jpeg)

---

<div class="post-metadata">

**Author:** ![WillMead13](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/willmead13/32/1075245_2.png) [@WillMead13](https://forums.unrealengine.com/u/WillMead13)\
**Post date:** [August 7, 2024, 2:39pm UTC](https://forums.unrealengine.com/t/how-to-setup-dof-to-blur-near-and-far-objects/480022/2 "2024-08-07T14:39:56Z")

</div>

Hi, I know this is a really old topic- but could you explain how to do this for the background and foreground? I made my own topic for more details but I’m still a bit of beginner so I would appreciate any help! 😭

> [@Background Blur on parallax background mobile game? Depth of Field seems not to work?](https://forums.unrealengine.com/t/background-blur-on-parallax-background-mobile-game-depth-of-field-seems-not-to-work/1965766):
>
> I’m having an issue getting my game’s background to blur? Adjusting the gaussian blur settings don’t seem to be doing anything- I think it’s because of my game’s camera set up? It’s a squished perspective to make the parallax camera work (I’ll attach some pictures!) This is what the game currently looks like: However I really want a soft blur in the background (and maybe even slightly in the foreground?) like this: (The sam…
