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

Qt Quick 3D, opacityMap in PrincipledMaterial rendered improperly

    XMLWordPrintable

Details

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

    Description

      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

       

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes