Cuberite Forum
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 - 03-18-2013

yea lakesBig Grin can't wait Smile


RE: Some semi-random thoughts on terrain generation - xoft - 03-19-2013

It's taking a bit longer than anticipated, because the underlying framework isn't working properlyTongue
cChunkDesc's blockarea writing was buggy, is only basic, there's no merging, ...

I'm also unhappy about cChunkDesc and cBlockArea having a lot of similar code, but being unable to share it between them. I was considering making the cChunkDesc actually a direct descendant of cBlockArea. This would have the advantage of having all cBlockArea functions accessible in cChunkDesc, thus only one implementation of merging. But there's also the disadvantage of exporting some functions that should stay internal, such as the cBlockArea::Create() function, that should definitely not be accessible from cChunkDesc. Even if I managed to hide it in C++, ToLua would probably export it anyway.
Another approach would be to encapsulate the cBlockArea as a member of cChunkDesc, with cChunkDesc's functions being only wrappers calling the cBlockArea's functions. This could work better, but needs a wrapper function for everything.


RE: Some semi-random thoughts on terrain generation - xoft - 03-19-2013

It seems my lakes are working, but there's a slight problem with them combining with the BottomLava finisher. A lake may generate under the lava level, which means it will have water on the bottom, but then the BottomLava finisher fills the air above water with lava. Weird.

Oooh, and you definitely want to put Trees StructureGen *after* the Lakes. Otherwise the lakes are allowed to start in treetopsTongue

And there're way too many lakes, need to add a limiter.


RE: Some semi-random thoughts on terrain generation - xoft - 03-19-2013

Limiters done, height distribution fixed... I think the lakes are ready to be tested Smile so go grab rev 1288 and enjoy.


RE: Some semi-random thoughts on terrain generation - NiLSPACE - 03-20-2013

wow those lakes are awsome. i found a lake that was making a waterfall into another lakeBig Grin


RE: Some semi-random thoughts on terrain generation - xoft - 03-20-2013

Did you also notice any generator speedup in re 1289? I'm particularly proud of that one, it gave me 25 % more chunks per second.

Even better news is, while implementing the lakes I opened up the possibility to easily merge BlockAreas into ChunkDesc, so we can have plugins that enhance the generated world by content that has been prepared, such as from .schematic files.


RE: Some semi-random thoughts on terrain generation - NiLSPACE - 03-20-2013

yes i normaly have about 90-100 chunks but now i had 125 Wink


RE: Some semi-random thoughts on terrain generation - bearbin - 03-20-2013

Awesome Smile 25% speedup should be much better for people with low end servers (like raspis or android).


RE: Some semi-random thoughts on terrain generation - xoft - 03-20-2013

I just checked with my RasPi (stock configuration), it generates 7.9 chunks per second, and about 10 chunks per second get lit. Not much, but should be barely usable.


RE: Some semi-random thoughts on terrain generation - ThuGie - 03-20-2013

Wouldnt it be possibly for raspi to set a larger range of chunks to be generated @ first boot.
After that it should run smooth right ? as if i recall you can already set max generation level.
Set it to load all on boot. might take a bit. but after that all hard work is done right ?