Unsolved Controlling a 3d model
-
@hareeshqt Take a look at the examples. Maybe start with this one.
-
@Wieland Ok many thanks....
-
@Wieland Hi, I'm trying the example suggested by you and got all the required files but how can we get the (.geom) file?
-
@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)
-
@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.....
-
@hareeshqt You can find
window.h
andwindow.cpp
inhttp://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/common
. -
@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.
-
@hareeshqt can you help with these errors please.......!!!
-
Look here:
http://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/exampleresources
-
@Wieland should we attach that obj.qrc to the resource file?
-
@Wieland Its saying 1: warning: Failure to find: ..\exampleresources\obj.qrc
-
@hareeshqt Here, i packed everything into one archive: https://drive.google.com/file/d/0B2D1UtsPfTx-b0ZuNTA0LW9aVE0/view?usp=sharing
-
@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...
-
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.
-
@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..?
-
@hareeshqt I don't understand what you mean.
-
@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.....
-
@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.
-
@Wieland Ok but for that should I need to change that .stl to .obj file....
-
@hareeshqt I think it will work with stl too. If not, I'm pretty sure Blender can export to obj too.