Instanced painted foliage disappear when too much instances on screen

Teapot Creation
Thu, 18 Oct 2018 12:47:57 +0000
Rendering

Hi,
I’m actually using painted foliage on a static mesh.
I’ve got a hug amount of instances : 4 different meshes from 3k to 650k instances each. It’s not for real-time using, but cinematic rendering - so fps doesn’t matter a lot.

I’ve got an issue with my foliage : depending of the camera view, some elements disappear : an entire mesh (all instances of if in the foliage actor) or just part of the mesh (all parts of the samed ID). See attached pics :

The only difference between both images is the orientation of the viewport’s camera - showing more elements in the second view : All of the tiny instances have disappears, as well as the purple part of the big ones ans the leafs and flowers of another big element. Yellow ones are unchanged (but the yellow part disappears if I turn much more).

Is there a parameter to change that ? I’ve tried the opacity mask clip value in the material, it doesn’t affect this issue. I tried tweaking the engine scalability levels but it doesn’t correct the problem either.

4 posts - 3 participants