Water on cesium

Hey guys,

So been using cesium these latest weeks and I read on documentation it has water enabled mask ? I tried to tick that option but didn’t get water like in the samples.It might because it’s not avail for all places.

So now I’m having trouble working with the tile water since it’s not moving and if I just place a plane on unreal with HLOD water epic water on it , it will just make brutal transition between water and cesium tiles ,looks like it was cut.

I followed several tutorials for depth fade to make it work but it does not work very good cause the terrain isn’t very straight either. So I have checked this title : Editing Tileset Materials – Cesium

not sure it would work per tile only and how could I select only water ? should I use a polygon overlay ?

The goal is that I can get nice water material with the depth fade working correctly to get good shorelines .

thanks for any help

1 Like

Hi @Amira_Chaghal, which tileset are you using? Cesium World Terrain has a water mask, but other tilesets (notably Google Photorealistic 3D Tiles) do not.

If you need to add a water effect to a tileset that doesn’t have a water mask, there’s unfortunately no easy solution. You need to supply your own mask, probably as a raster overlay, and then also use a custom material to render your water effect in the masked area.

1 Like

Hey Kevin

indeed I switched to cesium world terrain and while enabling that water mask it worked but it has this tiling edge issue , which I also found in the samples, although water looks great it’s actually ahving the same issue as not being good transition since we see the jagged tiles edges .

No problem I will keep on the google tiles because they have height also , and just deal with that water plane I put , I guess it can’t be always perfect :slight_smile:

Yeah the Cesium World Terrain water mask only has so much resolution (and it varies depending on where you are in the world), so jagged artifacts like that are possible and there’s no straightforward solution to it.

If you can achieve acceptable results with a water plane, that’s a great solution!