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

Quick3D CustomMaterial with Item as Texture

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15
    • Quick: 3D
    • None
    • Windows
    • Windows

    Description

      Hello,

      I face an issue rendering a mesh with a CustomMaterial with an Item as texture.

      As you can see in the project I attached,

      • when there is only the Image visible in the Item, and this Image has been animated, then the texture (in CustomMaterial) is rendered
      • once the Image is not anymore the only one displayed in the Item, the texture is replaced by a random label (visible in the screenshot attached)

      Moreover, I cannot understand why the texture, when it is displayed, is just displayed even if I did comment the binding of my CustomMaterial's itemSource property
      (line 52 in main.qml, tagged "[ — HERE — ]")

      Can you help me to understand if there is an issue in QtQuick3D or not.
      I did try a lot of things to try to fix my issue
      (- changing the Texture properties,

      • using a ShaderEffectSource and a ShaderEffect as Texture.sourceItem,
      • changing ShaderInfo.version (seems ignored by the way)
      • trying some ShaderInfo.shaderKey
      • using texture2D() instead of texture() in .frag
      • and lots of other things)

      I really need to display an Item in my real project, I have a lot of different items, images and texts inside

      Best regards,

      Erwan DUCHAMPS
      Stellantis

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            erwand_stla Erwan Duchamps
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes