|
Post by ldicesare on Nov 30, 2019 8:13:17 GMT
Hello. I'm trying to save my chunks and reload them to look identical after reload (I know I could set the seed too, but I want to speed up generation and be able to manually edit the textures). My problem is that the chunks are not welded correctly together on reload. I save the height of my chunks and reload it (saved as png to avoid compression data loss). I found out that welding after loading caused some problems (if I have 2 adjacent white heights, they are ok with no welding, but a trench appears if I weldChunk() them). Still, I don't understand what's going wrong. I have some artefacts on the borders of my map and between chunks. Did anyone do something similar (saving height texture and reloading) and have similar issues?
|
|
|
Post by eve on Jun 27, 2020 9:26:05 GMT
do u have any progress
|
|
|
Post by khash on Jun 27, 2020 11:11:54 GMT
I was overwriting border 4x4 pixel squares to achieve proper connection. Imagine that this represent 16 pixels (4x4) area, one for each of two connecting textures 0123 | 3210 4567 | 7654 89AB | BA98 CDEF | FEDC because texture compression takes blocks of 4x4 pixels and compresses them it have to have exactly the same number of each color to compress it identically, but you want to have border results to be connected which is why you need to flip the square. Hope this helps
|
|