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

Make it possible to appy Material and ReflectionProbe to XrItem

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.9.1
    • Quick: 3D
    • None

    Description

      Auto makers tend to want to validate their HMI in VR scene. One of the aspects they want to validate is to see the reflection on the display. For example, let the car drive and see how the moving scene outside the window gets reflected on the center display.

      With code like below, one can display an IVI for example in the position of the center display, while making its display reflective.

                  Model {
                      id: screenmodel
                      scale.x: 1.92 * .135
                      scale.y: 1.08 * .135
                      scale.z: 0.5 * .13
                      eulerRotation.x: -21
                      y: 88.7
                      z: -53.2
                      source: "#Rectangle"
                      pickable: true                
                      receivesReflections: true                
                      ReflectionProbe {
                          timeSlicing: ReflectionProbe.IndividualFaces
                          refreshMode: ReflectionProbe.EveryFrame
                          quality: ReflectionProbe.VeryHigh
                          boxSize: Qt.vector3d(300, 300, 300)
                          texture: extendedSceneEnv.skyBoxCubeMap
                      }
                      PrincipledMaterial {
                          id: iviMaterial
                          baseColorMap : Texture {
                              sourceItem: OutrunIVI {
                                  width: 1920
                                  height: 1080
                                  visible: true
                              }
                          }
                          metalness:  0.0
                          roughness:  0.02                    
                          transmissionFactor: 0.2
                          thicknessFactor:    0.015
                          indexOfRefraction:  1.55                    
                          attenuationColor:   "#ffffff"
                          attenuationDistance: 1000                    
                          specularAmount: 1.0
                          specularTint:   0.5                    
                          clearcoatAmount:           1.0
                          clearcoatRoughnessAmount:  0.0
                          clearcoatFresnelScaleBiasEnabled: true
                          clearcoatFresnelBias: 0.1
                          clearcoatFresnelScale: 1.1
                          clearcoatFresnelPower: 3
                      }
                      materials: [iviMaterial]
                  } 

      However, if you try to do the same thing with XrItem, since it doesn't have materials and receivesReflections properties, the same setup cannot be implemented.

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes