# PCG - Paint Landscape Layer

**URL:** <https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [March 24, 2025, 8:15pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522 "2025-03-24T20:15:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 24, 2025, 8:15pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/1 "2025-03-24T20:15:25Z")

</div>

I’m trying to create procedural trails/paths using PCG - I’ve managed to use pathfinding to create a path between points A and B, then the landscape is deformed using the landscape patch. My next step is to (try) apply my dirt layer from the landscape mat to the path.

Currently I am able to see the Layer as an attribute and add to that attribute, however, I’m not sure how to visually update the landscape.

Just wondering if anyone else has managed this? and if so any chance of getting some help?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/6/d566f9d445ad7463cf13061520cd5b33571247a5.jpeg)

---

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 25, 2025, 10:21am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/2 "2025-03-25T10:21:18Z")

</div>

With the current PCG, we can’t modify the landscape. The Landscape Blueprint Brushes are for that, however they are not properly working either 🙂

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 10:25am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/3 "2025-03-25T10:25:32Z")

</div>

Hey, thanks for the reply! Do you mean we can’t modify the landscape material? I am currently modifying the landscape using PCG.

---

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 25, 2025, 11:04am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/4 "2025-03-25T11:04:32Z")

</div>

I am not aware of any method of modifying the landscape using PCG. I’ve tried with Landscape Blueprint Brushes, but I am not sure what type of modifications you are doing on it by using PCG.

From what you’ve done it seems that you’ve managed to modify the height and now trying with the weight? If you are using Landscape Patch it might be a landscape patch question rather than a PCG question.

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 11:10am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/5 "2025-03-25T11:10:15Z")

</div>

Yeah basically, I have 2 graphs - one is using the pathfinding node to generate a spline from point A to B that avoids slopes, the second is spawning landscape circle patches along the spline to deform the landscape down within the spline boundaries.

I update the Landscape layer attribute for layer2 (soil) from its current weight to a value of 1 within the area of the pathfinding spline (the values in the screenshot).

Just need that attrib update to be applied to the landscape and show the soil layer along the path

“it might be a landscape patch question rather than a PCG question”

That’s a very good point! Thank you!

---

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 25, 2025, 11:13am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/6 "2025-03-25T11:13:56Z")

</div>

Understood. I am looking for a non-destructive way to modify the terrain splatmap/weightmap  
for ages (I have a partly gen terrain in WM) and I can say that I haven’t found anything relevant.

Modifying the attribute in PCG, I’m 90% sure that will have no effect. If you find anything please, let me know, I’ve made a related post here: [Problem with Landscape Edit Layers Weight + Blueprint Stamps - Development / World Creation - Epic Developer Community Forums](https://forums.unrealengine.com/t/problem-with-landscape-edit-layers-weight-blueprint-stamps/2415918)

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 11:15am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/7 "2025-03-25T11:15:45Z")

</div>

Yeah I will do, I think you’re right as you can use patches to modify the material, just not sure how…

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [March 25, 2025, 11:21am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/8 "2025-03-25T11:21:47Z")

</div>

Apply both the terrain paint (because after-all if you are using that s\*it you need the physical material response off of it) and decals.

In the more sane case in which you switch to using static meshes, you probably need to still apply some sort of paint dynamically. You can likely do that via render target and still come out on top.

Re the simple question of how you modify the landscape.  
Unless they messed the engine up (which they did, so…) beyond all hope, a spline will suffice.  
Go from the pcg to a spline, then from the spline via a quick bluetility call (look it up if lost) and apply the terrain deformation from the spline.

If your spline has wide enough turns it’ll work and look OK. If your turns and details are below a 1m resolution range it wont look too hot.  
In that case, just make meshes instead of having to make meshes anyway later for performance reasons…

---

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 25, 2025, 11:23am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/9 "2025-03-25T11:23:34Z")

</div>

I have managed to partly get it working:

 ![Patches](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/f/71f69c9b48eec4ef646855f71a4c6aef365f37d4.jpeg)

However, because you are enforced to use a Landscape Edit Layer the problem mentioned in my [post](https://forums.unrealengine.com/t/problem-with-landscape-edit-layers-weight-blueprint-stamps/2415918) still persists, because for some reason the Edit Layers can’t paint the weight fully.

If you find a workaround, please let me know since it would also solve my problem with the terrain editing. Many thanks!

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 11:24am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/10 "2025-03-25T11:24:14Z")

