# How to create opacity mask for progress bar material?

**URL:** <https://forums.unrealengine.com/t/how-to-create-opacity-mask-for-progress-bar-material/490966>\
**Category:** Rendering\
**Tags:** progress-bar, opacity-mask, unreal-engine, UI, question\
**Created:** [November 16, 2021, 8:17am UTC](https://forums.unrealengine.com/t/how-to-create-opacity-mask-for-progress-bar-material/490966 "2021-11-16T08:17:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shedels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shedels/32/1121823_2.png) [@Shedels](https://forums.unrealengine.com/u/Shedels)\
**Post date:** [November 16, 2021, 8:17am UTC](https://forums.unrealengine.com/t/how-to-create-opacity-mask-for-progress-bar-material/490966/1 "2021-11-16T08:17:53Z")

</div>

How to create opacity mask for progress bar material?

I need to split the progress bar into 4 equal sections and round the corners on the sides.

I was thinking about using a mask, but I don’t know how to build it. Please tell me how I can do it

 ![352180-безымянныи.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/8/bd8951c660fed7cabba268b2d47e220e595697d3.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2021, 9:30am UTC](https://forums.unrealengine.com/t/how-to-create-opacity-mask-for-progress-bar-material/490966/2 "2021-11-16T09:30:36Z")

</div>

Make the mask’s background transparent (easier to make soft edges this way if necessary), leave the stuff you want to see (blocks) white:

![352231-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/4/1446c601250bab8efc692ee8535c52056c6ab86e.png)

- set Progess Bar’s background image’s tint to transparent, so it goes away (unless you want some background)
- set the Fill Image to your png

 ![352232-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/0/3e05e8084a00b31f41a5f93f370d6aef4fc5bc03.png)

- use Fill Color and Opacity to control the colour of the elements you left out white.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 16, 2021, 9:34am UTC](https://forums.unrealengine.com/t/how-to-create-opacity-mask-for-progress-bar-material/490966/3 "2021-11-16T09:34:14Z")

</div>

You could also make the whole thing in material if you need the number of bars to change dynamically. And for something a tad more snazzy, you could have a look at this old thing of mine:

> **[Mimicking Overwatch health bar system](https://forums.unrealengine.com/questions/723483/mimicking-overwatch-health-bar-system.html)**
>
> Hiya! I’m trying to reconstruct the health bar system that Overwatch has in their game. The first thing to note is that the health bar scales depending on the amount of total health that exists on the player. Each increment on the bar is worth 25...
