Python Forum
creating terrain without noise or seed? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: creating terrain without noise or seed? (/thread-1755.html)



creating terrain without noise or seed? - hsunteik - Jan-24-2017

i have learned many terrain generation algorithm,but i cant wrap head around even one of them.
i dont use perlin noise,simplex noise because the gradient interpolation/lerp part of the algorithm is a bit too hard for me.
is there a easier 3d terrain generation (more or less like voronoi diagram generation algorithm,but a bit easier)but does not require seed/noise and gradient interpolation?
i have actually already created my own algorithm for terrain generation,but i dont think mine can generate mountain (main problem),biome (can but harder)and may contain unintentional floating block.

pseudocode:
loop through y space
       loop through x space
              loop through z space
              if z is 0
                 draw bedrock at x y z
              if z is 1 to 16
                 generate random number from 0 to 10
                 if random number is 0 to 9
                 draw stone at x y z
                 if random number is 10
                 draw diamond ore at x y z
              if z is ....
                  blabla
i can generate tunnel too by first choosing a random spot in a world and work it's way from there using more or less the same algorithm than the above. Doh Think Pray


RE: creating terrain without noise or seed? - ichabod801 - Jan-24-2017

The Diamond-Square algorithm is a simple way to generate a random terrain. You might do a web search on that.


RE: creating terrain without noise or seed? - hsunteik - Jan-25-2017

(Jan-24-2017, 10:31 PM)ichabod801 Wrote: The Diamond-Square algorithm is a simple way to generate a random terrain. You might do a web search on that.

Can it be used to generate 3d terrain like minecraft?
I don't think so.


RE: creating terrain without noise or seed? - ichabod801 - Jan-25-2017

(Jan-25-2017, 09:15 AM)hsunteik Wrote: Can it be used to generate 3d terrain like minecraft?
I don't think so.

If you don't think so, then I don't think you did a web search on it, and I don't think you read up on it.