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

Collada (*.dae) imported 3D-Models have vertically flipped Texture-Coordinates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.5, 5.10.1
    • 5.9.2, 5.10.0 Beta 2
    • Qt3D
    • None
    • Ubuntu 14.04
      Test model taken from the libassimp tests Collada directory (should be viable, as Qt 3D uses libassimp under the hood).
    • 9409dd81287af75108023abbd66e49e07ba65de6

    Description

      Importing Collada 3D-models leads to vertically flipped texture coordinates.
      Importing the same model into blender shows correct texture mapping (the model itself is part of the libassimp test models, so I never doubted the model itself would be wrong).
      Flipping the used texture itself vertically by using an image editor like gimp solves the issue for qt3d. (Change to .png if .tga does not work, initial bug persists).

      Attached you find a minimal application to showcase the bug. Simply clone the libassimp git repository for collada test models and import the duck.dae, by clicking on "Load DAE file".(https://github.com/assimp/assimp/tree/master/test/models).

      You can also find two images attached:
      One comparing the model imported into blender and displayed in qt3d side-by-side.
      The other shows the imported model displayed in qt3d after flipping the used texture-files vertically with gimp.

      Attachments

        1. demo.tar.gz
          4 kB
        2. qt3d_collada_bug_2.jpeg
          qt3d_collada_bug_2.jpeg
          144 kB
        3. qt3d_collada_bug.jpeg
          qt3d_collada_bug.jpeg
          101 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lemire_p Paul Lemire
            ufedv Philipp Schmidt
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes