Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-140392

Material.OpaquePrePassDepthDraw Option Causing Graphical Artifacts with Instancing and CustomMaterial

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.6, 6.11.0 FF
    • 6.9.2, 6.10.0 Beta4
    • Quick: 3D
    • None
    • Windows
    • 668f601b5 (dev), d22fb2b3e (6.10), cc5856f7a (tqtc/lts-6.8)

      Problem Description

      The Material.OpaquePrePassDepthDraw option, which is required for the correct rendering of opaque objects with an alpha mask, is not working in the following case:

      • Environment:
        • OS: Windows 11
        • API: Vulkan or OpenGL
        • GPU: NVIDIA
      • Configuration:
        • Using instancing.
        • Using CustomMaterial.

      Reproduction Steps

      When using instancing with a CustomMaterial and the Material.OpaquePrePassDepthDraw option enabled, graphical artifacts appear. I have attached a minimal reproducible example to demonstrate the issue and facilitate its analysis.

      Example available here : https://drive.google.com/file/d/1iX-VRyNaT_QWwu1iSNfx2LnBIDJ0IfH_/view?usp=sharing

      Impact

      This bug is a critical blocker for our work, as it prevents the scene from being rendered correctly on most user systems (Windows with NVIDIA graphics cards). We cannot stop using CustomMaterial, instancing, or the Material.OpaquePrePassDepthDraw option, as all of these are essential elements for the final scene.

      Request

      I kindly request that you fix this bug or provide a temporary solution.

        1. image-2025-09-19-11-51-16-094.png
          211 kB
          Andrei Yankovich
        2. image-2025-09-19-11-57-10-801.png
          44 kB
          Andrei Yankovich
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.graphics.and.multimedia Qt Graphics Team
            endrii Andrei Yankovich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes