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

Sharing custom materials and effects between windows doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.0.0 RC
    • 5.15.1, 6.0.0 Beta2
    • Quick: 3D
    • None
    • 3
    • Qt Quick 3D - Week 45/46, Qt Quick 3D - 47/48

    Description

      Sharing effects between windows doesn't work. If tried, the entire View3D content is not drawn on the other window. For example, see the attached application. 

      The following trace can be seen in output:

      Failed to find file: res/effectlib/:/shaders/blur.frag
      Searched path: :/,.
      QSSG.invalid_operation: Failed to find include file :/shaders/blur.frag

      The reason seems to be that Quick3D caches the shader data into current renderContext at initial QQuick3DEffect::updateSpatialNode call, so it won't be available on other contexts.

      renderContext->effectSystem()->setShaderData(shaderPath, shaderCode, "GLSL", "330", false, false); 

      This blocks showing effect previews in QDS.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-86616
          # Subject Branch Project Status CR V

          Activity

            People

              lagocs Laszlo Agocs
              e0348803 Miikka Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes