Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved Qt3D AssimpImporter not found

    Game Development
    3
    8
    2138
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nonlinearsound last edited by

      Hello everyone,

      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!

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Can you show your code ? The corresponding .pro file ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • N
          Nonlinearsound last edited by

          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 AssimImporter as it cannot be found.

          I started out with the Qt3D basic cpp example. The example adds += 3drender to 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.
          https://forum.qt.io/topic/69401/assimp-isn-t-available

          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.

          1 Reply Last reply Reply Quote 0
          • N
            Nonlinearsound last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Yes it should, do you know the version of Assimp that is need to support the AC3D file format ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              N 1 Reply Last reply Reply Quote 0
              • MRen
                MRen last edited by

                Hi
                Thanks for topic! Because I need help too

                1 Reply Last reply Reply Quote 0
                • N
                  Nonlinearsound @SGaist last edited by

                  @SGaist said in Qt3D AssimpImporter not found:

                  Yes it should, do you know the version of Assimp that is need to support the AC3D file format ?

                  Hello and sorry for replying after such a long time but work keeps dragging me away from these problems ;)

                  @SGaist I think, that the AC3D support in AssImp has been there for a long time now so every version after (and including) 3.0 should do.

                  Thanks a lot for your help and I am happy to take over where possible to fulfil this requirement.

                  N 1 Reply Last reply Reply Quote 0
                  • N
                    Nonlinearsound @Nonlinearsound last edited by

                    @Nonlinearsound After reading through the release statements and changes it seems that the AC3D format has been supported right from the start of the AssImp project so it seems that any version will do fine.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post