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

Texture.indexUV is unstable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.1.0 Alpha, 6.1
    • Component/s: Quick: 3D
    • Labels:
      None
    • Commits:
      a7df91a12c50725abab9c0d18539d686615bb8b5 (qt/qtquick3d/dev) 8c4186812f0fd3acd389f53e874a59d69cc9af8b (qt/qtquick3d/6.1)

      Description

      Have two materials where the only difference is in the referenced Textures, where one uses indexUV 1, the other 0. This will not render as expected: both models will use the same UV set, either 0 or 1, depending which material gets processed first. This is because the materials are deemed identical and the shader code is reused, which is incorrect.

              Model {
                  source: "../shared/models/animal_with_lightmapuv1.mesh"
                  scale: Qt.vector3d(50, 50, 50)
                  eulerRotation.y: -80
                  x: -80
                  y: 100
                  materials: [
                      DefaultMaterial {
                          diffuseMap: Texture {
                              source: "../shared/maps/oulu_2.jpeg"
                          }
                      }
                  ]
              }        
              Model {
                  property real modelScale: 100
                  source: "../shared/models/animal_with_lightmapuv1.mesh"
                  scale: Qt.vector3d(50, 50, 50)
                  eulerRotation.y: -80
                  x: 80
                  y: -70
                  materials: [
                      DefaultMaterial {
                          diffuseMap: Texture {
                              source: "../shared/maps/oulu_2.jpeg"
                              indexUV: 1
                          }
                      }
                  ]
              }
       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            lagocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes