# Thread: Random catacombs -- maybe

1. ## Random catacombs -- maybe

I was just playing around with writing a random catacombs generator (using stochastic L-systems), and happened to get a result which looked half-decent. Then I thought it'd look better on parchment, so I had a go at RobA's parchment tutorial.

If I can manage to get the generator consistently producing good results maybe I'll script the whole thing up in GIMP or something. Until then, here's a preview.

Comments and suggestions appreciated (all it's doing so far is corridors and small rooms).

2. Interesting, though it reminds me more of a series of mines/mine shafts than catacombs.

3. hmm isomage,

maybe you should check out my script based on RobA's tutorial.

Just be warned, it is by far the most ugliest script I ever posted cause I did it really fast.

Actually I planned to update it in the next few days cuase I got alot of nice feedback for it and wanted do add a new feature, so you either can wait for my update or check it out now.

4. There is a L-system renderrer in gimp. What is the rule set you are using?

-Rob A>

5. Originally Posted by RobA
What is the rule set you are using?
It's a bit ugly, since I was just playing around adding and tweaking rules to see what happened, and I'm not entirely happy with the results yet, but that one was drawn with:

Code:
```Axiom: F

Production rules:
F -> (probability 1/2) F R
(probability 1/8) F [ - F R ] F
(probability 1/8) F [ + F R ] F
(probability 1/8) F [ - F R ] [ + F R ]
(probability 1/8) F [ - F R ] [ + F R ] F

R -> (probability 1/2) F F
(probability 1/2) F [ room ]```

My program processes data defined in configuration files which let you define the axiom and production rules, specify whether the system is deterministic or random, define the step distance and turn angle (as functions, so they can be variable), define new symbols and functions to be called when they're parsed (like "room" above, which draws a room at the current position), specify line width and image size, and so on. It outputs PostScript, but since it's written in Lisp it should be fairly easy to convert to GIMP Scheme if I decide to -- I just need to get it producing better results

6. Here's another, which I think is a little better (didn't bother with the parchment this time) -- it uses a simpler rule-set, has slightly bigger rooms, and might be more like what we'd want from a random dungeon map.

One of the things I like about these maps is that I'm randomly perturbing the L-system's angles and distances, so you don't get perfect right angles; it makes the corridors look more like ones in real catacomb maps, I think.

7. Much better I think, not quite so spread out.

8. Isomage, have you ever come across a free application called 'context free'? Check it out on google. I'm convinced that it can be used to make some really nice automated maps, but I'm not enough of a programmer to be able to do it.

9. Originally Posted by ravells
Isomage, have you ever come across a free application called 'context free'?
I hadn't, thanks. It looks interesting.

10. Wow- I was wrong

There was an L-system renderer for gimp back in the 1.2 days (source here) but it has never been ported to gimp 2.x.

BTW- Isomage, that last effort is superb!

-Rob A>

#### Posting Permissions

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