Search Unity

Missing Game Name - Procedural World Generation

Discussion in 'Works In Progress - Archive' started by ZhoGames, Jun 9, 2012.

  1. ZhoGames

    ZhoGames

    Joined:
    Jun 9, 2012
    Posts:
    5
    Hey there,

    I'm currently working on the World generation for my Upcomming game.

    Here are the currently steps:

    1. Get a height map everything below is a stone.
    2. Layer based placing of stone iron etc ( the deeper the more better stuff to find)
    3. Get random places for caves (Just 1 block there)
    4. Let the cave expand itself (A*star like algorythmus)
    5. Let random water spawn
    6. Expand the water (flow comes first ingame)

    Edit: Oh forgot to tell 1 pixel = 1 ingame block.

    Latest work was my cave algo:

    He starts like a normal grow / A'star he has a Starting point and a number how often he can expand.

    Then he starts to weight every field arround him a random number between 0 and 10 - (the number of allready fields of cave arround). So its more likely it expands itself into itself but can be randomly expand away.


    Update 14.06:


    Worked on the Unity render part. Here we go Increased the number of Chunks to render for the screenshot I will need less less less Chunks visible in the actual Game see Screenshot 2 for Gameview. It uses blocks from Tidy Tile Maper as I love there blocks but the code is my own, its better for runtime Changes what I hardly hardly need.






    Update 11.06:


    Changed the Iron (Gold) Stone (Black) algo to make them more like a big bad stone instead of single blocks.




    Old:


    A current made world:


    A zoomed version of the first layer:

    Black = Stone.
    Blue = Water.
    White = Air.
    Yellow = Iron.
    Brown = Dirt.

    Iron and stone are currently random and only 1 block each time but they get a similar algo as my caves later.




    Some bigger caves in a lower Layer:

    The water flows only ingame not while world creation.



    Any cool and fancy ideas?

    Greetings
     
    Last edited: Jun 14, 2012
  2. Dreeka

    Dreeka

    Joined:
    Jul 15, 2010
    Posts:
    507
    Looks cool!
    Maybe you should add sturctures like ruins, mines, and so on.
    Also, surface vegetation would be nice.
     
  3. ZhoGames

    ZhoGames

    Joined:
    Jun 9, 2012
    Posts:
    5
    New Picture :). Tell me if you like it more then the old version. Next are dungeons (Not random like caves rather clean rooms with connections)

    And then it's surface time!
     
  4. ZhoGames

    ZhoGames

    Joined:
    Jun 9, 2012
    Posts:
    5
    Updated some in Unity Screenshots :).
     
unityunity