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

Setting shininess on Qt3DRender::QDiffuseMapMaterial doesn't actually change the shininess

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.6.0 Beta
    • Qt3D
    • None
    • Windows 7 64bit, Intel HD 4600

    Description

      To repro, add the following bit to materials-cpp example somewhere after construction of diffuseMapMaterial:

          QObject::connect(diffuseMapMaterial, &Qt3DRender::QDiffuseMapMaterial::shininessChanged,
                           [](float foobar){qDebug() << "ShininessChanged" << foobar;});
          diffuseMapMaterial->setShininess(5.0f);
          qDebug() << "shininess is:" << diffuseMapMaterial->shininess();
      

      The shininessChanged signal reports the shininess has been changed to 5, but when shininess is queried from the material, it is zero:

      ShininessChanged 5
      shininess is: 0
      

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes