Announcement

Collapse
No announcement yet.

Artifacts in DFRS (Distance Field Raytraced Shadows) rendering

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Artifacts in DFRS (Distance Field Raytraced Shadows) rendering

    Hello!

    I was fiddling with dynamic lights and the new DFRS system and it's well, the best thing after bacon.

    One thing I discovered though is that with extreme angles and very near positions the lights inteact with geometry in a very weird way. The atrifacts actually resemble the distance field visualizations.
    It's not a big deal, one would just avoid this extreme scenarios, but maybe devs didn't see this coming so i'll post some screens.

    This one is set to resolution 3
    Click image for larger version

Name:	DFRshadows3.jpg
Views:	1
Size:	174.8 KB
ID:	1139696

    This one is at 7. Notice how the banding stays similar and is affected by the shape of the DF
    Click image for larger version

Name:	DFRshadows7.jpg
Views:	1
Size:	177.3 KB
ID:	1139697

    That's it! Other than that thank you so much. I didn't really care about DFAO, but those shadows are the best and they are actually faster than CSM!

    #2
    Try turning off CSM

    Comment


      #3
      Also make sure the light source isn't intersecting with the mesh.
      FREE Lightshow
      FREE VR Drum Kit Project

      FREE Color LUT Collection
      FREE Physics Driven Spacecraft Project
      FREE GTA Style Vehicle Interaction
      Dynamic DoF(Depth of Field)
      Camera Crossfade

      Comment


        #4
        Originally posted by darthviper107 View Post
        Try turning off CSM
        Ahhh so it's not just me - is there any hope that the weirdness with these two combined will be fixed at some point?
        Storyteller - An immersive VR audiobook player

        Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

        Comment


          #5
          There's probably a setting that should be adjusted so that it switches correctly between them based on distance or something, but I haven't messed with the settings much yet.

          Comment


            #6
            Originally posted by n00854180t View Post
            Ahhh so it's not just me - is there any hope that the weirdness with these two combined will be fixed at some point?
            What kind of weirdness have you run into? If you are talking about the transition gap between the two increasing Cascade Transition Fraction helps.
            FREE Lightshow
            FREE VR Drum Kit Project

            FREE Color LUT Collection
            FREE Physics Driven Spacecraft Project
            FREE GTA Style Vehicle Interaction
            Dynamic DoF(Depth of Field)
            Camera Crossfade

            Comment


              #7
              Originally posted by Jacky View Post
              What kind of weirdness have you run into? If you are talking about the transition gap between the two increasing Cascade Transition Fraction helps.
              So in my case, if I have DFRS on and have a light source with CSM shadows near it - the CSM has a strange overlay in the right eye (this is in VR mode). Works fine with DFRS off and the CSM light source.
              Storyteller - An immersive VR audiobook player

              Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

              Comment


                #8
                Originally posted by darthviper107 View Post
                Try turning off CSM
                Sorry I forgot to put in all the info

                - Light is not intersecting with the mesh (gonna doublecheck if source radius does though)
                - CSM turned off (otherwise i would not see the DFRS up close since CSM would take over)
                - No fancy postprocess going on (no LPV etc), SSR at 100% quality
                - AA set to FXAA (just for kicks, no real reason)

                Comment


                  #9
                  Originally posted by n00854180t View Post
                  So in my case, if I have DFRS on and have a light source with CSM shadows near it - the CSM has a strange overlay in the right eye (this is in VR mode). Works fine with DFRS off and the CSM light source.
                  Oh, it may be a VR specific bug then. I dont have an Oculus and the only issues i've run into with DFRS so far has been caused by some of my meshes. All the other cascade and transition issues can be solved with cascade parameters if you want to use them both in a non-VR environment.


                  Originally posted by max.pareschi View Post
                  Sorry I forgot to put in all the info

                  - Light is not intersecting with the mesh (gonna doublecheck if source radius does though)
                  - CSM turned off (otherwise i would not see the DFRS up close since CSM would take over)
                  - No fancy postprocess going on (no LPV etc), SSR at 100% quality
                  - AA set to FXAA (just for kicks, no real reason)
                  If the light source radius isnt intersecting for sure, enable Generate Distance Field as if Two Sided in static mesh editor then apply changes and see if it makes a difference.
                  FREE Lightshow
                  FREE VR Drum Kit Project

                  FREE Color LUT Collection
                  FREE Physics Driven Spacecraft Project
                  FREE GTA Style Vehicle Interaction
                  Dynamic DoF(Depth of Field)
                  Camera Crossfade

                  Comment


                    #10
                    You can also look at the Distance Field visualizer so you can make sure that your distance field scale is high enough on each object. I'm not sure how it works with BSP, maybe it doesn't.

                    Comment


                      #11
                      Originally posted by Jacky View Post
                      Oh, it may be a VR specific bug then. I dont have an Oculus and the only issues i've run into with DFRS so far has been caused by some of my meshes. All the other cascade and transition issues can be solved with cascade parameters if you want to use them both in a non-VR environment.
                      It might be, but my intuition is that it isn't VR specific - or at least is part of the problems affecting CSM that happen even without VR.

                      I think maybe part of the issue are the settings, which I haven't messed with at all - even when not in VR mode I see some sliding of the far shadows against distant objects. I imagine the cascade parameters and stuff need tweaking.
                      Storyteller - An immersive VR audiobook player

                      Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

                      Comment


                        #12
                        All of the models were static meshes but..
                        ..source radius was actually intersecting the door mesh! problem solved. As i said before, best thing after bacon!

                        Comment

                        Working...
                        X