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

Rendering to texture - RHI DirectX vs OpenGL produce different results

XMLWordPrintable

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

      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:

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes