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

Interpolation/wrapping artifacts with default texture settings.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt3D TP1
    • 4.7.2
    • Qt3D
    • None
    • 35ed73fd14410c791b852feb6855e3151871762b

    Description

      If you apply a texture to a quad with default settings, the texture wraps at the edges causing artifacts.

      In the attached example, the texture is a black square with one white corner (texture_wrap_source.png). When applied to a quad, lines can be seen opposite the white corner in both x & y.

      Using a color example, it is more difficult to see, but a blue & yellow test shows pixels on the opposite edge with a greyish color rather than either yellow or blue, which implies that the edges of the texture are being interpolated across the boundry rather than wrapping.

      Attachments

        1. texture-wrap-source-color.png
          texture-wrap-source-color.png
          0.3 kB
        2. texture-wrap-source.png
          texture-wrap-source.png
          0.3 kB
        3. texture-wrap-result.png
          texture-wrap-result.png
          2 kB
        4. texture_wrap_bug.qml
          0.6 kB
        5. color-picker-result.png
          color-picker-result.png
          42 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            z35liu Zheng Liu (closed Nokia identity) (Inactive)
            debhal Julian de Bhal (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes