Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt3d light translation



  • Hey,

    I'm trying to translate a QPointLight with the new QT 5.13.2
    ![No translation, PointLight at (0,0,0)](1.PNG -)

        Qt3DCore::QEntity *lightEntity = new Qt3DCore::QEntity(m_sceneRoot);
        Qt3DRender::QPointLight *light = new Qt3DRender::QPointLight(lightEntity);
        light->setColor("white");
        light->setIntensity(1);
        lightEntity->addComponent(light);
        Qt3DCore::QTransform *lightTransform = new Qt3DCore::QTransform(lightEntity);
        lightTransform->setTranslation(QVector3D(0,1,0));
        lightEntity->addComponent(lightTransform);
    

    QT 5.13.1 the translation works
    ![Translation works](2.PNG _)

    With Qt 5.13.2 its looks always like the first pictrue. Is this something for a bugreport or is there a way i should test first?


Log in to reply