The stitching works wonderfully. The surface appears as if it were a single mesh. Even with fast movements I see nothing at the edges. The surface looks just strange when I have different normal vectors because of the different sized chunks. Therefore, I have to calculate the normal vectors from the wave function myself, which glides smoothly over all chunks.
I can specify the minimum size of a chunk by parameter and also the resolution. So you can influence the quadtrees with only two parameters. Here I have a resolution of 48, that means 48 x 48 squares in one chunk. I just applied the minimum chunk size at 24.
From orbit:
Close to surface:
Although my waves are just a primitive perlin noise, when I look at them, they are almost hypnotic.
Back to minimum chunksize of 24:
That means the quadtrees are subdivided as long as their edge lengths are greater than 24, in my case meters. So if I go so close that the quadtrees go to the limit, I have a 0.5 m area resolution. I could now also set the minimum size to 1000 and choose a large or small resolution. However, large areas with a high resolution are very computationally intensive. Large areas with a large resolution would then be as if the quadtree had been switched off and if one large mesh had been created. Conversely, a subdivision to 1 m with a high resolution of 256 also makes little sense. Although quadtrees are very challenging to program, their parameterization is fortunately very simple.
For the skirts I will add parameters to activate or deactivate them and to adjust their offset. I donāt need them as it looks so far, but having them and not needing them is better than needing them later and then not having them.
I hope I can create a repository next weekend. Even if I wonāt be finished by then, you would already have the geometry. But please forgive me if it would take me longer for the repository. Everything I program there is tailored to communicate with other modules in my code and I have to change a lot to make it to a simple repository. And simple is relative It is in the nature of quadtrees that they are somewhat complex
Youāve infected me with the ocean