Some semi-random thoughts on terrain generation
#33
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: BiomeGen={Constant|Checkerboard|DistortedVoronoi}; default=DistortedVoronoi HeightGen={Flat|Classic}; default=Classic CompositionGen={SameBlock|DebugBiomes|Classic}; default=Classic Structures=<comma-separated list of structure generators>; default=Trees,MarbleCaves,SprinkleFoliage BiomeGen=Constant: * ConstantBiome=<biomenumber>; default=1 (plains) BiomeGen=Checkerboard: * CheckerboardBiomeSize=<size of the checkerboard cell, in blocks>; default=64 BiomeGen=DistortedVoronoi: -- TODO HeightGen=Flat: * FlatHeight=<height>; default=5 HeightGen=Classic: * ClassicHeightFreq1=<frequency float>; default=0.1 ClassicHeightFreq2=<frequency float>; default=1.0 ClassicHeightFreq3=<frequency float>; default=2.0 ClassicHeightAmp1=<amp float>; default=1.0 ClassicHeightAmp2=<amp float>; default=0.5 ClassicHeightAmp3=<amp float>; default=0.5 CompositionGen=SameBlock: * SameBlockType=<block-id number or string>; default=stone SameBlockBedrocked={0|1} CompositionGen=DebugBiomes: * -- no parameters CompositionGen=Classic: * ClassicSeaLevel=<sea-level in blocks>; default=60 ClassicBeachHeight=<beach height above sealevel>; default=2 ClassicBeachDepth=<beach depth under sealevel>; default=4 Structures:Trees * -- no parameters Structures:SprinkleFoliage -- no parameters
Some of this may be wrong, since some of the features are not yet implemented. Experiment Smile
Reply
Thanks given by:


Messages In This Thread
RE: Some semi-random thoughts on terrain generation - by xoft - 04-12-2012, 04:55 AM



Users browsing this thread: 9 Guest(s)