Qt3D and QGlSceneNode



  • Hi,
    anything goes wrong if I use the qglapinter class:
    @
    QGLPainter p;
    p.begin();
    foreach(cRef<c3DViscom> viscom, m_impl->m_viscoms)
    {
    // viscom->paint(&p); // just calls draw() of a qglscenenode created with qglbuilder, a qglmaterial and the QGL::LitMaterial standard effect
    }
    p.begin();
    glColor3f(1,0,0);
    glBegin(GL_LINES);
    glVertex3f(0, 0, 0);
    glVertex3f(0, 100, 0);
    glEnd();@

    If the paint() method is called the line appears black instead of red. What do I wrong?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.