# Dungeon Architect

**URL:** <https://forums.unrealengine.com/t/dungeon-architect/28094>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [April 22, 2015, 12:27pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094 "2015-04-22T12:27:43Z")\
**Posts on this page:** 20\
**Page:** 10

<div class="post-metadata">

**Author:** ![anonymous\_user\_e44b2c98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e44b2c98](https://forums.unrealengine.com/u/anonymous_user_e44b2c98)\
**Post date:** [September 7, 2015, 7:22pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/184 "2015-09-07T19:22:19Z")

</div>

You’ll have to wait a day or 2 for my money to arrive in my spendy account xD

---

<div class="post-metadata">

**Author:** ![DerekSimProse](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DerekSimProse](https://forums.unrealengine.com/u/DerekSimProse)\
**Post date:** [September 7, 2015, 7:28pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/185 "2015-09-07T19:28:43Z")

</div>

Grabbed it! It’s been working quite well so far in my project, saved my programmer and I a ton of work! Just curious: has this version been updated at all from the beta that was released a few weeks ago? Is there a changelog anywhere if so?

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [September 7, 2015, 8:00pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/186 "2015-09-07T20:00:32Z")

</div>

Thanks!

@DerekSimProse I’ve added better support for multiple dungeon editing within the same map, ability to create dungeons at different locations on the map, updated the volumes (so dungeons can be constraints within a certain bounds etc).

This was done using the multi story building demo as a reference

I’ll include the change log in the downloads section with the next update.

I’ll have 4.9 support by tomorrow

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [September 7, 2015, 8:04pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/187 "2015-09-07T20:04:57Z")

</div>

> [@Justin.Dooley;369383](#):
>
> I’m down. I’ll make sure I’m subscribed to this thread to ensure I get updates. I’ve slowly been putting together other elements to make the development process easier. Putting together a pipeline. It’s gonna be great! Really looking forward to heavily using your system. I read the user guide doc and was wondering if the ceilings where part of the manual creation or part of the automatic creation? I assume you could create them as a offset floor deco maybe. I’d have to kind of look into it more when I get my hands on it.

Justin, that’s correct. The roof is added to the ground marker with an offset to move it up and rotate it by 180 degrees

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_56515735](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_56515735](https://forums.unrealengine.com/u/anonymous_user_56515735)\
**Post date:** [September 7, 2015, 8:28pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/188 "2015-09-07T20:28:37Z")

</div>

Does this work on mobile(Android, iOS)? Runtime generation obviously wouldn’t work but would generated maps in the editor work on mobile?

---

<div class="post-metadata">

**Author:** ![Alexarg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alexarg](https://forums.unrealengine.com/u/Alexarg)\
**Post date:** [September 7, 2015, 10:22pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/189 "2015-09-07T22:22:43Z")

</div>

Hi , an work . I have a question, could this system be used for create a “city”?. For example, i have some modular building assets with interior and exterior. Could I use this for create a city in a given volume bounds for example.  
I am just thinking all the uses that i can give to this tool 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ca1e4df71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ca1e4df71](https://forums.unrealengine.com/u/anonymous_user_ca1e4df71)\
**Post date:** [September 7, 2015, 11:26pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/190 "2015-09-07T23:26:02Z")

</div>

Thats pretty darn clever, looks like it could save people a lot of time and give amazing results

---

<div class="post-metadata">

**Author:** ![Tarly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tarly](https://forums.unrealengine.com/u/Tarly)\
**Post date:** [September 7, 2015, 11:37pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/191 "2015-09-07T23:37:06Z")

</div>

I have been following this thread FOR MONTHS… I am tickled to death to see that it has gone to marketplace. If I can get my idea further along… I too hope to be able to use this amazing tool.

Thank you for making this… incredible addition to the engine.

---

<div class="post-metadata">

**Author:** ![Mr\_SquarePeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr\_SquarePeg](https://forums.unrealengine.com/u/Mr_SquarePeg)\
**Post date:** [September 8, 2015, 3:33am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/192 "2015-09-08T03:33:20Z")

</div>

> [@Alexarg;373995](#):
>
> Hi , an work . I have a question, could this system be used for create a “city”?. For example, i have some modular building assets with interior and exterior. Could I use this for create a city in a given volume bounds for example.  
> I am just thinking all the uses that i can give to this tool 🙂

I know that is can used to make buildings not sure about a city.

Showcased it a few posts back with a Building.

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [September 8, 2015, 3:55am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/193 "2015-09-08T03:55:32Z")

</div>

Thanks guys!

@Alexarg You can’t build cities with this. You’ll need a specialized city builder like this:

[http://i.imgur.com/krEUel8m.jpg](http://i.imgur.com/krEUel8.jpg) [http://i.imgur.com/U9UkDvUm.jpg](http://i.imgur.com/U9UkDvU.jpg)  
(Source: Subversion City Generator)

I’ve been reading [this](https://graphics.ethz.ch/Downloads/Publications/Papers/2001/p_Par01.pdf) paper that the author of the above generator used. It should be possible to build some interactive tooling around the algorithm in the UE4 editor

---

<div class="post-metadata">

**Author:** ![Mr\_SquarePeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr\_SquarePeg](https://forums.unrealengine.com/u/Mr_SquarePeg)\
**Post date:** [September 8, 2015, 4:18am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/194 "2015-09-08T04:18:18Z")

</div>

> [@;374143](#):
>
> Thanks guys!
> 
> @Alexarg You can’t build cities with this. You’ll need a specialized city builder like this:
> 
> [http://i.imgur.com/krEUel8m.jpg](http://i.imgur.com/krEUel8.jpg) [http://i.imgur.com/U9UkDvUm.jpg](http://i.imgur.com/U9UkDvU.jpg)  
> (Source: Subversion City Generator)
> 
> I’ve been reading [this](https://graphics.ethz.ch/Downloads/Publications/Papers/2001/p_Par01.pdf) paper that the author of the above generator used. It should be possible to build some interactive tooling around the algorithm in the UE4 editor

So question - Are you actively looking into building a city generator that works with Dungeon Architect?

If so I Would throw money at the screen so fast 😃

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [September 8, 2015, 5:26am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/195 "2015-09-08T05:26:04Z")

</div>

> [@HeadClot;374155](#):
>
> So question - Are you actively looking into building a city generator that works with Dungeon Architect?
> 
> If so I Would throw money at the screen so fast 😃

I’d love to but I haven’t committed on it yet 🙂 I have some old unfinished games I want to push out soon. If I do make one, the city generator would come with a default building generator which could be swappable with other building generators (e.g. from other developers in the marketplace, or dungeon architect etc)

---

<div class="post-metadata">

**Author:** ![n00854180t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n00854180t](https://forums.unrealengine.com/u/n00854180t)\
**Post date:** [September 8, 2015, 4:49pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/196 "2015-09-08T16:49:45Z")

</div>

Ordered my copy 😃

I’ll be showing off some of what I’ve built pretty soon, I love what I’ve been able to make with it.

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [September 8, 2015, 5:22pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/197 "2015-09-08T17:22:36Z")

</div>

Thank you @n00854180t

I’d love to see what you have made. Looking forward to it 🙂

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [September 8, 2015, 5:24pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/198 "2015-09-08T17:24:16Z")

</div>

Thank you everyone for your support. I’ve uploaded a new build (1.29) with 4.9 support and you should be able to download it from the “My Account” section under Available downloads

---

<div class="post-metadata">

**Author:** ![mattmillus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mattmillus](https://forums.unrealengine.com/u/mattmillus)\
**Post date:** [September 8, 2015, 6:13pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/199 "2015-09-08T18:13:09Z")

</div>

Two questions:

1. When should we be using the ‘instanced’ option vs not using it? The feature is not specifically mentioned in the docs but enabling it seems to make things go much faster and cleaner

2. For a run-time procedurally generated dungeon, what is your preferred method for setting a player start point / dungeon entry point? I didn’t see this mentioned in the docs either but I might have just missed it.

Thanks, the plugin is impressive!

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [September 8, 2015, 6:27pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/200 "2015-09-08T18:27:20Z")

</div>

> [@mattmillus;374583](#):
>
> Two questions:
> 
> 1. When should we be using the ‘instanced’ option vs not using it? The feature is not specifically mentioned in the docs but enabling it seems to make things go much faster and cleaner
> 
> 2. For a run-time procedurally generated dungeon, what is your preferred method for setting a player start point / dungeon entry point? I didn’t see this mentioned in the docs either but I might have just missed it.
> 
> Thanks, the plugin is impressive!

Instanced meshes run slow in mobile. I haven’t profiled fully but my initial observations are due to lack of culling. Entire instanced level geometry is pushed to the gpu. I might be wrong. I’ll check more on this.  
If your are going for a non mobile platform, definatly try out instanced mesh.

I’m working on better documentation and will update soon

As for player start, you can have a look at the runtime dungeon demo (in the quick start guide ). You can query the dungeon model for a valid location in blueprints dungeon post build event. You can also do complex stuff by traversing the minimum spanning tree graph available in the dugeon model to find furthest points in the dugeon for entrance exit. That’s not exposed to blueprints yet. I can expose it if you want

---

<div class="post-metadata">

**Author:** ![mattmillus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mattmillus](https://forums.unrealengine.com/u/mattmillus)\
**Post date:** [September 8, 2015, 9:38pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/201 "2015-09-08T21:38:24Z")

</div>

Thanks! I will play around with it see if the GetRandomCellLocation function is sufficient, if not maybe you can expose a few more things to blueprint.

One more question - when I run the runtime sample project I get a compile error originating from Rules/PillarCornerSelector, because the ‘Model’ input on ‘Is Pillar On Corner’ is not connected. Connecting the ‘Model’ output of ‘Select Node’ to this seems to make the error go away, but I thought I would report it!

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [September 9, 2015, 1:05pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/202 "2015-09-09T13:05:02Z")

</div>

I been thinking of having Dungeon Architect also support more organic dungeons (e.g. caves) and realized that with some tweaks to the existing builder, it can be done to generate something like this:

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/c/01cdef8d8bbba459ab58f2e24b8b1cb70f96459e.gif)  
Since it goes through the same pipeline, all the tooling (volumes, paint tool etc) will work seamlessly

The colorful grid based shot is from my C# prototype which I built before starting Dungeon Architect.  
The Red squares are the rooms, red lines are the delaunay triangulation of the rooms, and the green lines is the minimum spanning tree of the triangulation (with some loop tolerance), which defines how the rooms are connected

The organic layout you see above is mostly in photoshop, but those actions can be performed in code.

's how I plan to go about it:

#1 The dungeon builder builds this kind of layout, if the Grid Builder is selected  
[http://i.imgur.com/ptEpR13m.png](http://i.imgur.com/ptEpR13.png)

#2 If the organic builder is selected, it would produce the exact same layout, except the rooms would be connected through a straight line (instead of being constrained to the XY axis)  
It would also rasterize the layout in a 2D float array (to emulate the photoshop filters I’ve applied in the next steps) with cells as ellipses and corridors as thick lines  
[http://i.imgur.com/CUAUBXfm.png](http://i.imgur.com/CUAUBXf.png)

#3 Apply a blur filter on the rasterized data grid  
[http://i.imgur.com/Wv2zJ3sm.jpg](http://i.imgur.com/Wv2zJ3s.jpg)  
[Photoshopped]

#4 Apply difference Clouds (Perlin noise applied on top of the existing data)  
[http://i.imgur.com/SyASzKPm.jpg](http://i.imgur.com/SyASzKP.jpg)  
[Photoshopped]

#5 Adjust Levels (Add a multiplier and throw out data outside a certain range)  
[http://i.imgur.com/zkZ446Tm.jpg](http://i.imgur.com/zkZ446T.jpg)  
[Photoshopped]

#6 Run this data through a [marching square](https://en.wikipedia.org/wiki/Marching_squares) algorithm to create a polyline

#7 Add Wall markers through out this polyline, so you can define how your cave walls look in your theme definition file

#8 Triangulate the polyline using constrained delaunay triangulation to create the ground mesh (since I’m not sure if it will be a good idea to have ground markers)

[http://i.imgur.com/OayjUTz.gif](http://i.imgur.com/OayjUTz.gif)

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [September 9, 2015, 1:05pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/203 "2015-09-09T13:05:48Z")

</div>

Thanks @mattmillus, I’ll fix it

[Previous page](https://forums.unrealengine.com/t/dungeon-architect/28094.md?page=9)

[Next page](https://forums.unrealengine.com/t/dungeon-architect/28094.md?page=11)
