This is 3D object smaple using Qt.
- Qt 5.15 +
- QtQuick3D 1.15
This project has two points.
- Write the following code in main.cpp
QGuiApplication app(argc, argv);
QSurfaceFormat::setDefaultFormat(QQuick3D::idealSurfaceFormat());
// qml engine...- Convert three-dimensional object file to qml Convert the data of the three-dimensional object file to qml to use as a model in Qml. The conversion method is described below.
./balsam -o . airplane.objThe balsam command comes with Qt project.
It is supported types.
- Wavefront (.obj)
- COLLADA (.dae)
- FBX (.fbx)
- Blender (.blend)
- GLTF2 (.gltf, .glb)