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

Qt3DRender::QLayerFilter doesn't work with RHI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.0
    • Qt3D
    • None
    • Linux/X11

    Description

      I have three layers in my project, fore-, middle- and background with different entities in it. The framegraph looks like this:

      Qt3DExtras::QForwardRenderer::
        Qt3DRender::QRenderSurfaceSelector::
          Qt3DRender::QViewport::
            Qt3DRender::QCameraSelector::
              Qt3DRender::QClearBuffers:: (AllBuffers)
                Qt3DRender::QNoDraw::
              Qt3DRender::QFrustumCulling::
                Qt3DRender::QClearBuffers:: (DepthStencilBuffer)
                  Qt3DRender::QLayerFilter:: (DiscardAnyMatchingLayers)
                Qt3DRender::QClearBuffers:: (DepthStencilBuffer)
                  Qt3DRender::QLayerFilter:: (DiscardAnyMatchingLayers)
                Qt3DRender::QClearBuffers:: (DepthStencilBuffer)
                  Qt3DRender::QLayerFilter:: (DiscardAnyMatchingLayers)
                    Qt3DRender::QDebugOverlay::
      

      Now the bug: the application works as expected when started with

      QT3D_RENDERER=opengl

      When started without, so RHI is used by qt3d, the entities get rendered all at once and the layers don't work.

      I distilled this down to a minimal example:

      https://github.com/eringerli/basicshapes-cpp-with-layers

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            eringerli Christian Riggenbach
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes