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 - xoft - 05-13-2013

Well then, make a patch out of it and let me see; if it's okay, you can then commit it to svn.


RE: Some semi-random thoughts on terrain generation - NiLSPACE - 05-13-2013

Well the only thing is that there is no sandstone under the sand in deserts/beaches.


RE: Some semi-random thoughts on terrain generation - xoft - 05-13-2013

Okay, your patch had a nasty bug that it could try to set blocks at Y < 0; you'd have probably found out about it if you ran the code in Debug.
I massaged the patch a bit, added sandstone below sand, here's the patch back, update to latest svn revision and then apply the patch, so that you can commit it Smile


RE: Some semi-random thoughts on terrain generation - NiLSPACE - 05-13-2013

If you want then you can commit it becouse i keep getting the message that the file is outdated even though i updated it.


RE: Some semi-random thoughts on terrain generation - xoft - 05-13-2013

It probably conflicted, because I committed another few changes in that same file in the meantime. Alright, I'll commit it it, with attribution Smile
To fix your sources, delete the file altogether and then do a svn update, it will restore the file.


RE: Some semi-random thoughts on terrain generation - NiLSPACE - 05-15-2013

its realy funny to see what you get if you use a heightmap with a different compositiongen. For example if you use Noise3D heightmap with the DistortedHeightmap compositiongen you get sudden holes in the ground Wink


RE: Some semi-random thoughts on terrain generation - xoft - 05-15-2013

I'd also expect that you'll get a lot of cut-up trees. But then, what do I know, never actually tried Wink


RE: Some semi-random thoughts on terrain generation - NiLSPACE - 05-15-2013

(05-15-2013, 02:13 AM)xoft Wrote: I'd also expect that you'll get a lot of cut-up trees. But then, what do I know, never actually tried Wink

I didn't see any, i did see allot of lakes generated on the surface though Wink


RE: Some semi-random thoughts on terrain generation - xoft - 05-15-2013

Lakes do use only the height generator to determine where to generate. For the same reason, it's possible for lakes to generate mid-air under an overhang. I knew there was something that would go wrong Wink


RE: Some semi-random thoughts on terrain generation - xoft - 06-17-2013

I found a new hobby in Vanilla - I place glass on the patches of sand on the ocean floor and then dig out the sand (to produce more glass). Makes a great underwater dome, or rather, a maze.

Related to this, I found out that MCServer's ocean floor is not flat enough for my hobby. There are just too many hills. This brought my attention to the base height generator. It uses the same amplitude everywhere, resulting in somewhat dull heightmap. What we need is variance - places with higher amplitude, so it generates some hills, and places with low amplitude, generating almost a plain.

The easiest way to do it would be to multiply the Perlin noise we're currently using as the heightmap generator with another very-low-frequency noise. The very-low-frequency noise will attenuate the amplitude of the entire noise.
An alternate version would be to the Perlin nose - take out the middle octave, generate it separately, multiply it with a low-frequency noise and then add it up to the Perlin noise. This might preserve at least some of the characteristics of the biome.

Not sure which is better, I guess I'll have to try both out to see.