</div>

Does it need to remove the current weight aswell?

---

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 25, 2025, 11:26am UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/11 "2025-03-25T11:26:10Z")

</div>

I have no idea if that would work. Let me see if I can make it to also remove the current weight… but I can’t see how that’s possible with Landscape Edit Layers.

**Edit:** I did **not** manage to remove the Grass from below to purely add my Earth on top, so that there’s a clean blend. The mentioned solution with terrain-blend splines seems the best approach at the moment.

**Edit 2:** It still seems to me there’s a layer bug in the landscape, somewhere in the ‘ULandscapeEditLayerBase’ class or some class that composes those layers to obtain the final weightmap. Trying to look through the code on the layer combination part if I might find any problem there.

**Edit 3:** The problem seems to be related to the GPU blending of the layer weights, located in the shader: **‘/Engine/Private/Landscape/LandscapeEditLayersWeightmaps.usf’** **(FLandscapeEditLayersWeightmapsMergeEditLayerPS class)** however, I do believe that I would require a confirmation before opening a ticket.

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 12:18pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/12 "2025-03-25T12:18:26Z")

</div>

I’ve almost solved it - managed to get the texture

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/3/4a32cd86c0252e0263352d66cd9bfe6e2f7915d5.jpeg)

Just need to solve the density and optimise it then I’ll break it down.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/e/bae5532a05b0497bac1edf6b80e2dfb162b0719a.jpeg)

---

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 25, 2025, 1:06pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/13 "2025-03-25T13:06:31Z")

</div>

Looking forward to it, I was out of ideas 🙂

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 1:13pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/14 "2025-03-25T13:13:18Z")

</div>

UE is hung at moment so can’t break down with screenshots but the steps are along the lines of

1. Create blueprint with landscape circle patch (BP\_Deform)

2. Create blueprint with height patch (BP\_Texture) - in construct script set landscape layer weight

3. Create PCG graph that creates pathfinding spline

4. Create PCG graph that samples the pathfinding spline and spawns BP\_Deform

5. Duplicate the PCG graph that samples the pathfinding spline and spawn BP\_Texture instead.

I imagine 4+5 can be merged just set it up separate for tests.

Gonna restart the engine and try clean it up and I’ll break it down further with screenshots.

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 1:16pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/15 "2025-03-25T13:16:41Z")

</div>

My next steps are;

- Optimise

- create multiple end points

- try blend between the grass and dirt layer with sand or gravel layer.

---

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 25, 2025, 1:26pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/16 "2025-03-25T13:26:25Z")

</div>

![Patch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/5/0551b11d5619e11cb1a2efd6dcd9bef3ec929c66.jpeg)

I still get the half-weight stuff. The ‘Earth’ Layer I’ve set should look much more intense. Am I missing something?

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 3:16pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/18 "2025-03-25T15:16:48Z")

</div>

Apologies for delay, engine hung then I broke PCG

Construct script

> **[Layer weights construct posted by anonymous | blueprintUE | PasteBin For...](https://blueprintue.com/blueprint/9jbjoqj-/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 3:19pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/19 "2025-03-25T15:19:27Z")

</div>

Add layer name here

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/3/3f3c0ca72e23a909efbaa0a723dce473dd6913f5.png)

---

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 25, 2025, 3:42pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/20 "2025-03-25T15:42:16Z")

</div>

That still doesn’t solve my problem:

 ![Weight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/1/1117f0819771bc3a69abc8e9c05e30465be707f1.jpeg)

The (M) is manually painted, and the (BP) is the weight generated by using the Earth Layer. In your case is the weight properly set on the terrain?

If you add one simple in the terrain, does it properly set the weight on your terrain?

---

<div class="post-metadata">

**Author:** ![lp198](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lp198](https://forums.unrealengine.com/u/lp198)\
**Post date:** [March 25, 2025, 4:12pm UTC](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522/21 "2025-03-25T16:12:25Z")

</div>

■■■■ sorry dude, Yeah man the weight is properly set…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/c/b2c9dd890fe1f688150768d01a30863a3e32b797.jpeg)

here’s what I did

[Untitled document (1).pdf](https://forums.unrealengine.com/uploads/short-url/7ovkd1gnGAbe6Qo0CcVfe1ndJ7k.pdf) (1.3 MB)

[Next page](https://forums.unrealengine.com/t/pcg-paint-landscape-layer/2414522.md?page=2)
