Loading an obj 3d model using Qt
-
wrote on 30 Jun 2024, 11:06 last edited by
I am new to Qt. I have a project where I want to load obj files. Could you point me to an example which loads obj file from the link: https://doc.qt.io/qt-6/quick3d-examples.html ?
-
wrote on 30 Jun 2024, 19:36 last edited by johngod
Hi, it should be this one https://doc.qt.io/qt-6/qtquick3d-runtimeloader-example.html . Edit: Note this example uses gltf format, you may need to convert it. Also check the documentation regarding the balsam tool, that converts the assets to the quick 3d format. https://doc.qt.io/qt-6/qtquick3d-tool-balsam.html
Also check this link https://www.qt.io/product/qt6/qml-book/ch12-qtquick3d-assets
-
wrote on 1 Jul 2024, 10:15 last edited by
Thank you.
-
wrote on 3 Jul 2024, 12:22 last edited by
The example is very useful. It uses RuntimeLoader https://doc.qt.io/qt-6/qml-qtquick3d-assetutils-runtimeloader.html . The sample project loads obj files successfully. But if I want to load fbx files, I might want to use balsam tool. This sample loads the obj file directly from the source at runtime. Is there anyway I can load fbx files runtime without using balsam tool? I think Quick 3d internally uses assimp, which loads multiple formats?
1/4