Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: cavern generator

  1. #11

    Default

    >>< drow ><<

  2. #12
    Guild Journeyer
    Join Date
    May 2008
    Location
    PEI, Canada
    Posts
    213

    Default

    Have you mapped out your memory usage in your algorithm? What exactly are you doing with your system memory? Do you have anyway to cut a map into chunks for fine detail processing and then automatically stitch it back together after the fact?

  3. #13

    Default

    Quote Originally Posted by Talroth View Post
    Have you mapped out your memory usage in your algorithm?
    What exactly are you doing with your system memory?
    that's been this morning's work, aside from a quick trip to ikea.

    the generator is written in perl, so i'm at perl's mercy regarding memory allocation and usage.
    and perl is rather notorious for sacrificing ridiculous piles of memory for performance.

    i've converted the cell map from an array of arrays of integers (lazy)
    to an array of strings, using vec() to manipulate it.

    $map->[$r][$c] # uses a lot of memory
    vec($map->[$r],$c,1) # a lot less memory, and isn't any slower

    much better! a colossal cavern, standard style and print scale, now takes 3.5 minutes to generate,
    and the process consumes just over 500 MB of memory, instead of the 3+ GB it was sucking down before.

    the parchment style is the most computationally expensive, and pushes that to 7.5 minutes.
    the resulting image is an 8051 x 8051 pixel jpeg, 13 MB in size.
    Last edited by drow; 09-19-2010 at 05:24 PM.
    >>< drow ><<

  4. #14

    Default

    Man, you're awesome! Very talented.

    I've noticed that there are no entrances to your caverns, though. Will you make it so that there's a cave opening running off the map?

  5. #15
    Guild Member Facebook Connected Big Mac's Avatar
    Join Date
    Oct 2010
    Location
    London, UK
    Posts
    54

    Default

    Quote Originally Posted by Sharpe View Post
    Man, you're awesome! Very talented.

    I've noticed that there are no entrances to your caverns, though. Will you make it so that there's a cave opening running off the map?
    I was about to say both of those things too. The maps do look great.

    If this is going to be automated, could you perhaps give the user a choice to the number of entrances (when you eventually get to that stage)?

    One entrance would give people a cave, but two (or a few) would give them the option to pass through the cave system to get somewhere else. That might be useful.
    David "Big Mac" Shepheard
    New to cartography and seeking advice - eventual goal to make a large number of maps for the many worlds of the Spelljammer Campaign Setting

  6. #16

    Default

    Man, Drow, you really rock.

    Ever think about a random forest generator?
    Last edited by Sharpe; 10-18-2010 at 09:19 PM.

  7. #17
    Community Leader Jaxilon's Avatar
    Join Date
    Nov 2009
    Location
    A beach in Ecuador
    Posts
    5,548

    Default

    wow, I just saw all the stuff you have on there. What a great resource. I can see using it to help build stuff for my RPG group when I'm in a hurry and so on. Thanks for all your hard work on this stuff.
    “When it’s over and you look in the mirror, did you do the best that you were capable of? If so, the score does not matter. But if you find that you did your best you were capable of, you will find it to your liking.” -John Wooden

    * Rivengard * My Finished Maps * My Challenge Maps * My deviantArt

  8. #18

    Default

    Indeed, great resource. Thanks a bunch!

  9. #19

    Default

    Awesome! Love it! I'll be using this a lot!
    Last edited by MadCatUSA; 10-28-2010 at 05:04 AM. Reason: Didn't read page 2!

  10. #20

    Default

    Drow, as a suggestion for your random dungeon generator, would you consider making an option for all plain doors? Thanks!

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions

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