Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: I Found an L-System Generator!

  1. #1
      ravells is offline
    Community Leader Gracious Donor ravells's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    10,902

    Default I Found an L-System Generator!

    ... but I don't know how to use it

    You can download the generator here: http://www.generation5.org/content/2002/lse.asp

    L-System generators are often used to make procedural city streets. What I don't know is whether this generator (because I don't understand code or programming) can detect collisions, meaning I don't know whether you can tell the program to stop drawing a line if it hits another line or write the rules so it looks that way. If we can crack that, we can get a pretty decent city street generator going. Can anyone with programming skills come up with rules which look city street-ish?

    Here is what I've got so far with messing about and having no idea what I'm doing in terms of L-system rules:

    1. Make your L system road network using the generator (image1)
    2. Import into photoshop and make the lines thicker (image 2)
    3. convert to vector and using the big lazy city system, put in your city blocks. (image 3)

    And there you have it: Lung City!

    This doesn't look bad from a pretty crappy road system to begin with. If some kind programming guy can write a good street file we'll be in business!

    Interesting thesis on procedural city generation here (as far as I can understand it) but this guy uses Voronoi rather than L-systems.
    Attached Thumbnails Attached Thumbnails I Found an L-System Generator!-lsystem.jpg   I Found an L-System Generator!-testmap.jpg   I Found an L-System Generator!-finexport.jpg  

  2. #2
      Fransie is offline
    Guild Member
    Join Date
    Dec 2009
    Posts
    90

    Default

    The "Roleplaying City Map Generator" can also be used in conjunction with the Big Lazy City System. The website from the guy who created it has been down for some time, but you can still get it from some of the mirrors here.

    Just plunk in some numbers, slide some sliders, and let it create a roadplan (preferably without any other crap like houses, trees etc.). Save this and trace it in Xtreme/Drawplus/Inkscape/Illustrator, or print it to PDF and import this into your drawing program. Then apply brush and clean up a bit.

    I whipped this city up in under ten minutes. Don't ask me why a big river just springs from the middle of a town please...
    Attached Thumbnails Attached Thumbnails I Found an L-System Generator!-map-test-1.jpg  

  3. #3
      ravells is offline
    Community Leader Gracious Donor ravells's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    10,902

    Default

    That looks pretty cool. I'll download that city generator again and give it a try. In the end, I think nothing beats drawing your own roads (doesn't take too long) as you'll get them exactly where you want them, but it would be nice to have varying road patterns you can superimpose on bits as 'filler'.

  4. #4
      Aenigma is offline
    Guild Adept Aenigma's Avatar
    Join Date
    Aug 2009
    Location
    Visby, Gotland, Sweden
    Posts
    317

    Default

    Seems interesting.
    Yesterday today was tomorrow.
    My deviantart: http://darkaiz.deviantart.com/

  5. #5
      Redrobes is offline
    Software Dev/Rep Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    4,782
    Blog Entries
    4

    Default

    Cool and good link - had a very brief scan through it.

    I think usually L systems are state free so that they do not have the historical background about other branches in order to do the collision detection. Maybe some are state-ful so that they can.

    Although its possible to come up with some cities and towns that have some elements of real towns from the use of L systems and voronoi patterns I strongly believe that aside from a few rare exceptions (and those being more modern anyway) that cities are more complex than can be generated from either of these two mechanisms. Trees are very close to L systems and large scale interstates are close to voronoi patterns but cities, esp old ones, have cul-de-sacs, dead ends, and any number of weird goings on that is not suitable for a one rule model.

    If I were financially independent or retired I definitely love to have a go at getting together a model complex enough to build realistic towns and cities. I'm still glad your giving it a go tho just to see how far it can be taken.

  6. #6
      waldronate is offline
    Software Dev/Rep Gracious Donor waldronate's Avatar
    Join Date
    Mar 2007
    Location
    The High Desert
    Posts
    1,582

    Default

    L-systems come in many forms including context sensitive (knows about nearby nodes), stochastic (random angles and/or length), and environmentally-aware (know about promoters / inhibiters in the environment). http://algorithmicbotany.org/ has lots of useful information on L-systems, mostly with an eye to generating plants but that are also generally applicable.

  7. #7
      gilgamec is offline
    Guild Journeyer gilgamec's Avatar
    Join Date
    Mar 2009
    Location
    The Barbarian West
    Posts
    113

    Default

    Quote Originally Posted by waldronate View Post
    http://algorithmicbotany.org/ has lots of useful information on L-systems, mostly with an eye to generating plants but that are also generally applicable.
    From that site you can also download a demo version (which expires at, I believe, the end of this year) of L-studio, a (almost exhaustively) fully-featured L-system development environment. If you're going to experiment with L-systems, that's the software package I'd recommend.

  8. #8
      nour is offline
    Guild Novice
    Join Date
    Aug 2010
    Posts
    5

    Default Road map network

    Hi guys
    I am working on an L-system generator as well, and found some code in TCL that could generate different sorts of trees
    I am just wondering if it would be possible to make it build a road map network

    any body knows from where can I get help to this done ?

    thank you
    nour

  9. #9
      Redrobes is offline
    Software Dev/Rep Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    4,782
    Blog Entries
    4

    Default

    Not sure but since this thread has come up again, yesterday on the boing someone posted some pics of cracked glass panels that looked (to me) exactly like road systems in a dense city and as I looked at them I thought of this thread. So... if you can replicate this effect then you can get a road map network.

    http://www.boingboing.net/2010/08/26...zing.html#more

    Also, there was some thread about a free vector map of the world which would have lots of real roads in a network to use unless your specifically looking to generate them.

    Oh... and welcome btw !

  10. #10
      nour is offline
    Guild Novice
    Join Date
    Aug 2010
    Posts
    5

    Default

    thank you so much for quick reply i will check that link
    Yes I need to generate them and I am interested in using L-system and maya

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •