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

QDiffuseSpecularMaterial::setDiffuse renders TextureImage as all black

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.3
    • Qt3D
    • None
    • Linux/X11, macOS

    Description

      Prior to 6.3, calling setDiffuse on a Qt3DExtras::QDiffuseSpecularMaterial instance, with a texture as argument, would render the texture on the sibling mesh.  From 6.3 onwards, the same code renders the mesh as black.

      The attached tarball demonstrates the problem. On launch it renders a sphere. When "Edit > Add Texture" is invoked, a grayscale texture image is created and used as the sphere's texture.

      Under Qt 5 (configure with "cmake -Bbuild -S. -DQT_6=OFF") the texture is applied to the sphere. Under Qt 6 ("cmake -Bbuild -S."), the sphere turns black.

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            mchapman87501 Mitch Chapman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes