Qt3D AssimpImporter not found
I am in need of loading the AC3D format into a Qt3D scene. I started out with the simple-cpp example and wanted to load a new scene by using Qt3DCore::QEntity *AssimpImporter::scene(const QString &id = QString()) as of the documentation of Qt3DRender::AssimpImporter.
I have to include <AssimpImporter> but that cannot be found by either QtCreators editor or the compiler. (I am on a Qt5.9.2 offline installation with everything checked and installed on Windows using VS2015 64bit, Sources included)
Is this not included in the releases of Qt? Do I have to add it from somewhere? I did a file system search over the implementation folders (for instance msvc2015_64) but did not find anything.
Any help would be much appreciated! :) Thanks in advance guys!
Hi and welcome to devnet,
Can you show your code ? The corresponding .pro file ?
Thanks a lot for the warm welcome!
Unfortunately there is no code at the moment (maybe only the Qt3D simple-cpp basic example code) as I failed right in the beginning of trying to include the
AssimImporteras it cannot be found.
I started out with the Qt3D basic cpp example. The example adds
+= 3drenderto is .pro file which should be enough to link against the right libs and include the right include files, like <AssimpImporter> as stated in the example at https://doc.qt.io/qt-5/qt3drender-assimpimporter.html#details.
I am using Qt 5.9.2 - might it be possible that this class has been introduced in Qt 5.10 ?? At least in my complete 5.9.2 installation I cannot find any files that have "assimp" in their name.
I found earlier discussions from 2016 where they state that Assimp is not supported as a public API but internally.
This situation has seemed to be changing a lot in the recent history of the public Qt API.
Might such functionality be available somewhere else implicitly then? Maybe only via QML classes?
QMesh just loads OBJ, STL and PLY format and with using a plugin you might be able to load FBX but all of that does not help me as I am in need of loading AC3D files. (I am trying to write an authoring tool for the open source flight simulator platform Flightgear, see www.flightgear.org)
All .OBJ file based examples in Qt3D do work fine though, compiled on my installation.
In fact, the Qt3D example .pro file adds:
QT += 3dcore 3drender 3dinput 3dextras
I guess that should be enough to include all needed loaders as well, right?
My intent is to use Qt3D as much as possible instead of using assimp together with a raw OpenGL implementation.
Yes it should, do you know the version of Assimp that is need to support the AC3D file format ?
Thanks for topic! Because I need help too