Please i need help! There is something wrong with my material (own auto material) I have my auto material layer but also hooked up the snow/Cliff/grass to a own paint layer so you can add more snow or cliff in some spots if you want, but when painting the “Layer 1” for example which uses forest materials, the landscape doesnt show the material in those spots anymore. When reapplying the material it showes up for a short moment, then goes back to default landscape look! Texture Object are set to shared: Wrap!!! Reopening the project doesnt help (also shows up for a quick moment then disapieres again)! Also Note that this Problem only happend when painting the layers that are NOT used for creating the Auto material! So when painting Cliff/Snow this issue doesnt happen! Any idea what this is the unreal docs couldnt help!
Landscape layer painting is a little wacky for sure, a lot of it has to do with how the final blending landscape textures are generated for use in-game. What I tend to do is VERY FIRST paint my base layer (Your forest tex for instance) over all the landscape sections (doesnt need to cover the whole section, just need to ‘register’ the blend layer with the section), then paint the other layers on top.
One thing I do to help visualize is creating a material just for painting that uses base colors (RGBYP…) for each layer and switch to that to see what is going on for each landscape section.
This describes the issues and solution somewhat:
I think you dont understand the problem! Maybe my Information wasnt enough! So basicly i have my Auto Material! The Auto Material is made out of diffrent layer! There is the “Auto Material” Layer which is made out of Cliff/Grass/Snow and Shore Material (I also have hooked up Grass/Snow/Shore/Cliff as a sperate Layer to paint in some spots where i dont want the snow to be for example) So right now we have the following layer: “Cliff Layer”, “Grass Layer”, “Shore Layer”, “Snow Layer”, “Auto Material Layer (made out of the just named layers)”!!! I can also paint all these layer without any problem!!! Now here comes the problem: I also have 3 Aditional Layer named “Layer1/2/3”. I want to use these layer to draw a path trough my forest for example or paint the ground under the forest! The Problem is when i try painting any of these aditional layer it shows up for a quick moment, then Shaders are getting compiled and after that the landscape square in this spot loses the material! I would like to upload a video but since i am a new user i cant!
You might be maxing out the texture sampler using a lot of layers with multiple texture samplers each per landscape component. I think limit for PC is 16 samples, on Android it’s 3 samples.
If your material uses 3 textures per layer that’s AT LEAST 3 samplers used for each painted layer, plus your auto material layers. Adds up quick.
To fix this, pack your texture channels as tight as possible to reduce texture samples. Make sure to reuse sample data and not mistakenly resample.
This is also a performance consideration as texture sampling is one of the more expensive operations on the GPU