# how can I remove background color from a material?

**URL:** <https://forums.unrealengine.com/t/how-can-i-remove-background-color-from-a-material/373035>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [October 11, 2016, 11:43am UTC](https://forums.unrealengine.com/t/how-can-i-remove-background-color-from-a-material/373035 "2016-10-11T11:43:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_818df549](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_818df549](https://forums.unrealengine.com/u/anonymous_user_818df549)\
**Post date:** [October 11, 2016, 11:43am UTC](https://forums.unrealengine.com/t/how-can-i-remove-background-color-from-a-material/373035/1 "2016-10-11T11:43:22Z")

</div>

![110379-a.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/0/3a020f7636bcd0d399932500268475dfa7271d00.png)

I wanna remove background color and making it transparent,

Thank you in advance !

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [October 11, 2016, 1:36pm UTC](https://forums.unrealengine.com/t/how-can-i-remove-background-color-from-a-material/373035/2 "2016-10-11T13:36:01Z")

</div>

[Masked material](https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/MaterialProperties/BlendModes/#masked) with [opacity mask](https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/MaterialNodes/1_8/) is what you need need.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_818df549](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_818df549](https://forums.unrealengine.com/u/anonymous_user_818df549)\
**Post date:** [October 11, 2016, 8:15pm UTC](https://forums.unrealengine.com/t/how-can-i-remove-background-color-from-a-material/373035/3 "2016-10-11T20:15:34Z")

</div>

![110452-c.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/f/5af9984a728156a2cf8a79ffb395d65af57f1b8e.png)

Thank u very much!  
I found a solution on github: [GitHub - Tolc/Unreal-UMG-3DObjectInWidget: A simple Unreal Engine 4 project (precisely 4.7.4) showing how to render a 3D object/mesh in a UMG widget.](https://github.com/Tolc/Unreal-UMG-3DObjectInWidget).

But this solution generates noticeable aliasing，how can I solve this problem? Thank u.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d1f1f797](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d1f1f797](https://forums.unrealengine.com/u/anonymous_user_d1f1f797)\
**Post date:** [November 16, 2017, 10:43pm UTC](https://forums.unrealengine.com/t/how-can-i-remove-background-color-from-a-material/373035/4 "2017-11-16T22:43:13Z")

</div>

Thanks for posting this, it helped me out knowing you can subtract images like this in order to create a mask that filters out where all the pixels are the same.

---

<div class="post-metadata">

**Author:** ![Sanjay\_varma11](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sanjay_varma11/32/88711_2.png) [@Sanjay\_varma11](https://forums.unrealengine.com/u/Sanjay_varma11)\
**Post date:** [May 1, 2021, 1:39am UTC](https://forums.unrealengine.com/t/how-can-i-remove-background-color-from-a-material/373035/5 "2021-05-01T01:39:16Z")

</div>

This will work if you have black background then

change the material mode to masked and drag and drop the alpha channel to opacity mask
