Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-122063

QMesh have faulty status states.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.1
    • Qt3D
    • None
    • Windows

    Description

      QMesh have two problems with status:-

      1-It starts Loading the source only when the QMesh is added to a node and theĀ 
      Qt3DWindow is shown, only in those two conditions it starts loading, and it changes to Ready status only when the QApplication is executed, and there's no exposed function in the binding to force-load the source.

      2-When the QMesh loads a source, it's status is an undocumented miss named status called "Status.ReadCorruptData", this status value is 2, which is the same value of "Status.Ready" based on the documentation.

      The same applied for QSceneLoader, I provided two samples, one sample that print status of a QMesh after setting the source, proving it didn't load anything.

      The other sample forces to load the QMesh using a dummy QEntity and a Qt3DWindow, and exceuting the QApplication, after closing the application, it will print the status of the QMesh, which is then Status.Ready.

      I have no knowledge of Qt with C++, so I am providing what I can here.

      Attachments

        1. QMeshLoadingTest.py
          0.2 kB
        2. Cube.mtl
          0.2 kB
        3. Cube.obj
          0.9 kB
        4. QMeshFakeForceLoading.py
          0.4 kB
        5. pyside2601.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            ahmedahmedeg Ahmed Ahmed Abd Al Maksoud
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes