Hoimar / Planet-Generator

A procedural planet generator addon for Godot with terrain LOD.
Other
196 stars 23 forks source link

Correctly calculate TerrainFace seams #4

Closed Hoimar closed 3 years ago

Hoimar commented 3 years ago

Currently when TerrainFace meshes meet, they only match up when they have the same resolution, as the same noise value will be sampled for all vertices in the same position. When different LOD levels meet however, between two vertices in the coarser mesh there will be an extra vertice in the finer mesh (see screenshot) which samples a different value.

The first solution I'll try is to use the median between the left and right vertice for every odd edge vertice in the finer mesh to align to the coarse mesh. This way I won't have to deal with creating additional geometry and/or stitching the meshes (for now at least, will see how this works out).

grafik