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

Qt Quick 3D adding PointLight leads to an exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.0.1, 6.1.0
    • 6.0.0 Beta5
    • Quick: 3D
    • None
    • Windows
    • 2
    • 50afefe8d1e3d79d4ef973efd171bf3133ff9eed (qt/qtquick3d/dev) e3fa2c1d25a2ffc0f6f685b6a893c47468866dc3 (qt/qtquick3d/6.0)
    • Qt Quick 3D - 49/50

    Description

      How to reproduce:

      1) Open "Qt Quick 3D - lights example" (with a teapot)

      2) Find "PointLight" with id: light2 in main.qml

      3) Add after: 

              PointLight
              {
                  color: Qt.rgba(1.0, 1.0, 0.95, 1.0)
                  ambientColor: Qt.rgba(0.1, 0.1, 0.1, 1.0)
                  position: Qt.vector3d(1600, 200, 200)
                  shadowMapFar: 2000
                  shadowMapQuality: Light.ShadowMapQualityHigh
                  visible: true
                  castsShadow: false
                  brightness: 50
              }
      

      4) Run the example 

      5) Press "Point light" checkbox

      Exception:

      1  operator==                      qrhigles2_p_p.h           119  0x64263661 
      2  QRhiGles2::bindShaderResources  qrhigles2.cpp             3065 0x64263661 
      3  QRhiGles2::executeCommandBuffer qrhigles2.cpp             2383 0x6426529b 
      4  QRhiGles2::endFrame             qrhigles2.cpp             1441 0x64265ced 
      5  QRhi::endFrame                  qrhi.cpp                  6206 0x6412dd2b 
      6  QSGRenderThread::syncAndRender  qflags.h                  114  0x62e0a900 
      7  QSGRenderThread::run            qsgthreadedrenderloop.cpp 982  0x62e0b41f 
      8  QThreadPrivate::start           qthread_win.cpp           326  0x653efa97 
      9  KERNEL32!BaseThreadInitThunk                                   0x7798556d 
      10 ntdll!RtlUserThreadStart                                       0x77be372d 
      11 ??                                                                        
      

       Adding it before SceneEnvironment fixes the problem.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            alexey89 alexey89
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes