# Water doesn't work?

**URL:** <https://community.cesium.com/t/water-doesnt-work/16534>\
**Category:** Cesium for Unreal\
**Created:** [December 14, 2021, 4:00pm UTC](https://community.cesium.com/t/water-doesnt-work/16534 "2021-12-14T16:00:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lehuan5062](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/lehuan5062/32/3476_2.png) [@lehuan5062](https://community.cesium.com/u/lehuan5062)\
**Post date:** [December 14, 2021, 4:00pm UTC](https://community.cesium.com/t/water-doesnt-work/16534/1 "2021-12-14T16:00:37Z")

</div>

Hello,  
I’m working on a UE4 rowing game which takes place in lakes, rivers… Currently working on the lake called Rotsee.

I tried to enable the water mask but it doesn’t render the lake as water.

 ![image](https://global.discourse-cdn.com/cesium/original/2X/c/ccacf44695745a3a66f0974bdbed5c466971aa7c.jpeg)

Is there any other to way which I can add animated water to the lake?

---

<div class="post-metadata">

**Author:** ![agallegos](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/agallegos/32/4464_2.png) [@agallegos](https://community.cesium.com/u/agallegos)\
**Post date:** [December 15, 2021, 7:59pm UTC](https://community.cesium.com/t/water-doesnt-work/16534/2 "2021-12-15T19:59:52Z")

</div>

Hello @lehuan5062,

The water mask on Cesium World Terrain doesn’t cover all water bodies on the planet. Fortunately, due to recent material changes you can define custom areas of water with a [Cesium Cartographic Polygon](https://community.cesium.com/t/cesium-cartographic-polygon/15128/2).

You ask at a convenient time, I’m currently working on an addition to the Cesium for Unreal Samples that includes a material that does this automatically. If you don’t want to make your own material, you can download this premade material by cloning [this branch](https://github.com/CesiumGS/cesium-unreal-samples/tree/add-new1.8-levels) of the Cesium for Unreal Samples repository. You’ll want to copy the MI\_CesiumCustomWater material and all of it’s dependencies in to your own project folder.

Then, add a Cesium Polygon Raster Overlay to Cesium World Terrain. Set the layer key to CustomWater, and uncheck “exclude tiles inside”. Add the material on to Cesium World Terrain in the Cesium|Rendering category of the details panel.

The Cesium for Unreal Samples update should be published on the Unreal Marketplace around the start of the new year. I’m also working on a tutorial to cover all of this more in-depth.

Let me know if you have further questions.

-Alex

---

<div class="post-metadata">

**Author:** ![lehuan5062](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/lehuan5062/32/3476_2.png) [@lehuan5062](https://community.cesium.com/u/lehuan5062)\
**Post date:** [December 16, 2021, 3:28am UTC](https://community.cesium.com/t/water-doesnt-work/16534/3 "2021-12-16T03:28:07Z")

</div>

Thanks! I’ve successfully marked the area.  
Is it possible to turn the marked area into a water body of the UE built-in water plugin?

---

<div class="post-metadata">

**Author:** ![agallegos](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/agallegos/32/4464_2.png) [@agallegos](https://community.cesium.com/u/agallegos)\
**Post date:** [December 17, 2021, 3:32pm UTC](https://community.cesium.com/t/water-doesnt-work/16534/4 "2021-12-17T15:32:23Z")

</div>

Hi @lehuan5062,

What I’d recommend for that is to clip out the imagery entirely as described in the post I linked. Then, you can add a WaterBodyCustom from the water plugin and scale it to fit the area. If you wish, you can also fit a landscape underneath the tileset to form the lake or riverbed.

---

<div class="post-metadata">

**Author:** ![RndrSamurai](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/rndrsamurai/32/3476_2.png) [@RndrSamurai](https://community.cesium.com/u/RndrSamurai)\
**Post date:** [September 8, 2022, 11:49pm UTC](https://community.cesium.com/t/water-doesnt-work/16534/5 "2022-09-08T23:49:23Z")

</div>

> [@agallegos](#):
>
> Set the layer key to CustomWater,

Hi, I’m trying to create the water layer to cover the oceans, activating water layer but it seems not working, do you can a more extensive information to follow?

---

<div class="post-metadata">

**Author:** ![L\_N](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/l_n/32/16048_2.png) [@L\_N](https://community.cesium.com/u/L_N)\
**Post date:** [February 8, 2024, 10:11am UTC](https://community.cesium.com/t/water-doesnt-work/16534/6 "2024-02-08T10:11:31Z")

</div>

Do you know how to change the direction of the spline in Unreal? I have created a river with the WaterBody River module, but the river is now flowing in the opposite direction, so I would have to change the flow direction.

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [February 14, 2024, 10:17pm UTC](https://community.cesium.com/t/water-doesnt-work/16534/7 "2024-02-14T22:17:15Z")

</div>

I don’t know, but I googled it and found this:  
[https://www.reddit.com/r/unrealengine/comments/wcv7j9/invert\_spline/](https://www.reddit.com/r/unrealengine/comments/wcv7j9/invert_spline/)

There’s a link to some Blueprint code to reverse a spline in there.
