rust-worldgen
rust-worldgen copied to clipboard
Generation seems to ignore chunk size
Generating via a world seems to ignore the noise map's size.
Example:
let map = NoiseMap::new(noise)
.set(Seed::of("Hello World!"))
.set(Step::of(0.2, 0.2))
.set(Size::of(4, 4));
let world = World::new(map)
.set(Size::of(64, 64));
world.generate(0, 0) // expect 4x4 chunk
Hi there, thanks for the report, and apologies for being slow getting back to this!
When generating a world, the Size property is the size of each chunk that is generated, and this will take precedence over the Size on any NoiseMap - the NoiseMap Size is only ever relevant if you were to use that NoiseMap on its own. I thought this was documented, but I checked and clearly had not, so I'll update that in the near future.
(Unrelatedly, I'll also push an update to the latest rust vesrion, as this has been pretty untouched for a while and could do with some freshening up)