Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Controlling a 3d model
QtWS25 Last Chance

Controlling a 3d model

Scheduled Pinned Locked Moved Unsolved General and Desktop
47 Posts 4 Posters 17.2k 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.
  • hareeshqtH Offline
    hareeshqtH Offline
    hareeshqt
    wrote on last edited by A Former User
    #1

    Hi, we are creating a 3D model of a robotic arm using blender tool, so we would like add that model to our qt application and control its movements. so please help me out about this on how to import that 3D model(.stl file) and best way to control the model using c++.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you consider the Qt3D module ?

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

      hareeshqtH 1 Reply Last reply
      0
      • A Offline
        A Offline
        alex_malyu
        wrote on last edited by
        #3

        Personally I would not use Qt3D module yet due to luck of documentation (unless there was a recent change I did not notice).
        There are a few available 3D graphics related libraries on the marked which can simplify visualization.
        One of them is VTK. You might consider Bullet if you need help with physics.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          Did you consider the Qt3D module ?

          hareeshqtH Offline
          hareeshqtH Offline
          hareeshqt
          wrote on last edited by hareeshqt
          #4

          @SGaist Thank you for the reply.Yes I'm considering the Qt3D module but can we visualize the application for the controls and the 3D model in the same window? As Iam beginner here can you give me a link for any tutorial for doing this task..?

          ? 1 Reply Last reply
          0
          • hareeshqtH hareeshqt

            @SGaist Thank you for the reply.Yes I'm considering the Qt3D module but can we visualize the application for the controls and the 3D model in the same window? As Iam beginner here can you give me a link for any tutorial for doing this task..?

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @hareeshqt said:

            can we visualize the application for the controls and the 3D model in the same window?

            You mean like this: kinematics demo?

            hareeshqtH 2 Replies Last reply
            0
            • ? A Former User

              @hareeshqt said:

              can we visualize the application for the controls and the 3D model in the same window?

              You mean like this: kinematics demo?

              hareeshqtH Offline
              hareeshqtH Offline
              hareeshqt
              wrote on last edited by
              #6

              @Wieland Yes exactly...!!!!

              ? 1 Reply Last reply
              0
              • hareeshqtH hareeshqt

                @Wieland Yes exactly...!!!!

                ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                @hareeshqt Great. So, yes it's possible, just what I did in the demo :-) Easiest way is to have a Qt3D scene in QML and use QtQuick controls as overlay, like:

                main.qml

                import QtQuick 2.5
                import Qt3D.Core 2.0
                import Qt3D.Render 2.0
                import QtQuick.Scene3D 2.0
                import QtQuick.Window 2.2
                import QtQuick.Controls 1.4
                
                Window {
                    id: mainWindow
                    visible: true
                    width: 800
                    height: 600
                    // ...
                
                    // Qt3D scene
                    Scene3D {
                       // ...
                    }
                
                    // Overlay...
                    Button {
                       // ...
                    }
                }
                
                hareeshqtH 1 Reply Last reply
                0
                • ? A Former User

                  @hareeshqt Great. So, yes it's possible, just what I did in the demo :-) Easiest way is to have a Qt3D scene in QML and use QtQuick controls as overlay, like:

                  main.qml

                  import QtQuick 2.5
                  import Qt3D.Core 2.0
                  import Qt3D.Render 2.0
                  import QtQuick.Scene3D 2.0
                  import QtQuick.Window 2.2
                  import QtQuick.Controls 1.4
                  
                  Window {
                      id: mainWindow
                      visible: true
                      width: 800
                      height: 600
                      // ...
                  
                      // Qt3D scene
                      Scene3D {
                         // ...
                      }
                  
                      // Overlay...
                      Button {
                         // ...
                      }
                  }
                  
                  hareeshqtH Offline
                  hareeshqtH Offline
                  hareeshqt
                  wrote on last edited by
                  #8

                  @Wieland Thank you..'ll try and let you know

                  hareeshqtH 1 Reply Last reply
                  0
                  • hareeshqtH hareeshqt

                    @Wieland Thank you..'ll try and let you know

                    hareeshqtH Offline
                    hareeshqtH Offline
                    hareeshqt
                    wrote on last edited by
                    #9

                    @hareeshqt should we have Qt3D module and opengl for doing this...?

                    ? 1 Reply Last reply
                    0
                    • hareeshqtH hareeshqt

                      @hareeshqt should we have Qt3D module and opengl for doing this...?

                      ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #10

                      @hareeshqt In the .pro file you need QT += qml quick 3dcore 3drender.

                      hareeshqtH 1 Reply Last reply
                      0
                      • ? A Former User

                        @hareeshqt In the .pro file you need QT += qml quick 3dcore 3drender.

                        hareeshqtH Offline
                        hareeshqtH Offline
                        hareeshqt
                        wrote on last edited by hareeshqt
                        #11

                        @Wieland and which application would be better widget or consol or....?

                        ? 1 Reply Last reply
                        0
                        • hareeshqtH hareeshqt

                          @Wieland and which application would be better widget or consol or....?

                          ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #12

                          @hareeshqt "Qt Quick Controls Application"

                          hareeshqtH 1 Reply Last reply
                          0
                          • ? A Former User

                            @hareeshqt "Qt Quick Controls Application"

                            hareeshqtH Offline
                            hareeshqtH Offline
                            hareeshqt
                            wrote on last edited by
                            #13

                            @Wieland but if we use the Qt Quick Controls Application, we are not getting the .pro file is there any method.....?

                            ? 1 Reply Last reply
                            0
                            • hareeshqtH hareeshqt

                              @Wieland but if we use the Qt Quick Controls Application, we are not getting the .pro file is there any method.....?

                              ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by
                              #14

                              @hareeshqt In Qt Creator, click "New project", select "Qt Quick Controls Application", click "Choose", enter a project name, click "Next", click "Next", click "Next", click "Finish". Your project folder now contains some files, include a .pro file.

                              hareeshqtH 1 Reply Last reply
                              1
                              • ? A Former User

                                @hareeshqt In Qt Creator, click "New project", select "Qt Quick Controls Application", click "Choose", enter a project name, click "Next", click "Next", click "Next", click "Finish". Your project folder now contains some files, include a .pro file.

                                hareeshqtH Offline
                                hareeshqtH Offline
                                hareeshqt
                                wrote on last edited by hareeshqt
                                #15

                                @Wieland by doing that I got .qmlproject file. Is it the same?

                                ? 1 Reply Last reply
                                0
                                • hareeshqtH hareeshqt

                                  @Wieland by doing that I got .qmlproject file. Is it the same?

                                  ? Offline
                                  ? Offline
                                  A Former User
                                  wrote on last edited by
                                  #16

                                  I'm pretty sure you didn't select "Qt Quick Controls Application" but "Qt Quick Controls UI".

                                  hareeshqtH 1 Reply Last reply
                                  0
                                  • ? A Former User

                                    I'm pretty sure you didn't select "Qt Quick Controls Application" but "Qt Quick Controls UI".

                                    hareeshqtH Offline
                                    hareeshqtH Offline
                                    hareeshqt
                                    wrote on last edited by
                                    #17

                                    @Wieland Ya OK got it...thank you

                                    hareeshqtH 1 Reply Last reply
                                    0
                                    • hareeshqtH hareeshqt

                                      @Wieland Ya OK got it...thank you

                                      hareeshqtH Offline
                                      hareeshqtH Offline
                                      hareeshqt
                                      wrote on last edited by
                                      #18

                                      @hareeshqt Ok so how can I import my 3d model from blender to Qt ?

                                      ? 1 Reply Last reply
                                      0
                                      • hareeshqtH hareeshqt

                                        @hareeshqt Ok so how can I import my 3d model from blender to Qt ?

                                        ? Offline
                                        ? Offline
                                        A Former User
                                        wrote on last edited by
                                        #19

                                        @hareeshqt Take a look at the examples. Maybe start with this one.

                                        hareeshqtH 2 Replies Last reply
                                        0
                                        • ? A Former User

                                          @hareeshqt Take a look at the examples. Maybe start with this one.

                                          hareeshqtH Offline
                                          hareeshqtH Offline
                                          hareeshqt
                                          wrote on last edited by
                                          #20

                                          @Wieland Ok many thanks....

                                          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