# RGB Mask packing

**URL:** <https://forums.unrealengine.com/t/rgb-mask-packing/19878>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [January 29, 2015, 1:26pm UTC](https://forums.unrealengine.com/t/rgb-mask-packing/19878 "2015-01-29T13:26:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LI0nhart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LI0nhart](https://forums.unrealengine.com/u/LI0nhart)\
**Post date:** [January 29, 2015, 1:26pm UTC](https://forums.unrealengine.com/t/rgb-mask-packing/19878/1 "2015-01-29T13:26:21Z")

</div>

I’ve looked at the info at [Using Texture Masks | Unreal Engine Documentation](https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/HowTo/Masking/index.html)

But does not explain how to create the black and white image per mask per channel?

I use photoshop when I select say “blue channel” some parts of my UV image disappears too making it hard to create masks for each channel. I’m guessing im doing it wrong and would appreciate a step by step on how to do this?

Thanks

---

<div class="post-metadata">

**Author:** ![SE\_JonF](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/se_jonf/32/958477_2.png) [@SE\_JonF](https://forums.unrealengine.com/u/SE_JonF)\
**Post date:** [January 29, 2015, 1:54pm UTC](https://forums.unrealengine.com/t/rgb-mask-packing/19878/2 "2015-01-29T13:54:35Z")

</div>

It’s best to create the masks in another image/psd and then copy + paste in place in a new document, in the respective channel (red, green, blue). Make sure the new document has a black background and that the mask you are copying from the original is filled with white. You can then use each channel as an individual mask in the material editor.

---

<div class="post-metadata">

**Author:** ![LI0nhart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LI0nhart](https://forums.unrealengine.com/u/LI0nhart)\
**Post date:** [January 31, 2015, 1:06pm UTC](https://forums.unrealengine.com/t/rgb-mask-packing/19878/3 "2015-01-31T13:06:07Z")

</div>

Ok thanks SE\_JonF 🙂

---

<div class="post-metadata">

**Author:** ![LI0nhart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LI0nhart](https://forums.unrealengine.com/u/LI0nhart)\
**Post date:** [February 24, 2015, 1:40pm UTC](https://forums.unrealengine.com/t/rgb-mask-packing/19878/4 "2015-02-24T13:40:57Z")

</div>

Hi, SE\_JonF

I find that when i copy the white (masked) part into a channel of a new image it puts it in the middle of the new image rather then were it should be as in the previous image it was taken from. The only way to stop this was to fill the the rest of the image with the black 1st then copy it. I dont see the need for making sure there is a black background in the new imge 1st, I’m i doing it wrong?

---

<div class="post-metadata">

**Author:** ![Ben85](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ben85](https://forums.unrealengine.com/u/Ben85)\
**Post date:** [February 24, 2015, 4:42pm UTC](https://forums.unrealengine.com/t/rgb-mask-packing/19878/5 "2015-02-24T16:42:35Z")

</div>

Basically, you want to create the selection (using the selection tools) when you have all channels (RGB) visible and the layers panel active, then switch to the channels panel to modify the individual channel.

[https://youtube.com/watch?v=ImF\_du32ZU8](https://youtube.com/watch?v=ImF_du32ZU8)

You might need to increase the resolution on the above video to 1080P to see it clearly.

---

<div class="post-metadata">

**Author:** ![LI0nhart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LI0nhart](https://forums.unrealengine.com/u/LI0nhart)\
**Post date:** [February 25, 2015, 1:41pm UTC](https://forums.unrealengine.com/t/rgb-mask-packing/19878/6 "2015-02-25T13:41:48Z")

</div>

I got it doing it that way from not using and UV overlay. If i have created the mask channels from another image which were created using complex shape of my UV image and copy them red,green,blue to the new image thats where my problem lies.

Thanks for the video though Ben85

---

<div class="post-metadata">

**Author:** ![CorvaeOboro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/corvaeoboro/32/470072_2.png) [@CorvaeOboro](https://forums.unrealengine.com/u/CorvaeOboro)\
**Post date:** [February 27, 2015, 10:08pm UTC](https://forums.unrealengine.com/t/rgb-mask-packing/19878/7 "2015-02-27T22:08:49Z")

</div>

Expresso Exporter for Photoshop CC can export to specified channels by unlocking the output.  
it makes for a really nice easiliy readable psd.

[https://forums.unrealengine.com/showthread.php?49700-Photoshop-Plugin-Expresso-Exporter-quickly-export-texture-maps-out-of-PSDs](https://forums.unrealengine.com/showthread.php?49700-Photoshop-Plugin-Expresso-Exporter-quickly-export-texture-maps-out-of-PSDs)

---

<div class="post-metadata">

**Author:** ![LI0nhart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LI0nhart](https://forums.unrealengine.com/u/LI0nhart)\
**Post date:** [March 4, 2015, 8:01am UTC](https://forums.unrealengine.com/t/rgb-mask-packing/19878/8 "2015-03-04T08:01:10Z")

</div>

Cheers dude, might give it a go
