Procedural map generation fails for maps larger than 16x16km
Opened this issue · 2 comments
Insprill commented
We need a different approach to generating the height map, since a single texture can't be more than 16x16k pixels.
WhistleWiz commented
This only affects the map item?
We could simply, on larger sizes, average pixels.
So instead of doing it 1m = 1px, we'd average a 2x2 square into a single pixel. Bigger even, 4x4, etc.
Insprill commented
Yeah, it's only items. It depends on the terrain resolution as well, since that's what determines the texture size.
dv-mapify/MapifyEditor/Procedural/MapRenderer.cs
Lines 24 to 28 in 24dcdfd
That's a pretty bad way of doing it, and we should instead pack it into a 4k texture, then smooth the value on small maps and down sample it on larger ones.