Nanite foliage disappearing when camera moves away

It’s only the case with grass and wheat etc., trees, rocks etc. are fine. But the smaller foliage disappears when you move away. Nanite and preserve area is enabled. The assets are megascans from quixel bridge. Cull distance is 0 to 0.
I found out that the material of the grass has a setting Opacity Mask Clip Value (standard is 0.33), but if I change that number closer to 0 it looks only good from far away and awful close up.

1 Like

Yeah, run into same problem. I used to fix that buy making bounds bigger, but that doesn’t work now

Same issue here, works fine when disabling nanite but due to the amount of meshes that’s not really an option.

I’ve just solved the issue using some console commands

running

r.Nanite.MaxPixelsPerEdge 0.5
and
r.nanite.maxnodes (change this to a higher value than it’s currently set to)

for the max nodes I found the value I needed by running - ‘stat RHI’
-this gave me a warning showing me the number I needed to increase it to.

Basically there’s cap on how much detail nanite can display on screen by default, so you need to increase the value. This is why when you move away stuff disappears, it’s because it needs to render more than the current capped amount is set at.

4 Likes

Another reason that I’ve recently come across, if the foliage is using masks, then it could be the mask texture mip maps causing the issue, basically it’s dividing the resolution as you move further away to the point where the mask just masks everything out, typically on meshes like grass. To fix this change the mip map setting to ‘no mip maps’ on the mask texture.

3 Likes

13 Likes

Solved it for me, thanks a lot!

2 Likes