Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-4244

Qt3DRender::AssimpImporter与原生assimp库读取GLB_Header结构方式不一样导致无法加载glb/gltf模型

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Open Source Release
    • API 2.x
    • None
    • windows10 x64
    • Windows

    Description

      Qt3DRender::QSceneImporter加载模型时,设置了IOHandler(Qt\6.5.2\Src\qt3d\src\plugins\sceneparsers\assimp\assimpimporter.cpp中的AssimpImporter::readSceneFile函数),在Qt\6.5.2\Src\qt3d\src\3rdparty\assimp\src\code\AssetLib\glTF\glTFAsset.inl的Asset::ReadBinaryHeader函数中,读取GLB_Header时走了QIODevice::read逻辑,返回了GLB_Header结构的大小14,原生assimp库通过::fread函数读取,能正确返回1。

      如果问题(当前qt版本6.5.2)已经修复了,希望提供一下对应的qt版本。

      Attachments

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

        Activity

          People

            anmaatta Antti Määttä
            _zyl_ zyl zyl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes