Unsolved Controlling a 3d model
-
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.
-
@Wieland Ok thank you...
-
@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....?
-
@Wieland Hi, actually Iam a master student in chemnitz university of technology and the task Iam doing now is my internship task so my lecturer advised me not use the qml file as it would be a very difficult task to complete so is there any other way to create the application with robotic arm and buttons without using qml?