# Masking out objects while keeping them visible in postprocess

**URL:** <https://forums.unrealengine.com/t/masking-out-objects-while-keeping-them-visible-in-postprocess/488869>\
**Category:** Rendering\
**Tags:** Post-Processing, translucent, opacity-mask, opacity, unreal-engine, question\
**Created:** [September 16, 2021, 12:11pm UTC](https://forums.unrealengine.com/t/masking-out-objects-while-keeping-them-visible-in-postprocess/488869 "2021-09-16T12:11:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrostSnake](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrostSnake](https://forums.unrealengine.com/u/FrostSnake)\
**Post date:** [September 16, 2021, 12:11pm UTC](https://forums.unrealengine.com/t/masking-out-objects-while-keeping-them-visible-in-postprocess/488869/1 "2021-09-16T12:11:18Z")

</div>

Hello!  
Ive created a postprocess material that creates emissive outlines of stencil “occluded” objects (behind other objects)  
What Im trying to achieve, is to hide those “stencil” objects if they weren’t occluded.  
One approach I tried was to use Opacity Mask in Masked opaque objects to hide object, but when I do that, the postprocess material wont “find” anything to create outlines of.  
I also tried to find a way to actually hide those objects within the postprocess material, but apparently its not achievable as well.  
Any ideas how can I achieve this?
