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

CustomMaterials don't work when used in an importScene

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.0.0
    • 6.0.0 Alpha
    • Quick: 3D
    • None
    • 1
    • 28753c72f6bce94dbc3ebf37c78f6a650410b5ca (qt/qtquick3d/dev)
    • Qt Quick 3D - 39 - 40

    Description

      CustomMaterials (both types) don't work when used in this manner:

      Window {
          visible: true
          height: 800
          width: 600    
          Node {
              id: scene
              PerspectiveCamera {
                  z: 300
              }        
              DirectionalLight {
              }        
              Model {
                  source: "#Cube"
                  material: CustomMaterial { }
              }
           }    
           View3D {
              anchors.fill: parent
              importScene: scene
           }
      }
      

      But do work when used inline of the View3D. This is likely because CustomMaterials reference the scenemanager attached to a View3D, but this isn't actually a very unusual usecase so it should be able to work.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes