My Plane mesh glitches a lot well with my Terrain object

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By byjove

Hell.

I’m using Zylann’s terrain add-on to generate terrains in-game based on real world regions. The generation is for now going pretty well, but I have met a big issue with the plane I wanted to use as an “ocean” mesh : it just glitches as hell when I zoom out or zoom in from the map, in the editor.

Indeed the issue apparently disappears when I launch the game ; but I’d like if possible to be able to play with the scene without having my eyes melting because of this glitch.
The mesh material not related since the issue is still here.

Here’s a video on the thing: https://streamable.com/z2259k

Thanks in advance.

:bust_in_silhouette: Reply From: umma

The plane’s y axis is the same as the terrain. Try changing the plane’s y axis value to something small like, 0.1.

I can guarantee you it’s not. My water is located at +40 in Y position, my terrain is at 0 (and the engine forces it to stay here).

byjove | 2022-06-07 05:20

:bust_in_silhouette: Reply From: byjove

Still waiting for the correct answer…

:bust_in_silhouette: Reply From: omggomb

This does look like z-Fighting though. Are you using a CSGShape node for the ocean? Try disabling gizmos (CSG in particular) in the 3D “View” options.