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

Changing mesh values doesn't work properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.0 RC
    • 5.6.0 Beta
    • Qt3D
    • windows 7 64bit, Intel HD 4600 gpu
    • 02f7b6f2f7033caca333275c2f7f1fae999f6e6a

    Description

      Updating some mesh values, e.g. SphereMesh radius, doesn't update the value correctly to the rendered mesh. To reproduce, add the following timer to simple-qml example:

              QQ2.Timer {
                  id: timer
                  interval: 3000
                  repeat: true
                  QQ2.Component.onCompleted: {
                      console.log("STarting")
                      timer.start()
                  }
                  onTriggered: {
                      if (sphereMesh.radius === 10) {
                          console.log("Setting radius to 4")
                          sphereMesh.radius = 4
                      }else {
                          console.log("Setting radius to 10")
                          sphereMesh.radius = 10
                      }
                  }
              }
      

      When "Setting radius to 10" is printed, the sphere should increase in size, but instead it actually draws radius 4 sphere. Also vice versa, so the actual rendered sphere radius lags one update behind.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes