Why is the PCG GetLandscapeData node unable to sample landscape points on certain parts of the terrain, causing vegetation (foliage) to fail to generate?
Hello @Is_oyu ,
I’m not very familiar with PCG , but according to the SamplePoints documentation, when PCG cannot find a valid overlap with the landscape for a point, that point is returned with a Density = 0.
My understanding is that the point still exists in the output, but PCG considers it invalid for spawning instances. Therefore, if GetLandscapeData is returning a density of 0 in certain areas of the terrain, that could explain why the vegetation is not appearing there.
You can also select the “Surface Sampler” node and press D (or right-click the node and enable Debug). This will allow you to visualize the points being generated directly in the world, which can help determine whether the issue is occurring during point generation or at a later stage in the graph.
I’m also leaving this video, which explains how to use PCG very well, along with the official documentation and a post that mentions a solution you could try as well.
Hope it helps!

