# Water - rivers - Heightmap

**URL:** <https://forums.unrealengine.com/t/water-rivers-heightmap/1176777>\
**Category:** World Creation\
**Tags:** Water, flow-control, unreal-engine, please-help-me, UE5, question\
**Created:** [May 24, 2023, 8:09am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777 "2023-05-24T08:09:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RLK\_III](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rlk_iii/32/706835_2.png) [@RLK\_III](https://forums.unrealengine.com/u/RLK_III)\
**Post date:** [May 24, 2023, 8:09am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777/1 "2023-05-24T08:09:35Z")

</div>

Hello all. I’m hoping there’s a genius or three out there.

After struggling with UE’s broken water system I finally bit the bullet and purchased a water system (WaterlinePRO). It’s great, but I only found out AFTER purchase that it has no current coding to serve as a river. Lakes and oceans, yes, but rivers… nope.

Undaunted (and refusing to tell my wife I spent $100 on something that doesn’t fit my needs LOL) I have been trying to make it work. It has TONS of customization when it comes to the water color and effects, and as you can see here it looks pretty good.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/6/6c6819ff0602ee15c8eed84f2d0c98d5268d8fba.jpeg)

Except for where it doesn’t…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/6/c565c1ccf40929c5cdb0b555c634b49b752121c2.jpeg)

It doesn’t slope. It works on a flat plane only. I would LOVE to get it to work with splines but I am not experienced enough with UE to even fathom if this is possible. I would imagine it is, as I have seen splines used for a multitude of things, but moving rivers?

I reached out to the creator of the program and although he has assured me that there is no immediate plans on a river function but do hope to have them in the future (X\_X) I may be able to “get something river like by modifying the infinite watersim actor’s water surface material in order to have flowmaps, but those will need to be made externally as well.”

This is gobbldygook to me. Is there an adult to help me with this?

Cheers in advance!

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 24, 2023, 9:02am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777/2 "2023-05-24T09:02:34Z")

</div>

Hey there @RLK_III! Here’s a resource on flowmaps and applying them in Unreal! Hopefully the wife will be proud when she hears you’re not only adept at level design but also VFX and tech art! Which by the end of this journey, you very well may be. Combining the flowmaps for the material and making the master actor a spline based setup, you can likely adapt what they have to your needs!

**Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.**

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/5/da5b42fc93aec19b343a859aea527de464d69bfd.jpeg "Water Flow Maps - UE4 Materials 101 - Episode 29") ](https://www.youtube.com/watch?v=9N-pQNPChxU)

---

<div class="post-metadata">

**Author:** ![RLK\_III](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rlk_iii/32/706835_2.png) [@RLK\_III](https://forums.unrealengine.com/u/RLK_III)\
**Post date:** [May 24, 2023, 11:30am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777/3 "2023-05-24T11:30:34Z")

</div>

Thanks mate! I’ll check it out :3

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 25, 2023, 3:19am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777/4 "2023-05-25T03:19:48Z")

</div>

No worries! Let me know if it works out! Also here’s some resources on making the spline/mesh portion of the river if you wanted to use landscape splines (which may still be susceptible to the height issue but that is yet untested) or if you wanted to make them via custom splines you could do that instead! It would have a bit more effort and custom sculpting though.

**Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.**

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/3/9f3340e49155340c84ecd3f0981af6572ba5762f.jpeg "Spline Tool - Unreal Engine 5 Environment Tutorial") ](https://www.youtube.com/watch?v=1TXBofBjAiM)

---

<div class="post-metadata">

**Author:** ![RLK\_III](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rlk_iii/32/706835_2.png) [@RLK\_III](https://forums.unrealengine.com/u/RLK_III)\
**Post date:** [May 26, 2023, 6:31am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777/5 "2023-05-26T06:31:16Z")

</div>

Thanks for that too!

Side question - is there any way to cool down the shaders on water?

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/4/844f1516c052e7dcfd27e9de1714dce53691e1c4.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/f/52f47e1788b1d263da8101e6d9ec576fa1cee5f1.png)

I’m running VTs (hence why my landscape is in the green) but not affecting the water.

Alternatively, do I get it where I want it then turn it all off so it’s not sucking up memory as once packaged it _should_ be fine?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 26, 2023, 7:32am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777/6 "2023-05-26T07:32:06Z")

</div>

Depends on how that plugin handles it’s materials really, if it’s got a bunch of logic for fluid sim, you can cut it completely out of the material unless you intend to use it. Flow maps aren’t extremely expensive, but they do bump complexity a bit.

Yes once you get everything how you’d like it, you can disable it in the viewport as not to deal with it while working on the rest, but I would recommend a test build and stress test with some gameplay before continuing just to see where the baseline performance is at.

---

<div class="post-metadata">

**Author:** ![RLK\_III](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rlk_iii/32/706835_2.png) [@RLK\_III](https://forums.unrealengine.com/u/RLK_III)\
**Post date:** [May 27, 2023, 8:26am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777/7 "2023-05-27T08:26:11Z")

</div>

Thanks for this. I have a LOT of research to do LOL

Side question: do you know what this weird fog is and how to get rid of it? It’s not the heightfog…

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/0/af0b6eeaa69140b0ef4fc0d7502590a50c4313af.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/0/af0b6eeaa69140b0ef4fc0d7502590a50c4313af.mp4)

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 28, 2023, 12:45am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777/8 "2023-05-28T00:45:43Z")

</div>

I wouldn’t worry too much about shader complexity unless you’re getting bottlenecked graphically. Shader complexity is measured a bit deceptively, in that you can have it glowing in the high complexity area with a ton of adds that cost very little, or you could have a couple of square root and sine operations and it will be nice and green on the complexity chart, but cost effectively more cycles.

Here’s an old chart with relative cycle costs

```auto
Shader function cycles costs
abs 0
acos 52+ *
Add 4
all 16
any 12
asin 52+ --
atan 60+ *
atan2 64+ *
ceil 4
clamp 8
clip 0
cos 20 *
cosh 40 --
cross 20
ddx 16+
ddy 16+
degrees 4
distance 8
dot 4
exp 20
exp2 16
floor 4
fmod 24
frac 4
fwidth 20+
isfinite 0
isinf 12
isnan 0
ldexp 4
length 16+ *
lerp 4+
log 12
log2 8
log10 12
max 4
min 4
mul 4
pow 28
radians 4
reflect 4
refract
round 4
rsqrt 16 *
saturate 0-4
sign 12+
sin 20 *
sinh 44 --
smoothstep 20+
sqrt 16 *
step 16
tan 56 --
tanh 64 --

```

As for your fog issue, it looks like volumetric fog is applying or some form of post processing, but you’d already checked both. So it’s possible it could be some function of your lighting or scatter. How does it look from a player perspective? Does it disappear when dropping to medium scalability?

---

<div class="post-metadata">

**Author:** ![RLK\_III](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rlk_iii/32/706835_2.png) [@RLK\_III](https://forums.unrealengine.com/u/RLK_III)\
**Post date:** [May 28, 2023, 3:18am UTC](https://forums.unrealengine.com/t/water-rivers-heightmap/1176777/9 "2023-05-28T03:18:01Z")

</div>

Hmmm. No. However, it DOES disappear when I remove the sky atmosphere.

Well, at leave I’ve narrowed it down… now to try and figure it out LOL

As always, thanks.
