River material with distance field flow maps - source blueprint for you!

Hello everyone, I’d like to share my attempt at merging all the things I’ve read about this material, mainly coming from this older thread https://forums.unrealengine.com/showthread.php?76183-Distance-Field-Flow-Map
I think the result is pretty good!

Result:

This is the blueprint (UE 4.12!) . I’ve put as many comments as possible to make it more comprehensible to everyone:
https://blueprintue.com/blueprint/2y3v8406/

This is the 4.13 version:
https://blueprintue.com/blueprint/umgp5qry/

For the less experienced: remember to set these properties:

NOTE: There is only 1 custom function that is needed to create a gradient to mask the borders. It’s called “Symmetric_Gradient”. Here it is:

NOTE#2: In the 4.12 version there are some nodes called “depth edges/without edges/with edges”. They are just “passthtrough” nodes used to better organise the graph, you can ignore them and connect their input to their output… sorry about the confusion.

You may notice I’ve tried to implement the vertex color override for the flowmap, but I’ve dropped this material it due to other work…

If you guys want to improve from this, I’ll be happy if you shared it with me! I’m still a noob! :slight_smile:

Cheers

Nice looking Material!

Oooh quite pretty!

I couldnt figure out the depth edges/without edged/at the edges as to what function they were but I learned a lot, thanks for posting this,

Does this not work with 4.13 or am i not clever enough to copy and paste a code?

Ah sorry for that, they are just “passthrough” nodes that don’t do anything. They are only for rerouting the nodes.

Indeed not. It’s 4.12, sorry :\

****… i was hoping that i am not clever enough… :smiley:

Could you fix it for 4.13?

Sure, here you go.
https://blueprintue.com/blueprint/umgp5qry/

Mind though that the site doesn’t render the 4.13 nodes correctly at the moment…
Still refer to the first post if you just want to visualize the nodes.

Cheers

Awesome. Will try it in a few hours. Thank you very much.

The code works and i could refer the missing nodes. But what kind of textures do i put in?

There are 3 normal maps (I used the same texture replicated but you can vary if you want) + 1 foam texture. You can just google “water normal map” and “foam texture” and you are good to go!

It works and looks awesome. You are great. Thank you again!

Rendering on blueprintue.com is fixed for 4.13 and 4.14