Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt3d light translation

Qt3d light translation

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 131 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • b.erdemannB Offline
    b.erdemannB Offline
    b.erdemann
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved