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

QML doesn't requests second texture from the image provider

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes