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

Matrix stack wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • Qt3D TP1
    • 4.7.1
    • Qt3D
    • None

    Description

      I am running into another bug which is somewhat different from the previous issue we have discussed.
      Currently I am reading an asset from the .PLY file. Even after applying my temporarily fix, the matrix stack was still wrong.

      To make it more clearer, here is the partial code demonstrate the bug:

      #BUG

      // initialization
          m_node = ModelLoader::loadFromFile(":/terrain.ply");
          m_node->setPosition(QVector3D(-126.571, -109.341, 0));
          buildProjectionMatrix();
      
      
      // rendering
          painter->projectionMatrix().setToIdentity();
          painter->projectionMatrix() *= m_projMatrix;
      
          painter->modelViewMatrix().setToIdentity();
          m_node->draw(painter);
      
      // result -> it shows nothing.
      
      

      Attachments

        1. bug_screenshot.png
          bug_screenshot.png
          13 kB
        2. correct_screenshot.png
          correct_screenshot.png
          15 kB
        3. matrix_bug.tgz
          9 kB

        Issue Links

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

          Activity

            People

              sarasmit Sarah Smith (closed Nokia identity) (Inactive)
              sarasmit Sarah Smith (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes