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

Add ability to directly place QQuickItems in 3D scene without going through Texture component

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.15
    • None
    • Quick: 3D
    • None
    • Qt Quick 3D - Week 5/6

    Description

      It should be possible to render 2D Quick content in 3D scenes using the geometry and material's provided by Qt Quick, though this may be difficult in Qt 5.  We should start to investigate the feasibility of doing this now though, and add a convenience path if necessary.  So for example given this scene:

      Node {
          Camera {
              z: -600
          }
          Light {
      
          }
      
          Node {
              x: 100
              y: 100
              rotation: Qt.vector3d(45, 0, 0)
      
              Rectangle {
                  height: 100
                  width: 100
                  color: "blue
              }
          }
      }
      

      It should be possible to recognize that there is a 2D component in the scene, and render that as an item in 3D space.  Either we use the state directly backed into the item itself, or we create a container for it that implicitly creates geometry and a texture that transparently looks like the item was "embedded" into the scene.  Either way I suspect users will want to use the API in this manner, even if we have to do magic under the hood to make it possible.

       

      Attachments

        Activity

          People

            inho Inho Lee
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: