Hello everyone, this is my first post here, I am sorry if this is the wrong place.

I am attempting to create a spherical Terrain, like a planet, using quad Trees. I am not new to programming but don't have too much experience and I have run into 2 issues.

First I define a grid, all grids are 5 by 5 vertices. I then create a cube out of 6 grids. I then map the result to a sphere and this is the result.

So far so good. Now, I replace each grid with a quad tree, of which the leaf node has a pointer to a grid. I subdivide once on only one grid and draw only this child node. This results in the following, viewed from inside the sphere.

This is still correct, however I now run into this problem, which I did expect, but I cannot find information on how this is solved.

The above picture shows how the edges don't line up when different levels of detail are next to each other.

My other problem is simply finding a good way to quickly access the leaf Nodes of the quad tree. I have not really worked with tree structures, only linked lists etc. I would appreciate any advice or links to resources on these issues. I would also like to encourage discussion on other ways of generating similar effects as I find the whole realm of procedural generation very interesting.

Thanks for reading.