Video says it’s not available when I click play (EDIT - no it’s fine but you have to watch on youtube not embedded).
I can easily just offset the foliage z position in the foliage editor each time the foliage isn’t set right but it’s a tedious process, all my foliage on flat land is fine. If I view the collision using the view option I can see how off it is, shockingly bad, despite being on its best mip setting.
Well, here is an idea…
Instead of doing it manually (one by one) you can create a system that operates on the foliage and moves it (as a bluetility in editor).
It would work something like the PCG stuff, where you adjust the transform of the foliage so it’s correct to a visual line trace instead of a collision only response.
Performance is going to be slow, and size of the tool/instances you can check concurrently is limited (particularly if you use BP to work the tool), but it would help you avoid having to manually reposition them.
A thing worth noting for foliage, your instances may already not be valid (grass node off landscape is a different beast altogeter, so nothing I said here applies).
Select all invalid instance, drag them up in the sky, and hit the home button so they can fall and find the landacape collision again.
Assuming the isue was not the collision originally, doing this will snap them back to whete they should be.
If the issue is the collision, then you have to make a system to adjust manually based on a visibility trace.
I’ve no idea how to do that! If I can select them and drag them into position though, that would be cool, and yeah, it’s the collision as I can see when using the visualiser for collision, the foliage is sitting perfectly on it.
So my problem seems to have righted itself, my level used the open world template which has two landscape layers.
The other day after encountering this issue I deleted one of the layers thinking that it could be responsible, but I still had the issue, so I deleted the landscape segments and added in a new landscape.
After having to re-sculpt the landscape I tried painting the foliage again, but found the issue still remained. Anyway, today I loaded the project and tried painting foliage and everything is now sitting correctly. Weird, it’s like it was still using the collision for the previous landscape layer. I do have another issue now though, if I sculpt the landscape all the foliage I painted before doesn’t move, So I basically have to delete it and reapply it, after that it’s ok. The engine seems a bit buggy, like my foliage brush disappeared even though I could still paint, just couldn’t see the brush size to paint with. After restarting the engine it came back.