Qt3D Mesh loading status
Unsolved
QML and Qt Quick
-
Hello,
I am trying to figure out if there is a way to determine when a Mesh instance within a Qt3D Entity has finished loading.
Say I have a code snippet like thisEntity { id: ent components: [tf, mesh, mtl] Transform { id: tf property real yAxisRotation: 0.0 property real modelScale: 4.0 matrix: { var m = Qt.matrix4x4(); m.rotate(yAxisRotation, Qt.vector3d(0, 1, 0)) m.translate(Qt.vector3d(0, 0, 0)); m.scale(modelScale); return m; } } PhongMaterial{ id: mtl shininess: 0.1 } Mesh { id: mesh source: meshFile } }
If I would like to play an animation, or do any post processing operation after the mesh has finished loading, how can I go about determining the loading state of the mesh?
Thank you in advance to anyone who can clue in.