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

QML doesn't requests second texture from the image provider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • 5.12.8
    • None

      Hello,
      We have found a strange behavior while streaming from the Qt 3D studio to QML Using Texture type in QQuickImageProvider.

      Steps:
      1. Add two layers to the 3DStudio presentation
      2. Add two images which must represent these layers in QML

      Image {
                  id: layer_persp
                  width: root.width / 2
                  height: root.height
                  source: "image://3ds/Scene.First"
      }
      Image {
                  id: layer_ortho
                  x: root.width / 2
                  width: root.width / 2
                  height: root.height
                  source: "image://3ds/Scene.Second"
      }
      

      3. Using Image provider from the sample application in attachment fetch texture id's from the 3DStudio render engine.

      Expected result:
      Both layers renderers correct

      Actual result:
      Only one layer visible and duplicated on both Image objects.
      But if any event will be triggered or any other element will become visible the second image will fetch the second layer.
      Also, we have noticed QML doesn't try to bind the second texture at all before the events.

        1. TestApp.7z
          32 kB
          Evgeniy Prikazchikov
        2. 0001-WIP-Add-comparisonKey-to-QSGTexture.patch
          13 kB
          Tomi Korpipää
        For Gerrit Dashboard: QTBUG-84401
        # Subject Branch Project Status CR V

            tokorpip Tomi Korpipää
            evgeniy_prikazchikov Evgeniy Prikazchikov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes