# How to differentiate different surfaces in the same Mesh

**URL:** <https://forums.unrealengine.com/t/how-to-differentiate-different-surfaces-in-the-same-mesh/505160>\
**Category:** Asset Creation\
**Tags:** surface, UE4-27, question\
**Created:** [March 8, 2022, 8:50pm UTC](https://forums.unrealengine.com/t/how-to-differentiate-different-surfaces-in-the-same-mesh/505160 "2022-03-08T20:50:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KoileYo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KoileYo](https://forums.unrealengine.com/u/KoileYo)\
**Post date:** [March 8, 2022, 8:50pm UTC](https://forums.unrealengine.com/t/how-to-differentiate-different-surfaces-in-the-same-mesh/505160/1 "2022-03-08T20:50:05Z")

</div>

Hey,

so I am creating a Sound Design for the Assetville Demonstration Map and stumbled across the following Problem.

I want to implement Footsteps and usually I would do that by setting various Physical Materials, associating them with their corresponding Surface and so on.  
In this Project that’s a little bit more problematic it seems, because there are Assets like [this](https://i.imgur.com/AHKqqbA.jpg) one, that are not brushes or separated in any way but rather a [static mesh](https://i.imgur.com/thTtaWJ.jpg) .

So in my mind, I would have to do “a lot” of math and get the measurements for each mesh that is similar to this. Is there any easier way to do this? Also this is probably not the most common way to create level right? It seems not very practical to use meshes like this

Any input is appreciated, thanks in advance.

---

<div class="post-metadata">

**Author:** ![L1z4rD89](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l1z4rd89/32/1194537_2.png) [@L1z4rD89](https://forums.unrealengine.com/u/L1z4rD89)\
**Post date:** [March 8, 2022, 8:59pm UTC](https://forums.unrealengine.com/t/how-to-differentiate-different-surfaces-in-the-same-mesh/505160/2 "2022-03-08T20:59:46Z")

</div>

[Reading texture color data using UV values](https://forums.unrealengine.com/t/reading-texture-color-data-using-uv-values/465888/15) you could do this with a linetrace downwards. And e.g. use a dirt sound for a brown color, a grass sound for a green color etc.

---

<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:** [March 8, 2022, 9:01pm UTC](https://forums.unrealengine.com/t/how-to-differentiate-different-surfaces-in-the-same-mesh/505160/3 "2022-03-08T21:01:13Z")

</div>

Physical materials masks:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/4/0640bd8eda996ba310369f6edac57de41b1ff169.jpeg "Landscape Physics Materials | Multiple Physics Materials On A Landscape - Unreal Engine 4 Tutorial") ](https://www.youtube.com/watch?v=ZlsjPPakXho)

---

<div class="post-metadata">

**Author:** ![KoileYo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KoileYo](https://forums.unrealengine.com/u/KoileYo)\
**Post date:** [March 8, 2022, 10:05pm UTC](https://forums.unrealengine.com/t/how-to-differentiate-different-surfaces-in-the-same-mesh/505160/4 "2022-03-08T22:05:01Z")

</div>

That could work. Thanks

---

<div class="post-metadata">

**Author:** ![KoileYo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KoileYo](https://forums.unrealengine.com/u/KoileYo)\
**Post date:** [March 8, 2022, 10:13pm UTC](https://forums.unrealengine.com/t/how-to-differentiate-different-surfaces-in-the-same-mesh/505160/5 "2022-03-08T22:13:44Z")

</div>

Thanks for the reply. That gave me some idea how Landscapes work. Gonna have to look into it further though.  
Since there is no Landscape by default and everything is meshes, I can’t “just” use the Paint Tool. I would need something invisible masking the dirt areas that lays on top of the mesh.

---

<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:** [March 8, 2022, 10:18pm UTC](https://forums.unrealengine.com/t/how-to-differentiate-different-surfaces-in-the-same-mesh/505160/6 "2022-03-08T22:18:18Z")

</div>

Should work with static meshes:

> [@Physical Material Masks?](https://forums.unrealengine.com/t/physical-material-masks/156605/2):
>
> 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. 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. Open a Material (normal material, not physical ma…

You’d need to create a mask outside the editor.

---

<div class="post-metadata">

**Author:** ![KoileYo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KoileYo](https://forums.unrealengine.com/u/KoileYo)\
**Post date:** [March 8, 2022, 10:41pm UTC](https://forums.unrealengine.com/t/how-to-differentiate-different-surfaces-in-the-same-mesh/505160/7 "2022-03-08T22:41:20Z")

</div>

Will try, thanks
