Path Tracer rendering bug with Landscape Hole Materials and Masked Materials

When you assign to a Landscape a Masked Material, either in the Landscape Material or in the Landscape Hole Material, the landscape will be bugged in Path Tracer; while still working correctly in Lumen.

If you add a Masked Material to the Landscape Material, the entire landscape will be bugged in Path Tracer.

If you add a Masked Material to the Landscape Hole Material, only the part that has the visibility mask will be bugged.

I will attach two screenshots that contain the bug and then a screenshot of each material. You will see that in the middle of the landscape there is a hole, that is created with the visibility mask; but you can see the bug affecting even the non-masked parts around it.

I would like to mention that this problem started with 5.6; in 5.5, this was working correctly.

Please let me know if you need anything else to replicate or fix this issue.

Thank you.

Steps to Reproduce

  1. Create a simple landscape
  2. Assign an opaque Landscape Material OR a masked Landscape Material
  3. Assign a masked Landscape Material with a Landscape Visibility Mask connected to the Opacity Mask Input in the Material
  4. Paint a visibility mask on the landscape
  5. Change the viewport rendering from Lumen to Path Tracing

Hi,

Thanks for the bug report and reproduction steps.

I’ve created a bug report for this and should have a public bug tracker link for you shortly.

In the mean time, you can work around the issue by setting r.RayTracing.Geometry.Landscape.VertexMask 0

The issue is caused by a new ray tracing optimization introduced in 5.6, which tries to mask out landscape geometry early, at the vertex level. This optimization is controlled by the above CVar. So you can just disable it for now.

Regards,

Lance

Hello,

Thank you for your time.

Public bug tracker link here