Some semi-random thoughts on terrain generation - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Some semi-random thoughts on terrain generation (/thread-409.html) |
RE: Some semi-random thoughts on terrain generation - NiLSPACE - 04-11-2012 nice trees xD RE: Some semi-random thoughts on terrain generation - xoft - 04-11-2012 on-a-stiiick RE: Some semi-random thoughts on terrain generation - xoft - 04-12-2012 I've fixed the trees getting chopped at chunk borders, now they are generated nicely and all it needs is a few tree images / algorithms. I committed the current status into the /branches/composable_generator svn branch, so if you want to play with it... Beware, though - the chunk generation is kinda slow, I'd say about half the speed of the previous one. Also you need to configure your world.ini properly, here's a quick cheatsheet from my notes: Code: [Generator] section: RE: Some semi-random thoughts on terrain generation - NiLSPACE - 04-12-2012 nice there is no download RE: Some semi-random thoughts on terrain generation - xoft - 04-12-2012 You need to build from sources, because it is on a separate development branch. The nightbuilds are done only from the main trunk. RE: Some semi-random thoughts on terrain generation - NiLSPACE - 04-12-2012 (04-12-2012, 04:55 AM)xoft Wrote: I've fixed the trees getting chopped at chunk borders, now they are generated nicely and all it needs is a few tree images / algorithms. i see allot biome in this poste is it already inplented?? RE: Some semi-random thoughts on terrain generation - xoft - 04-13-2012 Things that are marked with an asterisk are implemented. So biome generators available are Constant (same biome everywhere) and Checkerboard (squares of biomes). First I want to implement more or less what the server had before, move it into the new architecture (and improve on it). Only then will I start doing new stuff, when I see that the new architecture is good enough. I'm almost there already - just need to finish Trees and add SprinkleFoliage, MarbleCaves and some ores. I already see some advantages and some disadvantages to the new architecture: + Many different types of terrain can be achieved by combining different parts of the generators together + Implementing a new generator is a bit easier, since the generators are highly specialized + The chunks are generated complete at once (unlike in the old architecture, where trees were added after a delay, which caused clients not to see them in newly generated terrain) + Lighting can be generated along with the new chunks, rather easily - The generation is a bit slower - Some parts get calculated several times over and over (e. g. generating trees makes the neighboring chunks' biomes and height array get calculated over and over, up to 9 times per chunk). A cache might improve speed, but eat up even more memory. RE: Some semi-random thoughts on terrain generation - NiLSPACE - 04-13-2012 Nice RE: Some semi-random thoughts on terrain generation - xoft - 04-15-2012 Since you seem to want it so badly, I've built and uploaded an Exe of this branch, rev 462. You can download it at the regular nightbuild address, in the composable_generator folder. Don't forget that you'll need to modify your world.ini; I've included a sample one there as well. This build is purely manual and I don't plan on making it regular. The generator is more or less stable - it doesn't eat up gigabytes of memory and actually is almost as fast as the older one. I think there are some lighting problems there, not sure yet - lighting will be rewritten after the generator is finalized, anyway. Note that for an existing world, there will be artefacts on old/new chunk boundaries. Especially the trees won't fit together; I think the terrain height is off by one (won't bother fixing, don't ask for it) On the other hand, you can use the /regeneratechunk command to re-generate any chunk, even in the old world (but this will produce a new-world-style chunk) RE: Some semi-random thoughts on terrain generation - NiLSPACE - 04-15-2012 great I already love it |