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

Quick: QML Inside of Scene as Texture source

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P1: Critical
    • None
    • None
    • Quick: 3D
    • None

    Description

      This is similar to QML subpresentations in Qt 3D Studio.  The idea is to make it possible to render 2D Qt Quick content inside of a 3D scene.  The first step is to be able to render QML to a layer (an FBO), and then use that texture as the source of a QQuick3DTexture.  Then you can use that content anywhere that takes a QQuick3DTexture.

      Ideally this will work similarlly to how ShaderEffectSource and QML Layers work today.  Basically the Qt Quick Scenegraph knows that this sub-tree is a dependency of the 3D scene, and makes sure that it gets rendered before a 3D scene.

      If we can make this work then it is then possible to also rendered additional 3D scenes inside of 3D scene via the use of the the View3D item.  It also leads to interesting usecases like Video textures via QtMultimedia or 3D compositors via Qt Wayland.

      I also want to make it clear that this is intended as the default fallback.  In the future it should be possible to avoid the use of an FBO in some cases.

      Attachments

        Issue Links

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

          Activity

            People

              johanhelsing Johan Helsing
              janichol Andy Nichols
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3 weeks
                  3w
                  Remaining:
                  Remaining Estimate - 3 weeks
                  3w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Gerrit Reviews

                    There is 1 open Gerrit change