Is there a way to load a STL or VRML(.wrl) file and show it with Qt Quick 3D?
-
I want to load a STL(.stl or .step) or VRML(.wrl) file and display it as a model with Qt Quick 3D.
I know that I need to convert it to the .mesh formate that Qt can use but is it possible to do this all in code dynamicly, without the balsam tool, and do it from a STL or VRML file? If yes how because I didn't find anything? -
Hi and welcome to devnet,
AFAIK, Qt3D uses Assimp to load 3D resources so if the library supports the format, it'a likely going to be usable.
-
ok, but when I understand that the documentation right I still need to convert it in to the right mesh formate of the engin
https://doc.qt.io/qt-5/qml-qtquick3d-model.html#mesh-format-and-built-in-primitives
and I have no Idea how I can do that dynamicly(so that I can take any .obj file while the program is running and load it) -
Sorry, that's one of the corner of Qt I do not have much experience with.