# PostProcess effect to affect custom objects

**URL:** <https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [May 5, 2022, 10:51am UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451 "2022-05-05T10:51:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tenisons](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tenisons](https://forums.unrealengine.com/u/Tenisons)\
**Post date:** [May 5, 2022, 10:51am UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/1 "2022-05-05T10:51:48Z")

</div>

UE 5.1

I have created a pixelated effect that I have applied to a post process volume, and through a CustomDepth mask I have tried to isolated this to a single object that has a CustomDepth.

I get my cube pixelated, but the rest of the environment remains black. And I can’t figure out how to mask it.

I’d like to achieve a non pixelated world and just one object pixelated.

update: FIGURED IT OUT

 ![figured](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/4/0e45c1ebc4af118fa2ccd5ec0d36b9542c118fc9.png)

---

<div class="post-metadata">

**Author:** ![Jau\_Studio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jau_studio/32/886547_2.png) [@Jau\_Studio](https://forums.unrealengine.com/u/Jau_Studio)\
**Post date:** [May 5, 2022, 1:53pm UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/3 "2022-05-05T13:53:17Z")

</div>

For reference, if someone wonders how to do it or want to use more than one effect on one type of actors :  
In your project preferences, activate the custom Depth-Stencil Pass (Enable with Stencil choice) then attribute the one you want to your object in Custom Depth Stencil Value. In the post-process, compare the CustomStencil value. If it’s the right one, send your effect, else the regular post-process.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/7/6c7222bf442c502f1ee6890227a5680966a1d39d.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 5, 2022, 1:53pm UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/4 "2022-05-05T13:53:28Z")

</div>

I adapted this tuut

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/e/46e9632bee3db6acec6c79e83b9e6d0092c15421.jpeg "How to Create Masks With the Custom Stencil Buffer | Tips & Tricks | Unreal Engine") ](https://www.youtube.com/watch?v=PiQ_JLJKi0M)

and got this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/8/d383e8762abae8b48452e5ed3696ce17f43dbf72.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/d/48d7e06f52958643e3016853e275987e1ccdb149.jpeg)

---

<div class="post-metadata">

**Author:** ![Tenisons](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tenisons](https://forums.unrealengine.com/u/Tenisons)\
**Post date:** [May 5, 2022, 2:09pm UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/5 "2022-05-05T14:09:50Z")

</div>

Thanks for your reply! I had managed to figure it out, but your example fixed another issue for me - switched the Lerp B → A and it fixed another issue for me.

---

<div class="post-metadata">

**Author:** ![Tenisons](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tenisons](https://forums.unrealengine.com/u/Tenisons)\
**Post date:** [May 5, 2022, 2:11pm UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/6 "2022-05-05T14:11:33Z")

</div>

Anyone got any idea how to define the pixelation effect not according to screenresolution/the distance to the camera, but fixed in place ?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 5, 2022, 2:19pm UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/7 "2022-05-05T14:19:03Z")

</div>

Just replace this

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/4/3646d2cc07c082ec72e6748fc8a8d70797e85033.png)

with a constant.

---

<div class="post-metadata">

**Author:** ![Tenisons](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tenisons](https://forums.unrealengine.com/u/Tenisons)\
**Post date:** [May 6, 2022, 11:47am UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/8 "2022-05-06T11:47:58Z")

</div>

Thanks dude for all your help!

This last step didn’t work, tried the constant in all ways, but no luck.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 6, 2022, 12:16pm UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/9 "2022-05-06T12:16:49Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/b/acbfbd171386fcb46496313a382a922908759445.png)

![pix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/f/8cffbd46ef11066d9546bda5a58869341c40783e.gif)

---

<div class="post-metadata">

**Author:** ![xYahik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xYahik](https://forums.unrealengine.com/u/xYahik)\
**Post date:** [September 30, 2022, 11:37pm UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/10 "2022-09-30T23:37:23Z")

</div>

Is there a way to make pixelization of all edges of object the same?  
During using Ceil function left side of object is less pixelizated than right, in the other hand if we use Floor function then effect is opposite and left side of object is more pixelizated than right.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 1, 2022, 9:58am UTC](https://forums.unrealengine.com/t/postprocess-effect-to-affect-custom-objects/549451/11 "2022-10-01T09:58:40Z")

</div>

Post process is a pixel level operation, it doesn’t understand about objects 😊
