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

Rendering to texture - RHI DirectX vs OpenGL produce different results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 6.5.2, 6.7
    • Qt3D
    • None
    • Windows

    Description

      When rendering to a texture map and then putting that texture map onto a quad. The texture is swapped between opengl and directx. I've attached an example program. 

      The result with env QSG_RHI_BACKEND=opengl

      The result with env QSG_RHI_BACKEND=directx

      If you look at the textures in NVidia's NSight. You'll notice that DirectX use top left as 0,0 for the origin in a texture and in OpenGL, it's the bottom right. 

      DirectX:

      OpenGL:

       

      Attachments

        1. multiviewportFBOFlipping.zip
          96 kB
          Philip Schuchardt
        2. multiviewport opengl vs directx.zip
          94 kB
          Philip Schuchardt
        3. image-2023-09-08-14-54-19-281.png
          529 kB
          Philip Schuchardt
        4. image-2023-09-08-14-53-49-461.png
          477 kB
          Philip Schuchardt
        5. image-2023-09-08-14-50-46-217.png
          81 kB
          Philip Schuchardt
        6. image-2023-09-08-14-45-39-373.png
          99 kB
          Philip Schuchardt
        7. image-2023-09-08-14-42-23-237.png
          91 kB
          Philip Schuchardt
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            vpicaver Philip Schuchardt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes