# DOF blurs away hair strands (groom)

**URL:** <https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022>\
**Category:** Rendering\
**Tags:** Post-Processing, DOF, unreal-engine, UE5-0, question\
**Created:** [April 2, 2022, 10:41pm UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022 "2022-04-02T22:41:32Z")\
**Posts on this page:** 11\
**Page:** 1

<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 2, 2022, 10:41pm UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/1 "2022-04-02T22:41:32Z")

</div>

I have these two images, one with the DOF effect, the second one is without.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/c/01ce9e09d87e8e9449f3337a79f80b7faf97ecc2.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/c/b1c737e6b28eac969aa4627a5de9c1ddedc9ff1f.jpeg)

Is there a way to improve DOF so it can catch every detail? The only solution that I’ve found is that Path tracing handles it pretty well. But it would be nice to make it work in the usual way.  
It’s for cinematic purposes, so I don’t really care about optimization, I just need to make it work. Any ideas?

---

<div class="post-metadata">

**Author:** ![pakorny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pakorny](https://forums.unrealengine.com/u/pakorny)\
**Post date:** [April 21, 2022, 7:29pm UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/2 "2022-04-21T19:29:56Z")

</div>

Did you find a solution? same issue. I have a bad idea, it maybe noticeable but works well on solid backgrounds.

r.HairStrands.DOFDepth 0

---

<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 21, 2022, 11:13pm UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/3 "2022-04-21T23:13:16Z")

</div>

I did not find a solution on my own, unfortunately.  
Just tried your command and it works amazingly well in my scenes, even without object behind (just sky). Thanks a lot for sharing it!  
Maybe it is because I optimized my hair a bit using the interpolation technique.  
Here’s how:  
Change Decimations values in your groom’s asset to reduce vertices. I used the following values

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/c/c3c1a07c8db830436b6ee32e404f58a7a656c9f1.png)

Then increase Hair Width to make hair look like before, but just a bit thicker, visually it will be hard to tell the difference, but it will speed up your renders by a lot.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/8/f9895b6f7cc4ea0e68836b7ef240a546e353d67b.png)

Please let me know if it helps. And also, what background you’re using?

---

<div class="post-metadata">

**Author:** ![Mikkelkp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikkelkp](https://forums.unrealengine.com/u/Mikkelkp)\
**Post date:** [September 7, 2022, 5:00pm UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/4 "2022-09-07T17:00:47Z")

</div>

You may want to check out [this](https://dev.epicgames.com/community/learning/courses/eER/unreal-engine-technical-guide-to-linear-content-creation-production/BbWJ/unreal-engine-rendering) rendering guide and specificly [this](https://epicgames.ent.box.com/s/dqn827fbqch69zy0p24vhi60xgnvwolq) document on rendering hair and fur. There are some instructiong on how to get around this for cinematic renders 🙂

---

<div class="post-metadata">

**Author:** ![Namveer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Namveer](https://forums.unrealengine.com/u/Namveer)\
**Post date:** [January 8, 2023, 4:11pm UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/5 "2023-01-08T16:11:30Z")

</div>

I Found the solution. It’s get complicated to render with level visibility and stencils layers. But I found another solution. Which is Cryptomatte. Turn on the plugin in rendering section. Enable object IDs in movie render queue, turn on disable multi sampling in differed render setting. Enable world depth map. Hit Render now you can choose your character/s and other objects individually in compositing process. Just add lens blur on your desired objects.

---

<div class="post-metadata">

**Author:** ![BalzaTMS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BalzaTMS](https://forums.unrealengine.com/u/BalzaTMS)\
**Post date:** [October 11, 2023, 6:29am UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/6 "2023-10-11T06:29:41Z")

</div>

![2022-11-17_19-22-35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/1/7e18d85dd14085206108b87ab499cea93bf708aa.jpeg)  
We have the same problem, but Cryptomatte makes full edges of groom, like “unlit”. How to reduce strands?

---

<div class="post-metadata">

**Author:** ![Javadinho10](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Javadinho10](https://forums.unrealengine.com/u/Javadinho10)\
**Post date:** [July 16, 2024, 4:53pm UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/7 "2024-07-16T16:53:37Z")

</div>

I can’t login to box website with my epic games account to read this article about rendering hair and fur. I tried with different accounts and login methods but it doesn’t work. Can you please send me an screenshot or a PDF of that webpage? I really need that!

---

<div class="post-metadata">

**Author:** ![y0samix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@y0samix](https://forums.unrealengine.com/u/y0samix)\
**Post date:** [September 9, 2025, 3:02pm UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/8 "2025-09-09T15:02:05Z")

</div>

is it really a solution if no one can access it ?

---

<div class="post-metadata">

**Author:** ![The\_Distiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Distiller](https://forums.unrealengine.com/u/The_Distiller)\
**Post date:** [September 10, 2025, 12:45pm UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/9 "2025-09-10T12:45:29Z")

</div>

I don’t know why this issue is flagged resolved as there is no real solution, just workarounds.

---

<div class="post-metadata">

**Author:** ![isanaU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@isanaU](https://forums.unrealengine.com/u/isanaU)\
**Post date:** [February 2, 2026, 11:33am UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/10 "2026-02-02T11:33:31Z")

</div>

It helps me a lot！But I wonder why it is a bad idea? Will it cost more?

---

<div class="post-metadata">

**Author:** ![RodrigoValor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RodrigoValor](https://forums.unrealengine.com/u/RodrigoValor)\
**Post date:** [November 1, 2026, 2:47am UTC](https://forums.unrealengine.com/t/dof-blurs-away-hair-strands-groom/512022/11 "2026-11-01T02:47:21Z")

</div>

`r.HairStrands.WriteGBufferData 3`

That command solved my problem of hair (Groom) out of focus like the one in the photo. I tried everything, and by chance, that Cvar solved my problem without needing to completely remove the DOF in my hair. If it serves you, @valorodrigo, give me love.
