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

Sharing custom materials and effects between windows doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important 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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes