Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Random City Generation Beginnings

Discussion in 'Made With Unity' started by enragedmrt, Sep 23, 2011.

  1. enragedmrt

    enragedmrt

    Joined:
    Oct 5, 2009
    Posts:
    95
    Hello everyone!

    It's been awhile since I posted something here (although my unseen presence hasn't wavered). Today I bring to you the start of a Map Generation tool I'm making for a game. Basically it uses hex tiles to create a map with TONS of roads (as you'll soon find out). Currently it's baked at max roads so it's WAY too congested, but I'll fix that soon.

    The idea is simply to bring random city generation to a game. Hopefully I can do that and add it to some small demo game.

    Anyways, here's the link - Web Player

    P.S. - Randomness basically defines how crazy the roads are (curvy if you will).
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,988
  3. lordaddament

    lordaddament

    Joined:
    Nov 9, 2010
    Posts:
    98
    Epic... Will it create a full city, or just a layout?
     
  4. mgrenier

    mgrenier

    Joined:
    Apr 26, 2011
    Posts:
    57
  5. enragedmrt

    enragedmrt

    Joined:
    Oct 5, 2009
    Posts:
    95
    @mgear: Actually, I've read that article quite often. Not sure if you've explored that guy's website but it's brilliant. Amit is clearly the man.

    @lordaddament: In all honesty, I doubt it will ever reach completion, but the goal is simple: Generate a land mass that consists of a city large enough for the user to experience a "levels" worth of gameplay in. So yes, simply put it will generate an entire "city". (Although that city will probably be significantly smaller than a city in GTA for example).

    @mgrenier: Looks pretty awesome. My implementation is tile-based and I'm not quite striving for a sense of realism as it'll have more of arcade-like intentions. But really, that looks great! I think I might give it a custom editor interface as well (although I dislike GUIs :( lol). And I'd like to follow your progress if you have a thread going.

    I'll add a new player sometime soon as I have some place-holder buildings as well as "districts" now. Essentially I wanted the player to feel like the world wasn't to repetitive so I'm trying to break into "districts" or "areas". (Suburbs/Housing, Commercial, and Construction with possibly more along the way)
     
  6. mgrenier

    mgrenier

    Joined:
    Apr 26, 2011
    Posts:
    57
    I do share some of my finding progress on twitter, I'll try to post back in this thread.

    I'm also looking for a tiled city, I'm definetly not trying to go in the direction of CityEngine 2010...