# Exclude objects from post processing

**URL:** <https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929>\
**Category:** Rendering\
**Tags:** Post-Processing, object, unreal-engine, Post-Process, UE4, question\
**Created:** [March 26, 2018, 2:50pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929 "2018-03-26T14:50:55Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![PotatoKW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PotatoKW](https://forums.unrealengine.com/u/PotatoKW)\
**Post date:** [March 26, 2018, 2:50pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/1 "2018-03-26T14:50:55Z")

</div>

Is it possible to exclude an object/skeletal mesh from post processing such as Depth of Field?  
So far I’ve googled for few hours now and have found nothing , could somebody help please?  
Any tutorials or screenshots of how to do it , please post it here , I appreciate it very much.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [March 26, 2018, 3:07pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/2 "2018-03-26T15:07:03Z")

</div>

Hello Kelvin,

This is currently not a feature of Post Processing Volumes. Post processing effects work on your player camera, and not on specific meshes.

---

<div class="post-metadata">

**Author:** ![OmegaRunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OmegaRunner](https://forums.unrealengine.com/u/OmegaRunner)\
**Post date:** [June 16, 2020, 6:16pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/3 "2020-06-16T18:16:57Z")

</div>

It is possible if you use the custom depth stencil. In blueprints, every actor has a custom depth stencil value which determines what post process effects are used on it. If you have a post process volume, set it to have two materials, have one of those materials just be empty, and then set the value of each material to say 0 and 1, then if you say have the empty set to 0, then any actor that has the custom depth stencil to 0 will have that particular post process material applied rather than the others. Of course, the numbers can be whatever you want that the engine supports, I’m just using this as an example. I haven’t tested this personally and can’t because my computer hasn’t arrived yet (I’m writing this on a very weak laptop). However, it is something you can try out and see for yourself.

---

<div class="post-metadata">

**Author:** ![Dedecek\_omg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dedecek\_omg](https://forums.unrealengine.com/u/Dedecek_omg)\
**Post date:** [May 7, 2021, 12:42pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/4 "2021-05-07T12:42:08Z")

</div>

You must check: Render CustomDepth Paas (in detail of SM; you must show advanced of Rendering detail) … and this options exclude it from PostProcessVolume

like in screenshot.

Have a nice day

---

<div class="post-metadata">

**Author:** ![homeforged](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@homeforged](https://forums.unrealengine.com/u/homeforged)\
**Post date:** [October 3, 2021, 2:30am UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/5 "2021-10-03T02:30:11Z")

</div>

This worked great! Thanks for the tip :3

![349764-depth.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/d/b2dab6fff0256ce326c0ec0adb355bb5ac962d35.png)

---

<div class="post-metadata">

**Author:** ![Slapdash85](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slapdash85](https://forums.unrealengine.com/u/Slapdash85)\
**Post date:** [August 4, 2022, 8:34pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/7 "2022-08-04T20:34:06Z")

</div>

This really helped me, thanks!!

---

<div class="post-metadata">

**Author:** ![AriesBreath](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AriesBreath](https://forums.unrealengine.com/u/AriesBreath)\
**Post date:** [August 14, 2022, 1:04pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/8 "2022-08-14T13:04:16Z")

</div>

Can you please show how are the material set up? I can’t seem to get it to work

---

<div class="post-metadata">

**Author:** ![ivanhurzeler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ivanhurzeler](https://forums.unrealengine.com/u/ivanhurzeler)\
**Post date:** [December 1, 2022, 1:17am UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/9 "2022-12-01T01:17:18Z")

</div>

yeah this was a fantastic tip after stumping lots of pros

---

<div class="post-metadata">

**Author:** ![Daniel\_C1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daniel_c1/32/490852_2.png) [@Daniel\_C1](https://forums.unrealengine.com/u/Daniel_C1)\
**Post date:** [December 8, 2022, 7:21pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/10 "2022-12-08T19:21:49Z")

</div>

I also experienced what you mention and the solution I found is to connect the Color / Texture to the Base Color and also to the Emissive Color, after that it work like a charm

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/c/75cef85362a3246fdd431c046d767990a5670544.png)

---

<div class="post-metadata">

**Author:** ![Warhamster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Warhamster](https://forums.unrealengine.com/u/Warhamster)\
**Post date:** [March 7, 2023, 10:28pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/11 "2023-03-07T22:28:19Z")

</div>

I have done each of these steps without success. Any tips or ideas? I am using UE5.1, with nanite and lumen enabled.

 ![CustomStencilNotWorking](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/a/cbae093ec0a9b50dd1b6eec47e874266980bd051.jpeg)

---

<div class="post-metadata">

**Author:** ![deWit007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deWit007](https://forums.unrealengine.com/u/deWit007)\
**Post date:** [March 8, 2023, 4:13pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/12 "2023-03-08T16:13:05Z")

</div>

Hi  
I’m still a noob with the same problem but what worked for me was to set the Intensity under Ambient Cubemap and Ambient Occlusion to a lower value on both.

 ![Screenshot 2023-03-08 180418](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/0/d409b7f62810d9c421d7a482a655785077a1fff9.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [April 18, 2023, 6:31pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/13 "2023-04-18T18:31:05Z")

</div>

Hey @PotatoKW!

Did any of these help with your issue? Seems like there are a few options! Be sure to mark one as the solution if it worked for you!

---

<div class="post-metadata">

**Author:** ![Vanuki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vanuki](https://forums.unrealengine.com/u/Vanuki)\
**Post date:** [April 27, 2023, 8:05pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/14 "2023-04-27T20:05:11Z")

</div>

For anyone who wants a great tutorial explaining the process, follow below:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/5/9a5868440064b6583ad76cbd12d25e827188d647.jpeg "Unreal Tutorial - Black and White Shader with Excluded Objects") ](https://www.youtube.com/watch?v=nrN4LxY_J7k)

---

<div class="post-metadata">

**Author:** ![Ezekiel88](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ezekiel88/32/913247_2.png) [@Ezekiel88](https://forums.unrealengine.com/u/Ezekiel88)\
**Post date:** [January 4, 2024, 6:05pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/15 "2024-01-04T18:05:54Z")

</div>

I don’t understand how this works with depth of field, so far I’ve only been able to create a depth pass where saturation can be separated, but depth of field isn’t an option. Am I missing something?

---

<div class="post-metadata">

**Author:** ![Ezekiel88](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ezekiel88/32/913247_2.png) [@Ezekiel88](https://forums.unrealengine.com/u/Ezekiel88)\
**Post date:** [January 4, 2024, 6:08pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/16 "2024-01-04T18:08:41Z")

</div>

Same, I have no idea what you’ve done here

---

<div class="post-metadata">

**Author:** ![Atomik590](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Atomik590](https://forums.unrealengine.com/u/Atomik590)\
**Post date:** [January 24, 2024, 5:18am UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/17 "2024-01-24T05:18:59Z")

</div>

This worked great for me. Used it to exclude snow particles from my outline effect 🙂

---

<div class="post-metadata">

**Author:** ![JoJoSmith](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoJoSmith](https://forums.unrealengine.com/u/JoJoSmith)\
**Post date:** [March 6, 2024, 1:03pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/18 "2024-03-06T13:03:24Z")

</div>

It only worked for DOF… I think it is a bug, not a feature

---

<div class="post-metadata">

**Author:** ![NicoCore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NicoCore](https://forums.unrealengine.com/u/NicoCore)\
**Post date:** [March 10, 2024, 1:20pm UTC](https://forums.unrealengine.com/t/exclude-objects-from-post-processing/420929/19 "2024-03-10T13:20:15Z")

</div>

Thanks for the help 🙂
