Material fails to compile

UE4 4.13
Marketplace asset “Pirates Island”
Material: \Content\PirateIsland\Nature\Materials\Landscape_Mat.uasset

The material fails to compile when Project Settings only enable “Platform Windows - DirectX 11 (SM5)”.

Is there a way to compile this, or to resolve those errors, for DX 11?

Here is the log:

LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1700,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: DeferredShadingCommon.usf(655,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: ReflectionEnvironmentShared.usf(29,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: LandscapeVertexFactory.usf(55,14-36): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1684,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: DeferredShadingCommon.usf(655,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1700,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: DeferredShadingCommon.usf(655,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: ReflectionEnvironmentShared.usf(29,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: LandscapeVertexFactory.usf(55,14-36): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1670,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1686,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: DeferredShadingCommon.usf(655,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: ReflectionEnvironmentShared.usf(29,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: LandscapeVertexFactory.usf(55,14-36): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1686,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: DeferredShadingCommon.usf(655,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: ReflectionEnvironmentShared.usf(29,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: LandscapeVertexFactory.usf(55,14-36): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1670,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1684,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: DeferredShadingCommon.usf(655,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1686,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: DeferredShadingCommon.usf(655,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: ReflectionEnvironmentShared.usf(29,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: LandscapeVertexFactory.usf(55,14-36): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1684,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: DeferredShadingCommon.usf(655,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1700,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: DeferredShadingCommon.usf(655,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: ReflectionEnvironmentShared.usf(29,14-35): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: LandscapeVertexFactory.usf(55,14-36): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded
LogShaderCompilers:Warning: Failed to compile Material /Game/PirateIsland/Nature/Materials/Landscape_Mat.Landscape_Mat for platform PCD3D_SM5, Default Material will be used in game.
LogShaderCompilers:Warning: Material.usf(1670,2-40): warning X3206: implicit truncation of vector type
LogShaderCompilers:Warning: ShadingModels.usf(626,15-65): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(647,15-55): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: ShadingModels.usf(668,24-66): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
LogShaderCompilers:Warning: BasePassPixelShader.usf(70,15-38): err0r X4510: maximum ps_5_0 sampler register index (16) exceeded

Hi btengelh,

Did you make any changes to the material at all? I loaded the Pirate Island map and had no problem compiling the landscape material after changing the Targeted RHI to be only DirectX11. Could you provide a screenshot of the material graph for the landscape material as well.

,

Hi Ed, I managed to solve this according to this thread: https://answers.unrealengine.com/questions/61400/max-layers-exceeded-but-i-do-have-less-than-16.html

SamplerSource property to Shared.

Meanwhile I tried the PirateIsland in a new blank 4.13 project and there were no errors. I guess this is caused in this one particular project by being upgraded thorugh different releases dating as far back as 4.8. Problem solved, thank you!

1 Like

where is this setting and how do we find it???