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

CustomMaterials don't work when used in an importScene

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.0.0 Alpha
    • Fix Version/s: 6.0.0
    • Component/s: Quick: 3D
    • Labels:
      None
    • Commits:
      28753c72f6bce94dbc3ebf37c78f6a650410b5ca (qt/qtquick3d/dev)
    • Story Points:
      1
    • Sprint:
      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

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

          Activity

            People

            Assignee:
            inho Inho Lee
            Reporter:
            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