Announcement

Collapse
No announcement yet.

Distance Field Touch Bend

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

    [ASSETS] Distance Field Touch Bend

    So for a project I'm working on for myself I wanted to try and get the vegetation touch bending effect that the CryENGINE has. Started working on it the other night after seeing this thread: https://forums.unrealengine.com/show...Field-Flow-Map After putting a few hours into the material, this is the result:



    And the material itself:

    Click image for larger version

Name:	DFMat.png
Views:	1
Size:	192.6 KB
ID:	1155625

    #2
    It seems you beat me to it. I was planning on doing similar thing in 4.9, I just haven't bothered to compile it myself. My plan was to attach two invisible meshes to the legs of a character and have them push away grass on ground. But I worry that doing that also causes anomalies with the actual DFAO rendering, making the character legs look black or otherwise shadowed.

    Comment


      #3
      Yeah, it's entirely possible. Unfortunately, at the moment you can't disable DFAO and still keep the distance field calculations for materials going, doing so broke this material immediately for me. Hopefully in a future version we'll be able to separate the two for instances like that. Not every project that would benefit from materials like this would necessarily benefit from DFAO.

      One cool variant on the material that I stumbled across when working on this makes it so the grass actually doesn't get back up after the distance field is far enough away, and stays like that. Kind of reminded me of that Nvidia Turf Effects video.
      Last edited by Zero-Night; 07-15-2015, 07:45 AM.

      Comment


        #4
        This is great!!
        [FREE] Procedural Bridge Blueprint, [FREE] Spline Enabled Ivy BP

        Comment


          #5
          Hello,
          i have tested this "Distance Field Touch Bend"-Function with one of my own materials but there is no effect:
          Click image for larger version

Name:	Test_Bending.png
Views:	1
Size:	451.3 KB
ID:	1093748
          Can someone help me please?
          Kind regards,
          halobungie

          Comment


            #6
            @halobungie - You might have to increase the strength parameter a lot - to get the effect in the video below I had to put strength up above 6000.




            @Daniel.Wenograd - Thank you very much for this effect, looks awesome!
            Storyteller - An immersive VR audiobook player

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

            Comment


              #7
              Hello n00854180t,
              i get no such Effect - I have change the Strenght to 6000 but there is no such Effect. Have i to do something else to get this Effect?
              Kind regards,
              halobungie

              Comment


                #8
                Originally posted by halobungie View Post
                Hello n00854180t,
                i get no such Effect - I have change the Strenght to 6000 but there is no such Effect. Have i to do something else to get this Effect?
                Kind regards,
                halobungie
                Are you doing it on grass or on a flat ground or something? The effect doesn't show up exactly the same when not used on grass.
                Storyteller - An immersive VR audiobook player

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

                Comment


                  #9
                  Originally posted by Daniel.Wenograd View Post
                  Yeah, it's entirely possible. Unfortunately, at the moment you can't disable DFAO and still keep the distance field calculations for materials going, doing so broke this material immediately for me. Hopefully in a future version we'll be able to separate the two for instances like that. Not every project that would benefit from materials like this would necessarily benefit from DFAO.

                  One cool variant on the material that I stumbled across when working on this makes it so the grass actually doesn't get back up after the distance field is far enough away, and stays like that. Kind of reminded me of that Nvidia Turf Effects video.
                  That sounds awesome (the grass staying down part). How does that work and could it be replicated in multiplayer?

                  Comment


                    #10
                    Originally posted by n00854180t View Post
                    Are you doing it on grass or on a flat ground or something? The effect doesn't show up exactly the same when not used on grass.
                    Yes i have tried it out with the Kite-Demo-Grass but without success...

                    Is it possible that someone can give me a small Content with this Grass-Bending-Effect inside, PLEASE?

                    Kind regards,
                    halobungie

                    Comment


                      #11
                      Originally posted by Sitrec View Post
                      That sounds awesome (the grass staying down part). How does that work and could it be replicated in multiplayer?
                      As much as I wish I did, I didn't make a backup of that iteration. It's not that far off, I just forget exactly what I did for that specifically.

                      I don't see why it wouldn't work in multiplayer, unless distance fields have a culling limitation I'm unaware of.
                      Last edited by Zero-Night; 11-26-2015, 07:48 AM.

                      Comment


                        #12
                        Very interesting

                        How would the staying down part work in theory? I mean when the object moves then the distance field approximation is not there anymore .

                        4.10 Update! -> [Community Project] WIP Weather & Ocean Water Shader
                        WIP Interactive Water Shader, WIP 2D Water Sim
                        WIP FFT Ocean w/ Foam, Quad-tree Infinite Ocean LOD

                        Comment


                          #13
                          Originally posted by Daniel.Wenograd View Post
                          As much as I wish I did, I didn't make a backup of that iteration. It's not that far off, I just forget exactly what I did for that specifically.

                          I don't see why it wouldn't work in multiplayer, unless distance fields have a culling limitation I'm unaware of.
                          Very interested in this. I have no idea how it could be done but if you end up remembering how you did it I would love to hear about it.

                          Comment


                            #14
                            Works fantastically! I had to place a transparent mesh attached to my character mesh since it isn't large enough to make a noticeable movement, but everything else has worked out perfectly! Thank you so much for sharing!!

                            Comment


                              #15
                              Originally posted by halobungie View Post
                              Hello n00854180t,
                              i get no such Effect - I have change the Strenght to 6000 but there is no such Effect. Have i to do something else to get this Effect?
                              Kind regards,
                              halobungie
                              Make sure you have distance field AO enabled, following the instructions below.

                              Click image for larger version

Name:	image.png
Views:	1
Size:	154.9 KB
ID:	1094042

                              Comment

                              Working...
                              X