1

我使用 Qt3D 成功将 .OBJ 模型加载到 Qt 中,但无法加载 .3DS 模型。我只是按照这里的教程进行操作。

我的环境是:Windows7、Qt5.3.1、mingw32。

显示错误:Asset importer error: Chunk is too large

请给点建议。

4

1 回答 1

1

看起来,问题与Qt3D 中包含的Open Asset Import Library(简称:Assimp)有关。

另外,请注意,您在 Linux 上很可能不会遇到此类问题。

这里解决了类似的问题:http: //sourceforge.net/p/assimp/discussion/817654/thread/a246ba12/

看起来,您需要使用参数重建​​ Qt3D(根据Qt3D Installation, Windows (MinGW)-mno-ms-bitfields。尝试将下一行添加到qt3d.pro

QMAKE_CXXFLAGS += -mno-ms-bitfields

希望能帮助到你!

于 2014-08-12T21:06:33.133 回答