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

Qt Quick 3D, opacityMap in PrincipledMaterial rendered improperly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.2
    • 6.0.0 Beta5
    • Quick: 3D
    • None
    • Windows
    • 2

      When an opacityMap is added to PrincipledMaterial, the Model item is rendered incorrrectly. The same way it looks if alpha channel is added to base texture, even if the channel is completely white.

              PrincipledMaterial {
                  baseColorMap: Texture {
                      source: "maps/base.png"
                      tilingModeHorizontal: Texture.Repeat
                      tilingModeVertical: Texture.Repeat
                  }
                  opacityMap: Texture {
                      source: "maps/opacity.png"
                      tilingModeHorizontal: Texture.Repeat
                      tilingModeVertical: Texture.Repeat
                  }
              }
      

      Image A in the attachment - without opacity map

      Image B in the attachment - with opacity map

       

      How to reproduce:

      Run this example:

      https://drive.google.com/file/d/1Vnt3DafzEKMUUcbUkB4gQ9u8EhswbBjr/view

       

        1. 1.jpg
          97 kB
          alexey89
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            janichol Andy Nichols
            alexey89 alexey89
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes