Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-2912

Issues with cast shadows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt 3D Studio 2.3 BETA1
    • Editor Application
    • None
    • Win10
      GeForce 940 mx

    Description

      I start a new project and add a rectangle and a sphere to the scene. I set the light to Point light type (also changing light color). 

      In Perspective View, it looks like this:

      Then I enable Cast Shadows? for the light. The result looks like below (light gets darker, no shadow is cast from the sphere to the rectangle as one could expect).

      In Scene Camera View everything looks as expected with Cast Shadows? disabled. However when I enable it the whole scene turns black.

      When I run it in the Viewer shadow works sometimes and sometimes not. I'm not sure how to reproduce it not working.

      So back to viewer and lets look at the properties of the light, as seen the Scope is empty but Path has value Scene.Layer.

      Now I set the Scope to layer. I dont know if this should make any difference.

      After I have done this the light is correct in all camera views in the editor. The light doesn't change when I toggle Cast Shadows? on/off. But there is still no shadow cast in the Editor. The Viewer works as expected.

       

      Now I do the following:

      1. Close the editor
      2. Remove scope="#Layer" for the light element in the .uip file.
      3. Open the project in the editor.

      Now shadow works in the Scene Camera View but for i.e. Perspective View we have the same problem as originally described.

      Attachments

        1. image-2019-01-14-14-48-43-792.png
          115 kB
          Mats Honkamaa
        2. image-2019-01-14-14-49-41-892.png
          115 kB
          Mats Honkamaa
        3. image-2019-01-14-14-53-15-220.png
          80 kB
          Mats Honkamaa
        4. image-2019-01-14-14-55-23-948.png
          15 kB
          Mats Honkamaa
        5. image-2019-01-14-14-57-02-932.png
          18 kB
          Mats Honkamaa
        6. image-2019-01-14-15-17-15-008.png
          13 kB
          Mats Honkamaa
        7. image-2019-01-15-10-01-27-783.png
          255 kB
          Mats Honkamaa
        8. screenshot-1.png
          351 kB
          Mats Honkamaa
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mahonkam Mats Honkamaa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes