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

Texture.indexUV is unstable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.1.0 Alpha, 6.1
    • 6.0.0
    • Quick: 3D
    • None
    • a7df91a12c50725abab9c0d18539d686615bb8b5 (qt/qtquick3d/dev) 8c4186812f0fd3acd389f53e874a59d69cc9af8b (qt/qtquick3d/6.1)
    • Qt Quick 3D - 2021 - Weeks 5/6

    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

        For Gerrit Dashboard: QTBUG-91118
        # Subject Branch Project Status CR V

        Activity

          People

            lagocs Laszlo Agocs
            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