# Physical Material Masks?

**URL:** <https://forums.unrealengine.com/t/physical-material-masks/156605>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [January 20, 2021, 12:27am UTC](https://forums.unrealengine.com/t/physical-material-masks/156605 "2021-01-20T00:27:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Doug\_Richardson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Doug\_Richardson](https://forums.unrealengine.com/u/Doug_Richardson)\
**Post date:** [March 27, 2021, 7:11pm UTC](https://forums.unrealengine.com/t/physical-material-masks/156605/2 "2021-03-27T19:11:25Z")

</div>

1. Create a mask texture with no more than eight colors. The colors must be the 8 colors listed in the material editor (and also PhysicalMaterialMask.cpp): red, green, blue, cyan, magenta, yellow, white, and black. I was able to do this by creating an RGB (no alpha) PNG in Blender.

2. Create a Physical Material Mask asset in the Content Browser. Then, right click on the asset and select Import Mask Texture. Choose the PNG you created in step 1.

3. Open a Material (normal material, not physical material) in the Material Editor. Assign the Physical Material Mask asset to it, and then select a Physical Material asset for each of the colors used in your mask texture.

 ![Physical Material Mask in Material Editor.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/d/fda7b32307779eb3722a4379975fa53f165b9b84.png)

1. Open the static mesh asset you’d like to use and enable _Support Physical Material Masks_.

![Support Physical Material Masks.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/4/44aa03747aea69829ed40b4b84553cf07707ecf0.png)

1. Assign the material to the static mesh.

2. Put the mesh into a level.

3. In the console, run: _ShowFlag.PhysicalMaterialMasks 1_. You can also enable this from the viewports Show menu with _Show \> Advanced \> Physical Material Masks_. At this point, selected actors will display the physical material mask, if they have one.

4. Select the asset you added in step (6) in the 3D viewport and confirm the physical material mask appears.

Once you’ve done all this, you can get the physical material from collision hit results, though this currently only works if Chaos physics is enabled.

---

_[View the full topic](https://forums.unrealengine.com/t/physical-material-masks/156605)._
