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

[REG 5.13.1->5.13.2] Qt3DRender::QPointLight setTranslation has no effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.13.2
    • Qt3D
    • 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

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            b.erdemann Benjamin Erdemann
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes