Controlling which landscape affects PCG

Hi!

I’m trying to use PCG to scatter debris over a landscape.

As the immediate area near my cameras need a fairly high level of detail and the whole landscape is huge, the work around I’ve done to keep my scene somewhat efficient is to have a small, 1km2, decent resolution landscape for the foreground and a second landscape of the same base resolution that I scaled up to 30km2 for the distant vista.

The two landscapes overlap each other, with the small, higher-res one on top of the other.

The problem is that when I try to scatter assets using PCG, the surface sample grabs the lower-res, larger landscape that is underneath the on that’s visible on camera, as illustrated on the clumsy drawing below:

So what I am wondering, is if there is a way to tell the surface sampler to sample one specific landscape?

I don’t know enough about PCG and landscapes to determine whether this is the correct method, nor to say that this will not produce further quirks, but I was having the same issue and I believe I was able to reassign to the correct landscape through the following steps:

  1. Adding tags in the details panels of the different landscapes
  2. In the PCG graph, making a “Get Landscape Data” node
  3. In the node, adding a “Filter on Tags” element wherein I entered the tag assigned to the Landscape I wish to project upon
  4. Connecting the node’s Out pin to the Projection Target of the Projection node.

I am using UE5.3, so if you’re in another version, I can’t guarantee the options will be present.

3 Likes

That’s actually quite elegant as a solution. I haven’t tried to implement it yet, but I’ll let you know, thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.