# flood simulation

**URL:** <https://community.cesium.com/t/flood-simulation/9039>\
**Category:** CesiumJS\
**Created:** [January 30, 2020, 11:05pm UTC](https://community.cesium.com/t/flood-simulation/9039 "2020-01-30T23:05:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fethi\_Ben\_chaabane](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/fethi_ben_chaabane/32/2029_2.png) [@fethi\_Ben\_chaabane](https://community.cesium.com/u/fethi_Ben_chaabane)\
**Post date:** [January 30, 2020, 11:05pm UTC](https://community.cesium.com/t/flood-simulation/9039/1 "2020-01-30T23:05:21Z")

</div>

**Hi, is there a way to render elevation data for water so it seems like flood simulation?**

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [February 3, 2020, 9:19pm UTC](https://community.cesium.com/t/flood-simulation/9039/2 "2020-02-03T21:19:35Z")

</div>

I think the easiest way to do this would be to define a semi-translucent polygon as your water level and move that to the desired height.

There’s an example for programmatically creating a polygon here: [https://sandcastle.cesium.com/index.html?src=Polygon.html](https://sandcastle.cesium.com/index.html?src=Polygon.html)

Note that you might need to disable the logarithmic depth buffer if your water polygon covers a large area, see: [https://github.com/AnalyticalGraphicsInc/cesium/issues/6573](https://github.com/AnalyticalGraphicsInc/cesium/issues/6573)
