I’ve set up a material that uses distance fields to fake interaction when the character walks through it - based on this - (the blueprint has an invisible cylinder that generates the DF, since skeletal meshes don’t).
So far it’s kinda working, stuff is moving, as you can see here:
**Without it: **
http://i.imgur.com/0rf4q0O.gif
With it:
http://i.imgur.com/TqcideU.gif
Here is my material setup:
http://i.imgur.com/bcFn8cC.png
The issue, as you may have noticed, is that ALL the grass is affected and deformed, even just on a flat floor and not near a moving mesh, as you can see here (grass is placeholder and ugly, but you can notice the unwanted effect):
http://i.imgur.com/eCL6bDB.gif
As you can see the whole mesh is just kinda offset, twisted and bent in funky, uneven ways.
My theory: They’re being affected by the floor ? (it’s a landscape) Or maybe they’re even affecting each other ?
I have a no idea where to start fixing this, so I was hoping you guys would have an idea
I actually tried that, to no avail, the results remain messed up.
What I find to “fix” the problem was setting the scale range of the grass strictly over 1. If i set the scale range below 1, the grass will get messed up.
“fix” is between quotes because I’d like to be able to set the range below 1, so this is only a temporary fix.
Just going to say, I don’t mind people using my work, it’s why I posted it, but the least you could do is credit me instead of saying you made the material yourself.
In any case, glad you got it working! This was done a long time ago before a LOT of changes to distance fields, I’m surprised it’s still useful.
You may also want to play around with how wide the radius is. I never quite got it to a good universal setting, you may need to configure it a bit to get it looking right and not have the illusion of a phantom force around it.
Hey ! I fiddled with this for so long and tried so many things that I lost track of what I took from where. But you’re right it’s definitely based on your post, so all credits goes to you. (edited the first post)