Qt Forum

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

    Qt Academy Launch in California!

    Unsolved Assimp isn't available

    Game Development
    qt 5.7 qt3d
    3
    3
    1222
    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.
    • B
      BHeaney last edited by A Former User

      I'm trying to use Qt3D Assimp module to import 3D models with Qt5.7. Following the man page, I added the following to my .pro file
      QT += 3drender

      but #include <AssimpIO> resulted in a "file not found" compiler error.

      1 Reply Last reply Reply Quote 0
      • njbrown
        njbrown last edited by

        Because it's not a part of the public api

        https://github.com/qt/qt3d/blob/721ea2d2a323da63163fb086d8c10829a8415ad5/src/plugins/sceneparsers/assimp/assimpio.h#L43

        //
        //  W A R N I N G
        //  -------------
        //
        // This file is not part of the Qt API.  It exists for the convenience
        // of other Qt classes.  This header file may change from version to
        // version without notice, or even be removed.
        //
        // We mean it.
        //
        

        use QMesh for loading models instead

        1 Reply Last reply Reply Quote 1
        • Poorti
          Poorti last edited by

          Yes, assimp is no longer part of the public api, but its sample is present in the qt 5.7 source files.
          You can look at it to see how they are using it in the latest version.

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