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

Opaque Items missing from QQuickView render target FBO

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.12.10
    • Quick: SceneGraph
    • None
    • Qualcomm S820, AGL linux.

    Description

      Our application handles QQuickView::afterRendering signal to add post processing for frames .

      Observations:

      QML Items having opacity=1.0 aren't displayed if the post processing is enabled.
      QML Items which have opacity<1.0 (for e.g 0.99) are drawn successfully.

       


      Post processor creates a new FBO with color and depth components attached.

      We are providing this FBO to QML using QQuickView::setRenderTarget.

      Our expectations is “QML will render everything in this buffer and will able to apply our shader to this color texture”.

      It works for simple scene graphs and for the Qt 3D Studio presentations but doesn’t work for the complex scene in QML.

      We assume something may happen for loader component which we actively using.

      For example opaque parts was drawn in separate step and QML render draws it in some cases outside of FBO bind into color buffer glBindFramebuffer(GL_FRAMEBUFFER, 0)

      After this renderTarget FBO binds and transparent parts comes into it.

      In regular case transparent parts will be blended with opaque data from the previous step.

      Simple scheme:

      Expected

      (FBO bind) > (Opaque step) -> (Transparent step) -> (PostProcessor)>(swapBuffers)

      Actual for complex cases

      (Opaque step) > (FBO bind) -> (Transparent step) -> (PostProcessor)>(swapBuffers)

       

       

      Attachments

        1. Elina.jpeg
          545 kB
          Oleg Lyubimov
        2. Log_QSG_INFO.txt
          41 kB
          Oleg Lyubimov
        3. Rectangles.zip
          582 kB
          Oleg Lyubimov
        4. Windows.png
          12 kB
          Oleg Lyubimov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            e0150566 Janne Koskinen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes