# How can I apply different physical materials on a single material?

**URL:** <https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501>\
**Category:** Asset Creation\
**Tags:** UE-5, unreal-engine, Rendering, question\
**Created:** [March 26, 2023, 5:49pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501 "2023-03-26T17:49:21Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nexusgot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nexusgot](https://forums.unrealengine.com/u/Nexusgot)\
**Post date:** [March 26, 2023, 5:49pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/1 "2023-03-26T17:49:21Z")

</div>

Hi everybody, I created a material I’m using for a small sized planet. Now I need to apply different physical materials to it but I don’t know how to do this. I’ve found I need to use layers and physical material output but I don’t understand how to use it. Please help.  
Here an image of my material blueprint:

 ![2023-03-26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/1/3615915a0ee8ef559f5406ee386eea1994b07539.jpeg)

Thanks.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 26, 2023, 6:17pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/2 "2023-03-26T18:17:07Z")

</div>

There’s lots of tutorials

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/2/292c89eff61490c0826a824d3b6dde98b0777a61.jpeg "UE4 - 4.19 Layered Materials Setup") ](https://www.youtube.com/watch?v=UZghyZLzRyM)

---

<div class="post-metadata">

**Author:** ![Nexusgot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nexusgot](https://forums.unrealengine.com/u/Nexusgot)\
**Post date:** [March 27, 2023, 2:43pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/3 "2023-03-27T14:43:15Z")

</div>

Thanks for the reply. I found the video quite useful, I used the method from 18:20 and I recreated the planet material using different layers but now I have the same problem as before because I don’t know where to set physical materials to the different layers. I can’t do it in the Material Layer, same in the Material Layer Blend and the Material itself with the Material Attributes Layers node. Any ideas?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 27, 2023, 4:03pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/4 "2023-03-27T16:03:24Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/d/07d0b0e233a4818cc91b943846990ef9227f01f8.jpeg "UE4 Physical Materials (And Surface Types) | Beginner Tutorial") ](https://www.youtube.com/watch?v=MWuakEk2cdg)

---

<div class="post-metadata">

**Author:** ![Nexusgot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nexusgot](https://forums.unrealengine.com/u/Nexusgot)\
**Post date:** [March 28, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/5 "2023-03-28T14:33:28Z")

</div>

Thanks again for your answer but I still don’t get it. I watched a lot of videos about layered materials but I never found anything about physical material assignment.  
I know how to use physical materials on a basic material but now I need to apply different multiple physical materials to a single layered material. I have the main material with Material Attribute Layers, I have Material Layers and Material Layer Blends.  
I have one base texture blended with a second one using a “clouds” texture as Lerp Alpha.  
I have the poles texture blended using a Function based on distance from vertical center.  
I have a 4th texture blended based on the radial distance from the object center.  
How can I assign a physical material to each of the single layers?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 28, 2023, 6:03pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/6 "2023-03-28T18:03:03Z")

</div>

I haven’t tested it AT ALL, but I’m assuming you specify the physical material in each material layer, because that’s basically a material. Either that, or it may be in the slot part of the main material, once you’ve put it all together.

Sorry I don’t have more info.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 29, 2023, 8:11am UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/7 "2023-03-29T08:11:48Z")

</div>

Hi - I just looked at this again, and as far as I can see, it’s not possible to specify physical materials for the layers in a material layer blend.

Is this for footsteps, or similar?

I’m assuming you’ll need to use landscape layers, then.

---

<div class="post-metadata">

**Author:** ![Nexusgot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nexusgot](https://forums.unrealengine.com/u/Nexusgot)\
**Post date:** [March 29, 2023, 1:38pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/8 "2023-03-29T13:38:45Z")

</div>

Yes it is for footsteps and stuff, but I’m not using a Landscape because the “terrain” is a Static Mesh in the shape of a planet. Can I use the Landscape Layers in this case too?  
Or is there a way I can do what I need and make a line trace detect the different surfaces?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 29, 2023, 1:49pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/9 "2023-03-29T13:49:37Z")

</div>

You have to try all these things, I’m afraid. I can’t recommend a route from memory.

I also have a spherical planet, with footsteps, but it doesn’t have layers, it just a normal blended material.

I’m doing a line trace, but to get the material back, it’s a whole thing with something I ripped out of Niagara.

It might be easier now, I don’t know…

I’m assuming you already had to write a special pawn. Everything’s going to need to be custom 😉

---

<div class="post-metadata">

**Author:** ![DavidMcEwen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DavidMcEwen](https://forums.unrealengine.com/u/DavidMcEwen)\
**Post date:** [March 29, 2023, 2:25pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/10 "2023-03-29T14:25:40Z")

</div>

An option may be to use Physical Material Masks. This post covers how it works (as it doesn’t appear properly documented):

> [@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…

It will probably depend how your material is structured how useful it can be (as in can it relate to a static look up). The usage basically resolves to the raycast hit mapping to the UVs of the mask and returning the index of the physical material.

---

<div class="post-metadata">

**Author:** ![Nexusgot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nexusgot](https://forums.unrealengine.com/u/Nexusgot)\
**Post date:** [March 29, 2023, 3:55pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/11 "2023-03-29T15:55:22Z")

</div>

Ok I managed to use Physical Material Masks with colors (the material is simple so I can do it with just red, green and blue) in the master material but I noticed that the Physical Material Mask doesn’t seem to work on material instances. Is this normal or am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![DavidMcEwen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DavidMcEwen](https://forums.unrealengine.com/u/DavidMcEwen)\
**Post date:** [March 29, 2023, 4:11pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/12 "2023-03-29T16:11:41Z")

</div>

Yeah looking at the code it’s not implemented for instances (not sure why), it does seem like a big limitation.  
Code wise it doesn’t look like a big change to add support in the engine.

---

<div class="post-metadata">

**Author:** ![Nexusgot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nexusgot](https://forums.unrealengine.com/u/Nexusgot)\
**Post date:** [March 29, 2023, 4:43pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/13 "2023-03-29T16:43:35Z")

</div>

Maybe I found a way. I created the spots for grass/dirt in different colors painting on the planet mesh in Blender, then I imported the image as the Physical Material Mask and used it as the mask and also as the lerp Alpha for grass/dirt textures. Ok I need to create a lot of master materials (this is crazy imho) but the real problem is that now the Engine crashes everytime I open the map or the blueprint where the mesh with the material using Physical Material Mask is present.

---

<div class="post-metadata">

**Author:** ![DavidMcEwen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DavidMcEwen](https://forums.unrealengine.com/u/DavidMcEwen)\
**Post date:** [March 31, 2023, 8:48am UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/14 "2023-03-31T08:48:37Z")

</div>

When it crashed was the message in the log something like this:

_Registering a texture to the compile manager from inside a texture postcompilation is not supported and usually indicate that the previous async operation wasn’t completed_

If it is I got the same issue when I was trying out some changes. If you are working off source the apparent fix is to wrap the MaskTexture access in _GenerateMaskData_ with a PreEdit & PostEditChange in _\Runtime\Engine\Private\PhysicsEngine\PhysicalMaterialMask.cpp_ due to where it gets called in the post load flow. Just replace the function with the below.

```auto
void UPhysicalMaterialMask::GenerateMaskData(TArray<uint32>& OutMaskData, int32& OutSizeX, int32& OutSizeY) const
{
	OutMaskData.Empty();

#if WITH_EDITOR

	if (MaskTexture)
	{
		// Avoid any issue with the async texture compilation (even though no texture data is changed)
		MaskTexture->PreEditChange(nullptr);

		uint8* TextureData = MaskTexture->Source.LockMip(0);
		if (TextureData)
		{
			const int32 TextureDataSize = MaskTexture->Source.CalcMipSize(0);

			if (TextureDataSize > 0)
			{
				OutSizeX = MaskTexture->Source.GetSizeX();
				OutSizeY = MaskTexture->Source.GetSizeY();

				ETextureSourceFormat TextureDataSourceFormat = MaskTexture->Source.GetFormat();
				switch (TextureDataSourceFormat)
				{
				case TSF_BGRA8:
				{
					MaskDataGenerator<uint8, 2, 1, 0, 3> MaskDataGen(OutSizeX, OutSizeY, TextureData);
					MaskDataGen.GenerateMask(OutMaskData);
					break;
				}

				case TSF_RGBA16:
				{
					MaskDataGenerator<uint16, 0, 1, 2, 3> MaskDataGen(OutSizeX, OutSizeY, TextureData);
					MaskDataGen.GenerateMask(OutMaskData);
					break;
				}

				default:
					check(0);
					break;
				}
			}
		}

		MaskTexture->Source.UnlockMip(0);

		MaskTexture->PostEditChange();
	}
#endif // WITH_EDITOR

	if (OutMaskData.Num() == 0)
	{
		OutSizeX = 0;
		OutSizeY = 0;
	}
}

```

I’ve submitted the fix to Epic, but no guarantee when it will get rolled in. I’ve also submit the changes for physical material masks working with material instances.

---

<div class="post-metadata">

**Author:** ![DavidMcEwen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DavidMcEwen](https://forums.unrealengine.com/u/DavidMcEwen)\
**Post date:** [April 2, 2023, 1:38am UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/15 "2023-04-02T01:38:01Z")

</div>

If it is the same crash you can work it without a code change if you disable the async texture compilation in the editor. This obviously may slow down things a bit, so only use if you need to.

You can toggle this in the editor preferences:

 ![AsyncTextureCompilation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/5/7d54bff6edda42765493c5819ed80501908e298a.png)

Or you can disable temporarily via the console:  
`Editor.AsyncTextureCompilation 0`

And reenable with:  
`Editor.AsyncTextureCompilation 1`

---

<div class="post-metadata">

**Author:** ![Nexusgot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nexusgot](https://forums.unrealengine.com/u/Nexusgot)\
**Post date:** [April 2, 2023, 6:18pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/16 "2023-04-02T18:18:10Z")

</div>

Thanks for your answers, I’ll try as soon as I can and let you know if it worked. I don’t remember the crash message but I will check it next time this happens.

---

<div class="post-metadata">

**Author:** ![phantomsom1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phantomsom1](https://forums.unrealengine.com/u/phantomsom1)\
**Post date:** [November 5, 2025, 7:21pm UTC](https://forums.unrealengine.com/t/how-can-i-apply-different-physical-materials-on-a-single-material/825501/17 "2025-11-05T19:21:31Z")

</div>

Hi Nexus… have you figured out how to assign the correct physical materials? Ther’es a node called Landscape Physical Material Output now, but this solution isn’t working for me when I’m involving the use of the voxel plugin so i’m wondering if you figured it out on your end
