# Help with Box Mask 3D Post Process material.

**URL:** <https://forums.unrealengine.com/t/help-with-box-mask-3d-post-process-material/2198647>\
**Category:** Rendering\
**Tags:** Post-Processing, unreal-engine, Rendering, Lighting, Blueprint, question\
**Created:** [December 10, 2024, 11:45pm UTC](https://forums.unrealengine.com/t/help-with-box-mask-3d-post-process-material/2198647 "2024-12-10T23:45:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PharosSentinel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PharosSentinel](https://forums.unrealengine.com/u/PharosSentinel)\
**Post date:** [December 10, 2024, 11:45pm UTC](https://forums.unrealengine.com/t/help-with-box-mask-3d-post-process-material/2198647/1 "2024-12-10T23:45:16Z")

</div>

I am trying to create a blueprint class that I can place in my levels to operate as “Dark Zones”

This class will just be a simple blueprint class with a post process and a box collision.

On construction it sets values of a material parameter collection for the boxs orgin point and the box extent.

I then Want to take this data into my material to use in the post process material to determine if a pixel is in the bounds or not.

Below is a picture of my Material. I am new to materials and need some guidance on how to achieving making everything in the box effected by the post process and making the area dark.

Thanks

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/0/1f0eef9bc3370191c3154575ce472118461eaa3e.png)

---

<div class="post-metadata">

**Author:** ![PharosSentinel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PharosSentinel](https://forums.unrealengine.com/u/PharosSentinel)\
**Post date:** [December 11, 2024, 1:24am UTC](https://forums.unrealengine.com/t/help-with-box-mask-3d-post-process-material/2198647/2 "2024-12-11T01:24:24Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/c/b5ca0ebf1e7a9feb173b9e4716c4c63b94cd49a6.jpeg)

After some playing around I have been able to do the exact opposite I want but can not make it dark only in the boxed area.

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

---

<div class="post-metadata">

**Author:** ![PharosSentinel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PharosSentinel](https://forums.unrealengine.com/u/PharosSentinel)\
**Post date:** [December 11, 2024, 2:18am UTC](https://forums.unrealengine.com/t/help-with-box-mask-3d-post-process-material/2198647/3 "2024-12-11T02:18:19Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/8/7289ec1ec7c89956f41873e78fefc81e19b10e7e.jpeg)

I was able to achieve the desired result by doing the following in the picture below.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/b/14b6032abb60e75f30685590aad7f0aac983ef52.png)

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

I created Material Function to allow me to easily create a Box Mask to apply Post Process effects with in that can be seen from outside the box bounds.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 10, 2025, 2:19am UTC](https://forums.unrealengine.com/t/help-with-box-mask-3d-post-process-material/2198647/4 "2025-01-10T02:19:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
