Landscape Visibility material bug

If you remove roughness, does the error stop occurring? We have had a few people report recently that roughness may be causing errors that it shouldn’t be so I’d like to rule that out if possible.

Hi Oblivion,

Try creating a copy of your landscape material from image one, then add the visibility mask there and use that. This way you do not have the visibility mask in your original material, however you still have the same textures for the mask. See if that works.

Unfortunately I haven’t been able to reproduce this on my end. Below is my setup, do you see anything that you did differently?

try removing the layer blend and see if that fixes the error. If so, try using a weightblended layer node to denote your layers and see if the black paint appears again.

I have had nothing but problems with landscape holes and I thought the complexity of the material was the problem, it’s not. Updated to 4.6 and it now works flawlessly using unreal’s instructions. Try updating to 4.6

As you can see it’s not a simple material:

http://i1343.photobucket.com/albums/o791/repeteor/TerrainMaterial_zps5d8438f0.png~original

I think you have tested this enough to know it’s not working, that blows. You could try my set-up above (you can sculpt terrain with it btw and it get’s textured accordingly ) as I am getting great results with it.

http://i1343.photobucket.com/albums/o791/repeteor/TerrainMaterial_zps5d8438f0.png~original

Hi Oblivion2500,

You absolutely will be able to apply multiple landscape materials to your terrain. Have a look at this page for more information: Landscape Material Layer Blending in Unreal Engine | Unreal Engine 5.1 Documentation

Just ran into this same problem myself, I take it there’s still no actual fix for it? I’ve tried putting in the opacity mask, but it’s still showing black

27902-landscapelayerholeproblem.jpg

Hi Visnarel,

Have you tried some of the fixes and workarounds listed here? Can you show me a screenshot of your landscape material, I might be able to see what is going on. Thank you!

Here’s the non-instanced version of it… I’m rebuilding it atm to see if maybe it’s blowing past the texture count or something

Make sure that each of your textures has their sampler source changed to Shared: wrap or shared: clamp. The problem you are running into is that on out of the box settings you have too many textures for the landscape to handle (16 total, 3 of which are taken for rendering so 13 usable). By changing the sampler source you increase that amount to 128 individual textures.

Ah, good info! but it didn’t fix the terrain turning black when there’s a hole problem :frowning:

As I paint it on, it disappears, when I shift paint it the terrain reappears when the last hole does

After adding the hole texture, have you tried painting on the black splotch to see if it disappears?

it’s giving me a no layer info assigned error, maybe it’s a naming conflict between the hole material and the main material? can’t pick up on the layer blend on the hole material because it has the same names as the main material? When I assign a new layer info and try to paint it just makes more black

“This layer has no layer info assigned yet. You must create or assign a layer info before you can paint this layer.”

Ok, here’s a new test. Try making a copy of the original material and take out the visibility mask. Use the original material as your hole material and use the second material as your normal layer painting. Does this still occur?

Same result

Here it is with a new material, again splat textured from world machine, but I turned off the normal maps and now you can see a little bit of the material poking through in red. This method is adding the visibility mask to the base material and setting it to both landscape and hole.

Here’s a closeup of the texturing showing through and where it’s coming from, it’s a lerp overlay of a sediment layer that’s downstream from the layer blend

Removing the layer blend and adding just a simple base color fixes the blackness issue as well, I’m calling shenanigans on the layer blend :slight_smile:

28513-nocolorblend.jpg

Can you show me your new material setup so I can understand what changed and test it on my end?