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

Incorrect default blend equation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2
    • Qt3D
    • None
    • Windows 10 Pro
    • Windows

    Description

      Observed behaviour:
      When render capturing a scene that contains an entity with QDiffuseSpecularMaterial with enabled alpha blending, the capture result looks different from the screen.
      I changed the sphere material in rendercapture-cpp example to QDiffuseSpecularMaterial.
      See my screenshot:
      RenderCapture_transparentSphere.png
      the modified main.cpp and the saved capture result capture.bmp attached.

      Additional information:

      I tried to reproduce it on another environment. The incorrect behaviour is observable only if the backbuffer format uses the alpha channel (i.e. RGBA).

      Possible culprit:
      The defaults of QBlendEquationArguments for the alpha component are source alpha = 1 and dest alpha = 0. This is different from the generally suggested values source alpha = 0 and dest alpha = 1 which is described at https://doc.qt.io/qt-5/qt3drender-protips.html .

      Attachments

        1. capture.bmp
          capture.bmp
          1.03 MB
        2. main.cpp
          8 kB
        3. RenderCapture_transparentSphere.png
          RenderCapture_transparentSphere.png
          32 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            matta Lenardne Szolnoki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes