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
Forum Updated to NodeBB v4.3 + New Features

Controlling a 3d model

Scheduled Pinned Locked Moved Unsolved General and Desktop
47 Posts 4 Posters 17.5k Views 3 Watching
  • 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.
  • ? 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
          • ? 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
            #21

            @Wieland Hi, I'm trying the example suggested by you and got all the required files but how can we get the (.geom) file?

            ? 1 Reply Last reply
            0
            • hareeshqtH hareeshqt

              @Wieland Hi, I'm trying the example suggested by you and got all the required files but how can we get the (.geom) file?

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

              @hareeshqt Oh, yes, that's a bug in example shipped together with the latest Qt installers. You can get all files from here: http://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/wireframe

              (You don't need to file a bug report for this, I already did this some time before, see QTBUG-50859)

              hareeshqtH 1 Reply Last reply
              0
              • ? A Former User

                @hareeshqt Oh, yes, that's a bug in example shipped together with the latest Qt installers. You can get all files from here: http://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/wireframe

                (You don't need to file a bug report for this, I already did this some time before, see QTBUG-50859)

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

                @Wieland Hi, everything is ok now but after building, in the main.cpp file for #include<window.h> it's saying no such file or directory exists. Help me please.....

                ? 1 Reply Last reply
                0
                • hareeshqtH hareeshqt

                  @Wieland Hi, everything is ok now but after building, in the main.cpp file for #include<window.h> it's saying no such file or directory exists. Help me please.....

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

                  @hareeshqt You can find window.h and window.cpp in http://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/common.

                  hareeshqtH 1 Reply Last reply
                  0
                  • ? A Former User

                    @hareeshqt You can find window.h and window.cpp in http://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/common.

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

                    @Wieland I'm getting this..........
                    C:\Qt\5.6\mingw49_32\bin\rcc.exe:-1: error: File does not exist '..\exampleresources\obj.qrc' and also

                    :-1: error: No rule to make target '../exampleresources/obj.qrc', needed by 'debug/qrc_obj.cpp'. Stop.

                    hareeshqtH 1 Reply Last reply
                    0
                    • hareeshqtH hareeshqt

                      @Wieland I'm getting this..........
                      C:\Qt\5.6\mingw49_32\bin\rcc.exe:-1: error: File does not exist '..\exampleresources\obj.qrc' and also

                      :-1: error: No rule to make target '../exampleresources/obj.qrc', needed by 'debug/qrc_obj.cpp'. Stop.

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

                      @hareeshqt can you help with these errors please.......!!!

                      ? 1 Reply Last reply
                      0
                      • hareeshqtH hareeshqt

                        @hareeshqt can you help with these errors please.......!!!

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

                        Look here: http://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/exampleresources

                        hareeshqtH 2 Replies Last reply
                        0
                        • ? A Former User

                          Look here: http://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/exampleresources

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

                          @Wieland should we attach that obj.qrc to the resource file?

                          1 Reply Last reply
                          0
                          • ? A Former User

                            Look here: http://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/exampleresources

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

                            @Wieland Its saying 1: warning: Failure to find: ..\exampleresources\obj.qrc

                            ? 1 Reply Last reply
                            0
                            • hareeshqtH hareeshqt

                              @Wieland Its saying 1: warning: Failure to find: ..\exampleresources\obj.qrc

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

                              @hareeshqt Here, i packed everything into one archive: https://drive.google.com/file/d/0B2D1UtsPfTx-b0ZuNTA0LW9aVE0/view?usp=sharing

                              hareeshqtH 1 Reply Last reply
                              0
                              • ? A Former User

                                @hareeshqt Here, i packed everything into one archive: https://drive.google.com/file/d/0B2D1UtsPfTx-b0ZuNTA0LW9aVE0/view?usp=sharing

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

                                @Wieland thanks for the effort and Sorry for asking but as Im new to this concept I can't understand this but I just wanted to know exactly what should I do with that obj.qrc...

                                ? 1 Reply Last reply
                                0
                                • hareeshqtH hareeshqt

                                  @Wieland thanks for the effort and Sorry for asking but as Im new to this concept I can't understand this but I just wanted to know exactly what should I do with that obj.qrc...

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

                                  It says:

                                  warning: Failure to find: ..\exampleresources\obj.qrc

                                  In other words: The file obj.qrc could not be found in the directory ../examplesources . So you need to put it in there. Just look at the archive i've shared with you. It has all the files needed in the right places.

                                  hareeshqtH 1 Reply Last reply
                                  0
                                  • ? A Former User

                                    It says:

                                    warning: Failure to find: ..\exampleresources\obj.qrc

                                    In other words: The file obj.qrc could not be found in the directory ../examplesources . So you need to put it in there. Just look at the archive i've shared with you. It has all the files needed in the right places.

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

                                    @Wieland OK thank you...and if we need to import my 3dmodel from blender(.stl), should we definitely do it with the help of OpenGL or can we do it directly..?

                                    ? 1 Reply Last reply
                                    0
                                    • hareeshqtH hareeshqt

                                      @Wieland OK thank you...and if we need to import my 3dmodel from blender(.stl), should we definitely do it with the help of OpenGL or can we do it directly..?

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

                                      @hareeshqt I don't understand what you mean.

                                      hareeshqtH 1 Reply Last reply
                                      0
                                      • ? A Former User

                                        @hareeshqt I don't understand what you mean.

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

                                        @Wieland My friend is modelling a robotic arm in blender so that will be in .stl format so to import that to the application that Im creating now in Qt(like in the kinematics video) should I do it with openGL or is there any other method.....

                                        ? 1 Reply Last reply
                                        0
                                        • hareeshqtH hareeshqt

                                          @Wieland My friend is modelling a robotic arm in blender so that will be in .stl format so to import that to the application that Im creating now in Qt(like in the kinematics video) should I do it with openGL or is there any other method.....

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

                                          @hareeshqt In the archive i've shared with you, the example loads the geometry from the file exampleresources/assets/obj/trefoil.obj. The code needed to load the geometry boils down to:

                                              Mesh {
                                                  id: mesh
                                                  source: "assets/obj/trefoil.obj"
                                              }
                                          

                                          I don't think it can get any simpler.

                                          hareeshqtH 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