Unsolved Controlling a 3d model
-
@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.
-
@Wieland OK then i'll try that and let you know.....
-
@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....
-
@hareeshqt Don't know, works for me.
-
@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?
-
@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.
-
BTW: Loading STL files doesn't work but exporting from STL to OBJ in blender and then importing the OBJ works, just tested it.