Also, are the docs for this node published yet? Or the new foliage spawner? Would love to dig in and see what all these variables do…
Everyone here wants it too. But there is no clear implementation path which means it is not a straightforward task. Truthfully it might be tricky to get this scheduled. I would paste in the fortnite forums about that. I haven’t had much to do with the fortnite apha stuff and I don’t think many of those guys read answerhub. Its mostly the community team you will want to get ahold of.
Hi JJ,
I fixed the problem with grass generation on OSX 10.10.x There was a mistake in the shader code causing a duplicate declaration that evidently didn’t cause problems on PC or previous versions of OSX. Unfortunately my fix didn’t make it into Preview 2 but it will be in Preview 3 and the main 4.8 release. But it’s easy enough to apply manually.
The fix is to replace your /Users/Shared/UnrealEngine/4.8/Engine/Shaders/LandscapeGrassWeight.usf file with the one in this zip file.
Shaders should recompile when you load your level, but you may need to remove the invalid grass by running the ‘grass.flushcache’ console command in the editor. (~ key)
Thanks for the fix. I have verified that it does indeed fix the issue for the most part. I am still seeing some weird random mesh spawns in the air. Not sure what is causing it. Example:
Would you like the project so you can see if it happens on your end?
J^2
Yes please!
Here’s the full project that I’ve been testing with.
https://www…com/s/8thkwno72tku26u/LandscapeTests_001.zip?dl=0
Let me know if you have any questions or if it doesn’t work.
Hi JJ,
Thanks for your help on this, I really appreciate it.
I couldn’t reproduce this with either the latest source code or Preview 2 (which incidentally still needs the LandscapeGrassWeight.usf file patch I sent you put in /Users/Shared/UnrealEngine/4.8/Engine/Shaders).
Could you update to Preview 2, patch LandscapeGrassWeight.usf, load your content, run grass.flushcache?
It could be specific to one of the GPUs. I only have an Intel HD Graphics 4000 Mac so please let me know what GPU you’re using if it still happens.
Thanks
The above posted image is from Preview 2 with the patched usf. I did NOT run flush cache though. I am running UE4 on a Mac Pro model 6,1 with dual D700s. I loaded that same project I shared with you, again, in 4.8 preview 2 with the patched files (you’ll recall that if the file isn’t patched then the grass doesn’t spawn on the surface), then ran grass.flushcache. No perceivable difference.
Still getting random spawns in the air. If it helps, it only seems to be spawning at the edge of the landscape… Perhaps it’s a grass map resolution or mip mapping issue? Please let me know if there are any other tests I can run. Cheers,
J^2
Thanks, I’ve asked some guys at Epic HQ to try to repro on a Mac Pro. I’ll let you know what we come up with.
Our QA team easily reproduced the problem on our HQ mac pros. We have something to work with now so I’ll get to the bottom of it.
Glad to here you could reproduce the issue. Please let me know if there’s anything else I can do. Cheers,
J^2
Hi JJ,
I fixed this bug for the 4.8 release version but it just missed out in making it into Preview 3. If we have a Preview 4 before release, the fix will be in there.
Roger that. Looking forward to verifying fix. Cheers.
I just verified that Preview 4 has this issue fixed. Cheers,
J^2
I’m having the same problem: http://s.dappertoast.com/I3Oy
Hi Zeetu, Are you running the release version of 4.8 or a preview? Are you on PC or Mac, and what graphics card and drivers are you using?
Thanks
I’m currently having the same issue with spawns in air. Imgur: The magic of the Internet
I’m able to go and paint below where I had some trees spawning in the air with a different material that I don’t have foliage spawning on. Is there some way to stop it from spawning in air. This is my setup Imgur: The magic of the Internet
Hi
During the 4.8 preview releases we saw this with specific AMD video cards running OpenGL so it occurred mainly on Macs. We fixed this issue and haven’t seen it elsewhere apart from your reports.
If you could let me know whether you’re on a PC or Mac, what graphics card or what model of Mac you’re using and your operating system, that would be extremely helpful in solving this issue.
Thanks