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
Issue Links
- relates to
-
QTBUG-17431 isCullable documentation is unclear
- Closed