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

SpotLight doesn't work properly with PBR materials

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.0.0, 6.1
    • Fix Version/s: 6.1.0 Beta3, 6.1, 6.2.0 Alpha
    • Component/s: Quick: 3D
    • Labels:
      None
    • Platform/s:
      Linux/X11, Windows
    • Commits:
      ac890e6ca577dc6c37d71c21975c20b9b6b45045 (qt/qtquick3d/dev) 4659266aee531ebb698b4cfc57cce11ebe004e07 (qt/qtquick3d/6.1)
    • Story Points:
      3
    • Sprint:
      Qt Quick 3D - 2021 Week 11/12

      Description

      If a SpotLight is directed to a model with PBR material the light spot doesn't look correct.

      See the attached image.

      To reproduce:

      1) open "Light example"

      2) add to each Model with source: "#Rectangle" this material:

       

      PrincipledMaterial
      {
          baseColor: "#999944"
          metalness: 0.9
          roughness: 0.2
      }
      

      Another problem is the intersection line of 2 spotlights, light should be twice as intensive there but instead it falls (see example3 image). This problem is reproducible with DefaultMaterial.

       

        Attachments

        1. example.jpg
          example.jpg
          164 kB
        2. example2.jpg
          example2.jpg
          77 kB
        3. example3.jpg
          example3.jpg
          24 kB
        For Gerrit Dashboard: QTBUG-89946
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            inho Inho Lee
            Reporter:
            alexey89 alexey89
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes