Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

Still lines in terrain between chunks #171

Closed snipercup closed 3 months ago

snipercup commented 4 months ago

Tried to fix the lines in #156 and it works for the most part, but there are still lines showing up between chunks.

This is a tricky one because you could eliminate all faces at the edge of a chunk, but then you need to assume that wherever the chunk is placed, all blocks on all edges will be set against another block in another chunk.

In a perfect solution you would know what is on every side of a block, even if the other blocks are not on the same chunk. It should be possible, because when a chunk is instanced, the levelgenerator already has the name and rotation of the neighbor chunk. It will be more difficult with random generation within chunks though.