voxel / voxel-land

a terrain generator with grass, dirt, stone, and trees (addon for voxel-engine)
6 stars 2 forks source link

Load chunks across feature decoration #14

Open deathcap opened 10 years ago

deathcap commented 10 years ago

Chunk decoration does not load chunks:

screen shot 2014-05-27 at 8 57 50 pm

which results in truncated landform features:

screen shot 2014-05-27 at 8 57 59 pm

To fix this, decoration should load chunks as needed. Currently, they are applied with game.setBlock(), which doesn't load chunks (and it probably shouldn't, ref GH-5). After loading and decorating, the chunk should possibly be unloaded and saved (or maybe keep it loaded for some time in case it is needed soon after, then garbage collect it). This requires chunk persistence (https://github.com/maxogden/voxel-level?)