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

Significant problems with rendering dynamically created Entities

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.0 RC
    • 5.8, 5.9.0 Beta 3, 5.9
    • Qt3D
    • None
    • Windows 7 x64 SP1
      Android 5.1
    • 2eb53d735488cd2fb609e51c036c5ee3554557c7

    Description

      Entities are not rendered (or maybe rendered somewhere else) under certain circumstances.
      Reproducing test example attached.

      On the scene there is entity1 with dynamically created 100 children green plane mesh entities and perpendicular to them dynamically created 3 red plane mesh entities as children of entity2.

      If entity1 (as entity2) is created one time on start, everything renders fine as should be:

      test_right.zip example attached

      If entity1 is created dynamically green children plane entities are not rendered (only one plane):

      (watch video "test_without_reparent")

      If then do reparent 100 children green plane mesh entities (that is set parent to null, than back to needed entity) got right result.
      (watch video "test_with_reparent")

      Also after first reparent on next steps when creating green children plane entities are got rendered, but it looks like they got extra translation until another reparenting is done ("test_with_reparent" video).

      As well want to note (maybe this will help) in my own application there was times when a few child entities sometimes are rendered in camera view with extra translation and rotation that they didn't have (no transform component, check it in debug)! But unfortunately I can reproduce it.

      Reproducing examples attached:

      test_right.zip - without bugs - entity1 is created one time on start.

      test_wrong.zip - with bug - there are 3 steps:
      1. Create entities;
      2. Reparent green entities;
      3. Delete entities

      Second step can be commented if needed.

      (didn't test this example on android, but had similar issues in my own android application)

      Attachments

        1. right.png
          right.png
          38 kB
        2. test_right.zip
          4 kB
        3. test_with_reparent.avi
          304 kB
        4. test_without_reparent.avi
          137 kB
        5. test_wrong.zip
          4 kB
        6. wrong.png
          wrong.png
          14 kB
        For Gerrit Dashboard: QTBUG-60612
        # Subject Branch Project Status CR V

        Activity

          People

            lemire_p Paul Lemire
            lukegluke Oleg
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes