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 18.4k 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.
  • 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
                      • ? A Former User

                        @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 Offline
                        hareeshqtH Offline
                        hareeshqt
                        wrote on last edited by
                        #37

                        @Wieland Ok but for that should I need to change that .stl to .obj file....

                        ? 1 Reply Last reply
                        0
                        • hareeshqtH hareeshqt

                          @Wieland Ok but for that should I need to change that .stl to .obj file....

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

                          @hareeshqt I think it will work with stl too. If not, I'm pretty sure Blender can export to obj too.

                          hareeshqtH 2 Replies Last reply
                          0
                          • ? A Former User

                            @hareeshqt I think it will work with stl too. If not, I'm pretty sure Blender can export to obj too.

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

                            @Wieland OK then i'll try that and let you know.....

                            1 Reply Last reply
                            0
                            • ? A Former User

                              @hareeshqt I think it will work with stl too. If not, I'm pretty sure Blender can export to obj too.

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

                              @Wieland Hi, in the wireframe example after running it, it's showing only a blank window and its saying qrc:/main.qml: File not found....but in the resources I have added main.qml file so what would be the error....

                              ? 1 Reply Last reply
                              0
                              • hareeshqtH hareeshqt

                                @Wieland Hi, in the wireframe example after running it, it's showing only a blank window and its saying qrc:/main.qml: File not found....but in the resources I have added main.qml file so what would be the error....

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

                                @hareeshqt Don't know, works for me.

                                hareeshqtH 1 Reply Last reply
                                0
                                • ? A Former User

                                  @hareeshqt Don't know, works for me.

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

                                  @Wieland ok previously you said about that .geom bug but even in the updated files sent by you has that .geom file but I haven't added that b'coz in the GLSL we have only vertex shader and fragment shader so which shader should we take to get that .geom file or can we leave that?

                                  ? 1 Reply Last reply
                                  0
                                  • hareeshqtH hareeshqt

                                    @Wieland ok previously you said about that .geom bug but even in the updated files sent by you has that .geom file but I haven't added that b'coz in the GLSL we have only vertex shader and fragment shader so which shader should we take to get that .geom file or can we leave that?

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

                                    @hareeshqt said:

                                    but I haven't added that

                                    You can not simply remove files from the example because then it won't work anymore.

                                    so which shader should we take to get that .geom file or can we leave that?

                                    That .geom file is a shader. You need all of them otherwise the example won't work.

                                    ? hareeshqtH 2 Replies Last reply
                                    0
                                    • ? A Former User

                                      @hareeshqt said:

                                      but I haven't added that

                                      You can not simply remove files from the example because then it won't work anymore.

                                      so which shader should we take to get that .geom file or can we leave that?

                                      That .geom file is a shader. You need all of them otherwise the example won't work.

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

                                      BTW: Loading STL files doesn't work but exporting from STL to OBJ in blender and then importing the OBJ works, just tested it.

                                      hareeshqtH 1 Reply Last reply
                                      0
                                      • ? A Former User

                                        @hareeshqt said:

                                        but I haven't added that

                                        You can not simply remove files from the example because then it won't work anymore.

                                        so which shader should we take to get that .geom file or can we leave that?

                                        That .geom file is a shader. You need all of them otherwise the example won't work.

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

                                        @Wieland Ok thank you...

                                        1 Reply 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
                                          #46

                                          @Wieland HI, the 3d model from blender is ready and now Iam starting to build the application like in the kinematics example and is the Qt Quick controls application suitable for this also....?

                                          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