Landscape Grass - Procedural Grass Floats

I am using procedurally placed grass, and for a little while, I used the foliage tool. I am just now addressing this problem, I have had it for a long while, hopefully I can avoid having to re-create the landscape.

Here is the problem:

Painting over the area assumed to be where the grass is initially wanting to spawn, sort of works. Yet, doesn’t totally. I hope there is some way this can be fixed, I can’t select procedural grass, I can’t erase it. My only assumption is the height map is broken, or the landscape is corrupted.

Thank you to all who can help

Regards

1 Like

Hi FBTH,

To be clear this is the Landscape Grass setup using a Landscape Grass node in the material, right?

In the editor, can you try the command “grass.flushcache” ?

If that doesn’t make it place the grass correctly, can you please send me info on your video card, and make sure you are updated to the latest video drivers? We use render-to-texture to find the heightmap for grass instances, and prior to 4.9 we did a similar problem on some Macs and AMD video cards, but we haven’t see this problem for a long time.

Thanks

2 Likes

Yes it is the Landscape Grass setup using a Landscape Grass node in material. However, I tried the command “grass.flushcache” to no avail :frowning: I’m using Windows 10, here are my specs:


Display Devices

      Card name: NVIDIA GeForce GTX 650
   Manufacturer: NVIDIA
      Chip type: GeForce GTX 650
       DAC type: Integrated RAMDAC
    Device Type: Full Device
     Device Key: Enum\PCI\VEN_10DE&DEV_0FC6&SUBSYS_0973196E&REV_A1
 Display Memory: 5035 MB

I hope this helps, also, this error is showing up on a team mates version as well. We use Perforce

We did make some changes in 4.10 that may have fixed this issue. Would you be able to open your level in the 4.10 editor, run that command in and see if things look any better?

Sorry for the late reply, but I migrated the map to 4.11.1, and the editor would crash on load :frowning: I will be back with an update, if I can get it to work for 4.10

Hopefully it will work with 4.10

Kinda bumping this one. Have same problem, cant seem to find fix and it only happens in one small part of the Landscape. Tried painting layers that don’t have grass in them, grass still stays floating in air.

i’m having this issue in 4.12.5.
occurred in an area where a landscape ramp was placed. using gtx 980 with driver 368.39
tried grass.flushcache and also tried painting other layers without grass types. but problem persists.

[edit] just updated to geforce driver 368.81 and problem is still there

Hi, have you used the retopogolize tool (which moves the vertices off a rigid XY grid). Perhaps accidentally? There’s currently a bug where that tool breaks grass placement. The ticket for that bug is UE-33064.

You could try the editor console command “RemoveLandscapeXYOffsets” which should remove any XY offset data, and then the “grass.flushcache” console command which will rebuild grass data.

Does doing that solve the issue?

i was just logging back in to write that i was using retopologize. thanks much…your solution of ‘removelandscapexyoffset’ + ‘grass.flushcache’ worked.

1 Like

I finally got it to load after upgrading my RAM. Thank you , your solution worked!

The bug still happens (frequently) in 4.14. Resampling the terrain component size to the same resolution fixes it.

Hi Oskar,

Instead of resampling, does ‘removelandscapexyoffset’ followed by ‘grass.flushcache’ also work?

Do you have a project where the grass is broken that you could upload somewhere and send me a link to take a look? My email address is .porter at epicgames.com.

Thanks

Just got same bug on 4.15.2, removelandscapexyoffset+grass.flushcache helped.

Same bug on 4.17.1 but the removelandscapexyoffset command has been removed.

4.18: command not removed?! worked well for me!!

Well, having same problem on 4.16. None of the commands worked. Im surprised after so many versions this issue still persists. Amazing.

the commands have not been removed they are stiff functional in on the console you just cannot use autofill.

version 4.19.2

sidsings

The console doesnt contain the commands on autofil you have to copy them into the console directly

  1. “RemoveLandscapeXYOffsets”
    then
    2)“grass.flushcache”

Hello. Can you tell a bit more? Can’t seem to find it console in 4.19.2

Hello. Any ideas how to fix this in 4.19.2 can’t seem to find removelandscapexyoffset commandline in console?