Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Procedural cities

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

    Default

    Wow, that looks amazing!

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

    Post

    You don't have to solve the model creation bit or the texturing bit because we think that bits in the bag. This is an example of what we need. You specify the res and white and some app places in the black. Preferably you specify a greyscale map of regions, the white polygon and it spits out the black buildings on a full white background so that if you took the input and masked it with output then you would get bounded buildings.

    The point about the buildings are that they cannot just be randomly placed like trees because you have to ensure that they share edges as much as possible and yet leave several sides of the building free for light and access. If possible no building should end up being enclosed by other buildings and it should produce natural paths between them. Also the buildings need to make an attempt to align with the polygon edges. You need some kind of 'goodness factor' for all these things and when the app thinks it has a shape, rotation and position which is good enough then it pops it in.

    I don't know whether it needs to look at what its got so far and make an educated guess or whether you just pump zillions of random numbers at the place checking the quality goodness factor until you accept one and let the rubbish results just die out. You could store all the quality factors for each house and start by accepting almost anything then as you progress you remove the worst ones and put in better ones and keep going until you reach a threshold quality. I don't know what way is best there.

    I think we could generate a vector set of regions from a raster and vice-versa so I don't think working in vector or raster is better either way. Just whatever is easiest to script up.

    On the image below the gaps between the houses could be closed or not. If that's something we could adjust then that would be ideal but I think I could live with either really.

    We could use a fixed set of house shapes or get the app to generate them. Again I think we could live with either though I expect it would be easier in some respects to make the houses on the fly and in other cases might be easier to pick from a predetermined set.

  3. #13
    Guild Adept icosahedron's Avatar
    Join Date
    Feb 2009
    Posts
    337

    Default

    That suicidator looks great. Anybody know if it does 2D top-downs with top-light drop shadows? Something like that could save me a bunch of time for city generation.
    Mapping a Traveller ATU.

    See my (fantasy-based) apprenticeship blog at:

    http://www.viewing.ltd.uk/cgi-bin/vi...forums&sx=1024

    Look for Chit Chat, Sandmann's blog. Enjoy.

  4. #14
    Community Leader Facebook Connected Steel General's Avatar
    Join Date
    Jun 2008
    Location
    Ft. Wayne, IN
    Posts
    9,463

    Default

    Does anybody know i Google Sketch-up has any scripting language built into it? Was wondering if something could be done with that?
    My Finished Maps | My Challenge Maps | Ghoraja Juun, my largely stagnated campaign setting.

    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.



  5. #15
      Ascension is offline
    Community Leader Ascension's Avatar
    Join Date
    Jun 2008
    Location
    St. Charles, MO
    Posts
    8,216

    Post

    SU works with Ruby scripts is all that I know.
    If the radiance of a thousand suns was to burst at once into the sky, that would be like the splendor of the Mighty One...I am become Death, the Shatterer of worlds.
    -J. Robert Oppenheimer (father of the atom bomb) alluding to The Bhagavad Gita (Chapter 11, Verse 32)


    My Maps ~ My Brushes ~ My Tutorials ~ My Challenge Maps

  6. #16
    Guild Master Gracious Donor Midgardsormr's Avatar
    Join Date
    Aug 2007
    Location
    Los Angeles, CA
    Posts
    2,401

    Post

    I ran across a procedural building generation script for 3ds Max today:
    http://www.tysonibele.com/Main/Build...uildingGen.htm

    It won't generate an entire town, but it will build randomized modern buildings along a path. Of course, it does require a pricey piece of software, but I seem to recall at least a couple of people around here use Max.
    Bryan Ray, visual effects artist
    http://www.bryanray.name

  7. #17
    Guild Master Gracious Donor Midgardsormr's Avatar
    Join Date
    Aug 2007
    Location
    Los Angeles, CA
    Posts
    2,401

    Default

    I stumbled over another resource for procedural 3d city generation. cmiVFX has published a DVD that demonstrates how to extract data from openstreetmaps.org and parse it into Houdini geometry. The technique should work for any other 3d software, also. It's a $60 DVD, though.

    http://www.cmivfx.com/productpages/p...cedural_Cities
    Bryan Ray, visual effects artist
    http://www.bryanray.name

Page 2 of 2 FirstFirst 12

Posting Permissions

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