Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Road Network Generator

Discussion in 'Made With Unity' started by reissgrant, Mar 31, 2011.

  1. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Road Network Generator now ready for release!

    -- Click Here to Download --

    Price is $25 indie and $50 commercial

    Demonstration video is here: (updated to v1.1 4/25/11)



    Examples of road types available in the generator:


    Purchase includes all future updates.

    If you have any questions please ask!

    *EDIT:
    updated to include new video 4.25.11
     
    Last edited: Apr 25, 2011
  2. mikesgames

    mikesgames

    Joined:
    Apr 16, 2010
    Posts:
    1,071
    simple answer - yes.

    like, right now, coincidentally, I need somethign like this for my current project XD


    will it be free?

    or will this be commercial (I wouldn't be surprised ;) )
     
  3. EmadGh

    EmadGh

    Joined:
    Jun 10, 2009
    Posts:
    144
    Of coarse yes ! :D
    This is really nice.
     
  4. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Sorry, it will be commercial, but cheap, around $25 for indies. I'm planning to include a few types of roads though, like medieval, futuristic and if anyone has other suggestions?
     
  5. coin-god

    coin-god

    Joined:
    Jan 21, 2010
    Posts:
    325
    If this could be done ingame, it would be awesome for a Sim City like game.

    Would it be pssible to use custom models?
     
  6. pixelsteam

    pixelsteam

    Joined:
    May 1, 2009
    Posts:
    924
    How will it for over non planar terrain?

     
  7. Quickfingers

    Quickfingers

    Joined:
    Aug 29, 2009
    Posts:
    268
    cool! I like this, might I suggest some lower poly road types aswell with right angles instead of round corners
     
  8. sc3

    sc3

    Joined:
    Nov 2, 2010
    Posts:
    103
    Looks very useful.
    This, and also:
    - Will there be support for roads which aren't at 90 degree angles? e.g. curved roads
    - Can the segments be optimised so they aren't as smooth but have less polygons?
     
  9. nukeD

    nukeD

    Joined:
    Feb 12, 2009
    Posts:
    405
    yes:
    - Will there be support for roads which aren't at 90 degree angles?... 30 degrees, 33 degrees?

    great work!!
     
  10. artzfx

    artzfx

    Joined:
    Apr 28, 2008
    Posts:
    571
    Very cool indeed :)
     
  11. KillerScript

    KillerScript

    Joined:
    Aug 20, 2010
    Posts:
    368
    It will be free!?
     
  12. EmadGh

    EmadGh

    Joined:
    Jun 10, 2009
    Posts:
    144
    :)
     
  13. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    @24pfilms: Currently it does not deform over terrain, so it remains flat. I will look into what that will take to make it deform over terrain.

    @clandestine: Currently the roads are just 90 degrees, but I can experiment with adding more angles.

    @quickfingers: I will incorporate a higher poly and a lower poly, if there is interest. And I left out sharp angles corners because driving on them, is not very practical, at least in my tests.

    Great suggestions, guys, I will look at them. :)
     
    Last edited: Apr 1, 2011
  14. p6r

    p6r

    Joined:
    Nov 6, 2010
    Posts:
    1,146
    Very good idea... I like it !

    6R
     
  15. Colonel_Klink

    Colonel_Klink

    Joined:
    Jan 3, 2011
    Posts:
    76
    That's rather cool. It will definitely be on my purchase list!

    Cheers
    Klink
     
  16. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Road Network Generator v.1 now released! Check the first post for details!
     
  17. mikesgames

    mikesgames

    Joined:
    Apr 16, 2010
    Posts:
    1,071
    Looks good... shame I only have $0.50 in paypal...
     
  18. JeffAU

    JeffAU

    Joined:
    Mar 22, 2009
    Posts:
    387
    just purchased - awesome work!!

    No. 1 request - ability to add to terrain

    Thx
     
  19. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Thanks Jeff. I explored the possibility of adding to terrain, but there's not enough vertices in the road meshes to properly deform over terrain. Rather than add more vertices to the road mesh, I chose to leave that out (for now at least). You can always use the "set terrain height" tool to flatten the terrain for placement of the road network.
     
  20. nikko

    nikko

    Joined:
    Mar 20, 2009
    Posts:
    436
    can it go up and down?
     
  21. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    What do you mean up and down? Like, deform over terrain up and down?
     
  22. Chaoss@Perdition

    Chaoss@Perdition

    Joined:
    Mar 10, 2011
    Posts:
    37
    Very nice, one crit though, the sidewalks need edges when they meet the road
     
  23. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    I can add those, they were left out to reduce polys. I can include the option to have either.
     
  24. afalk

    afalk

    Joined:
    Jun 21, 2010
    Posts:
    164
    Does the tool support slopes? ie can the road slope upwards or downwards as needed?
     
  25. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Right now it does not. I'm exploring a way to do this, and potentially deform over terrain, but I don't want to increase the poly count by too much, and that would need to happen to get a nice smooth slope.

    @Chaoss: I made edges for the roads meeting the sidewalk and will push out the update today or tomorrow. All current customers will be sent a download link.
     
  26. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Road geometry has been changed to include edges where the sidewalks intersect them. Download links have been sent to all current customers.

    Any other suggestions welcome!
     
  27. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Flatten Roads to terrain is working, though I may have to do some terrain smoothing before flattening:

     
  28. disaldo

    disaldo

    Joined:
    Apr 9, 2010
    Posts:
    38
    Hi

    I have sent you a PM

    Disaldo
     
  29. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    @Disaldo, check your PMs ;)

    Smooth terrain is working now, and the road conforms to the terrain. Though road geometry had to increase for this. I'll push out the update in the next few days:
     
  30. chaos1986

    chaos1986

    Joined:
    Mar 29, 2009
    Posts:
    230
    This could be impossible, but curving roads (rather than grid layout) would be good, even slightly diagonal roads would make it appear more realistic
     
  31. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    I agree, I am looking for ways to do this. The problem is generating intersections for the infinite number of angles that can happen with curved roads. This is why you see none of the available spline road tools with intersections. I want to find some time to tackle this and I have a pretty good idea how; just need the time.
     
  32. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    Version 1.1 released!

    Includes flattening roads to terrain and smoothing terrain below the road.
    The Interface has also been improved.

     
  33. Adrenaline-Crew

    Adrenaline-Crew

    Joined:
    Dec 14, 2010
    Posts:
    400
    Yes, but can you export to use for moble
     
  34. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    You can use the road meshes on mobile, sure.
     
  35. CrazySi

    CrazySi

    Joined:
    Jun 23, 2011
    Posts:
    538
    How soon before this can do curved roads at angles? Also whats the difference between pro and indy license functionalty?
     
  36. reissgrant

    reissgrant

    Joined:
    Aug 20, 2009
    Posts:
    726
    The functionality between the two versions is the same, there is a cheaper price for independent developers. There is no timetable on large curved roads at this time, sorry.
     
  37. CrazySi

    CrazySi

    Joined:
    Jun 23, 2011
    Posts:
    538
    Surely it cant be that hard to extend this to have curved and diagonal roads from different angles? Theres just not much use for a grid of roads in a realistic terrain...
     
  38. ASIM-SENYUVA

    ASIM-SENYUVA

    Joined:
    Apr 29, 2013
    Posts:
    67
    can we increase width of road ?
     
  39. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,111
    Any plans for getting this working with Map-ity?

    It would be great if it could take input from Map-ity to create the mask that is used for generating roads.
     
unityunity