Grass far away visible with path tracing

Hello!

Does anyone know how I can get my grasses visible far away too. These are now only visible close by and far away they disappear with the path tracer. Thanks in advance for the help!

I have already tried this

Foliage.forcelod 0

But this did not give a solution

Greetings @AVIStudio!

Your issue description sounds like a culling problem, your grass is not being rendered at the desired distance. The foliage guide from dev community states the following:

Foliage instances are rendered as clusters in a single draw call and each cluster is either rendered or not rendered based on occlusion. Setting a value in the End Cull Distance parameter in the foliage details causes the clusters to be culled beyond that distance. However, this will cause groups of meshes to disappear abruptly as the entire cluster goes out of range.

This can be reduced by adding a Start Cull Distance parameter and then setting up the Material appropriately. In the vertex shader, a per-instance fading factor is calculated, which goes from 1.0 at the start distance to 0.0 at the end distance. This is accessible in the Material using a PerInstanceFadeAmount node. When connecting that to an opacity or masking value, you can use it to fade instances over a distance before they reach the Cull Distance End and are removed from rendering. Lowering the value of the FadeMultiplier parameter will increase the speed of the fade. A value of zero will make your foliage invisible at any distance.

The example Material below multiplies the Material mask by the fading factor to thin out the foliage mesh’s leaves until they completely disappear.

You can check the full guide here:

Hello!

I have since figured it out, once I render the image the grasses do seem to be visible. This is the right solution for me.

Thank you for your help!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.