Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt3D Mesh loading status

Qt3D Mesh loading status

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 444 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ad7000
    wrote on last edited by
    #1

    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 this

        Entity {
            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.

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved