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

RuntimeLoader nodes do not hold names and extras from the assimp aiNodes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.0, 6.7.1
    • Quick: 3D
    • None
    • Qt 6.7.0/6.7.1
      qmake mingw1120_64
      Assimp 5.4.0/5.4.1
    • Windows

    Description

      Hi,
      I would like to report what appears to be a bug.
      I exported a model from Blender as gltf2.
      The exported file contains for each node:

      • name
      • extras

      e.g.
      {
                  "extras":{
                      "scatter5":

      {                     "estimated_square_area":0.0019120166543871164                 }

      ,
                      "HG":{},
                      "myCustomProperty":"prop",
                      
                  },
                  "mesh":21,
                  "name":"Edificio esempio",
                  "translation":[
                      -5.14517068862915,
                      0,
                      5.236505031585693
                  ]
              }
      Using RuntimeLoader:

      • The name property is not reported in the objectName of created models.
      • The extras property is ignored.

      While debugging, I noticed that the aiNodes created by assimp report both information in the mName and mMetaData properties respectively.
      After scene creation using QSSGRuntimeUtils::createScene(*m_root, scene) in qquick3druntimeloader.cpp properties are not reported in QtQuick3d data structures.

      I also tried converting from gltf2 to qml using both QtDesignStudio and Balsam.
      In both cases, strangely, the created qml Models show the objectName correctly valued, but there is no trace of the extras.

      Is it a gap in the framework or is there a way I don't know?

      I Attach gltf exported.

      Thanks,
      Best regards

      Attachments

        1. gltf_model.zip
          76 kB
        2. Qt3DViewerTest.zip
          80 kB
        3. screen.jpg
          screen.jpg
          131 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            mvettucci Marco Vettucci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes