# Make a mesh mask

**URL:** <https://forums.unrealengine.com/t/make-a-mesh-mask/1420395>\
**Category:** Asset Creation\
**Tags:** UE-5, occlusion, unreal-engine, mask, Rendering, staticmesh, question\
**Created:** [November 25, 2023, 4:59pm UTC](https://forums.unrealengine.com/t/make-a-mesh-mask/1420395 "2023-11-25T16:59:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mergrast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mergrast](https://forums.unrealengine.com/u/Mergrast)\
**Post date:** [November 25, 2023, 4:59pm UTC](https://forums.unrealengine.com/t/make-a-mesh-mask/1420395/1 "2023-11-25T16:59:23Z")

</div>

What i need is to mask objects inside any custom mesh, the object i need to mesh is an entire building full of stuff inside

What i’ve tried but couldn’t get the expected result:  
BoxMask - 3D passing mesh parameters

NearestDF Method - since the entire building needs this material they also get each others DFs, and i would need it to check only a specific mesh DF (the mask object) (Also this method seems very expensive)

Custom Depth Stencil - Its relative to the camera and not to mesh bounds, so it wont work

---

<div class="post-metadata">

**Author:** ![Mergrast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mergrast](https://forums.unrealengine.com/u/Mergrast)\
**Post date:** [December 9, 2023, 4:36pm UTC](https://forums.unrealengine.com/t/make-a-mesh-mask/1420395/2 "2023-12-09T16:36:30Z")

</div>

Is this actualiy possible? To mask pixels based on the complex collision of a mesh?
