Unsolved Blender Model in QWidget
-
hello. I'm having problems with drawing a model from blender, exported to opengl (a .h) inside a QWidget in qt. I have tried several tutorials, one, was drawing the vertex of the model, however, it was not possible, because there are too many of them. My question goes on if there is a method where I could draw this exported model inside the QWidget in a more efficient way
-
@m.salinas Hi, and welcome to the Qt forum!
You can use the Qt3D module. It contains Assimp and thus allows you to load objects from a huge number of file formats including blender's *.blend format. Here is a QML example: http://doc.qt.io/qt-5/qt3d-assimp-main-qml.html -
@Wieland Hi! thank you so much for you answer, but in qt 5.5 somes imports doesn´t work (i think are an old version and changes their names) like Render -> Renderer.
Do you have some example to Qt 5.5? i was watching this video https://www.youtube.com/watch?v=WbLBgpancME but i don´t understand so much how renderer the model, if you can help one more time please :) -
Qt3D is still a tech preview und thus still under development. Like you already noticed, its public interface changed considerably from Qt 5.5 to 5.6. Can't you just update to Qt 5.6?