Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.13.2
-
None
-
Win10, QTCreator 4.10.1, QT5.13.2, MinGW7.3.0
Description
A QPointLight in an Qt3DWindow stays always at (0,0,0).
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);
// Translation has no effect
lightTransform->setTranslation(QVector3D(0.0, 1.0, 0.0));
lightEntity->addComponent(lightTransform);
In QT5.13.1 there is an Translation.
A simple example project is attached