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

AssImp loader blocks quick3d materials

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt3D TP1
    • 4.7.2
    • Qt3D
    • None
    • Ib02e960704ebf31039f4cd8f4f7d182e4dab71ab

    Description

      1. Run the cube.qml example with qmlviewer with Qt/3D configured with "old_importer".
      2. Result is good, with a green material on the cube (see cube-good.png)
      3. Run it against with Qt/3D configured to use AssImp.
      4. Green material has been replaced with the default grey material (see cube-bad.png).

      The "Cube" element is implemented under "src/imports/shapes/Cube.qml", by importing a cube.obj file. The issue seems to be AssImp adding a default top-level material that overrides the intrinsic material set on the QGLPainter by the Effect.

      Attachments

        1. cube-bad.png
          cube-bad.png
          49 kB
        2. cube-good.png
          cube-good.png
          49 kB
        3. doublecard.zip
          2.05 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            z35liu Zheng Liu (closed Nokia identity) (Inactive)
            rweather Rhys Weatherley (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes