Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How do we import a skinned mesh, with armature, skeleton, and material from blender to Qt3d?

How do we import a skinned mesh, with armature, skeleton, and material from blender to Qt3d?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
14 Posts 2 Posters 3.0k Views
  • 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.
  • S Offline
    S Offline
    sofiane
    wrote on last edited by sofiane
    #1

    Everything is in the title.
    I'm able to import a 3D mesh, but in order to make it bend or move, we need armature and skeletons, the project I want to achieve is exactly like this one, :
    60a202c1-8c80-4631-bae4-afcb0c4f6b9a-image.png https://github.com/KDAB/qt3d-examples/tree/master/blended-skinned-animation,
    I'm trying to reproduce it using my own armature objects, but I can't. Actually this project not only imports skeleton and armature, but also animations, and you end up with a walking robot,
    I want to recreate it using my own objects (another type of robot for example), I try to skip the animation part in order to deal with the rendering first, and start by importing only the skinned mesh, but I can't make it work, I try to learn from the code of the example, but couldn't do it for more that 10 days,

    Did you try something similar using your own blender objects? any example, any friend of a friend who may have tried something similar, suggestion, link is appreciated.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Shazter
      wrote on last edited by
      #2

      I used QtQuick3D with Blender Model with Animation.

      What is the exact question?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Shazter
        wrote on last edited by
        #3

        To correct myself I used animations without bones, means the animation was done with timelime.

        S 1 Reply Last reply
        0
        • S Shazter

          To correct myself I used animations without bones, means the animation was done with timelime.

          S Offline
          S Offline
          sofiane
          wrote on last edited by
          #4

          @Shazter A robot kind of mesh, moving without an armature ? is it possible?
          My goal is to load a robot with its animation from blender to Qt, but I thought that you have to have an armature, composed of bones, in order for it to move.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Shazter
            wrote on last edited by
            #5

            As mentioned I used QtQuick3D, is not Qt3D.

            Do you want to playback only the created animations in blender?
            If, yes then is possible in Qt5.15 (I tested in Qt Design Studio) by importing GLTF2 file from Blender. I had one issue with a Bug How the GLTF2 is imported and Qml File. I corrected the values by hand, then I was able to playback my animation.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sofiane
              wrote on last edited by
              #6

              I want to test that, how did you do it?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Shazter
                wrote on last edited by
                #7

                I had not a complex Model. I have uploaded my files to QT Jira to report a bug.
                Maybe it helps for your project.

                https://bugreports.qt.io/browse/QDS-2532

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sofiane
                  wrote on last edited by
                  #8

                  I've never used Qt 3DS, How shall I execute your project, can I do it with Qt creator?
                  QML module not found (Qt Quick.Timeline)

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Shazter
                    wrote on last edited by
                    #9

                    Use Qt Maintenance Tool and install Qt5.15 (includes Timeline Module and QTQuick3D) and Qt Design Studio Community Version if you have no commercial license, its not Qt 3D Studio.

                    https://www.qt.io/blog/qt-design-studio-1.5-released

                    Please Qt Manuals for more Informations.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      sofiane
                      wrote on last edited by sofiane
                      #10

                      I get this when I run you project with Qt DS,
                      6a29387a-151a-42f5-b144-317e1b44e9f1-image.png

                      Apparently you can use qt 3D studio, not for creating 3D, but aploading 3d and adding user interfaces, exactly what I want.

                      S 1 Reply Last reply
                      0
                      • S sofiane

                        I get this when I run you project with Qt DS,
                        6a29387a-151a-42f5-b144-317e1b44e9f1-image.png

                        Apparently you can use qt 3D studio, not for creating 3D, but aploading 3d and adding user interfaces, exactly what I want.

                        S Offline
                        S Offline
                        Shazter
                        wrote on last edited by
                        #11

                        @sofiane Is a bug and you have to fix it manually the Problem is described very well in the image

                        You have to change the value in the file Anitest.qml Line 69 from double to int value.
                        Looks like your are a full beginner may you start to do your homework with tutorials first, instead big and complex projects.

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          sofiane
                          wrote on last edited by
                          #12

                          Yes, I've never worked with Qt DS, I just want to execute an example to see what it does. I get the following errors after changing to int:

                          QSSG.invalid_operation: Vertex compilation output:: 0:1(10): error: GLSL 3.10 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.00 ES, and 3.00 ES
                          QSSG.invalid_operation: Vertex compilation output:

                          Even the examples I find in internet aren't clear, they just start with an already completed example.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            Shazter
                            wrote on last edited by
                            #13

                            This Problem I did not occurred on my PC, but from the error message I guess you have OpenGL 3.10 installed and it works only looks 1.10, 1.20, 1.30, 1.40, 1.00 ES, and 3.00 ES.

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              Shazter
                              wrote on last edited by
                              #14

                              Qt Delevoper updated some Demos for QDS 1.6, but looks like it works for 1.5 too.
                              Here a Image of the QML Scene with QDS 1.5

                              8754ad4e-6ca4-4923-9b41-547a56b2112f-image.png

                              You have to clone with GIT LFS, otherwise Big files are missing.

                              git lfs clone https://git.qt.io/public-demos/qtdesign-studio.git

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved