Thursday, August 30, 2012

Dungeon Rendering

Since generating dungeons in Unity seems to work just fine, I started working on rendering the dungeon.

First, I added random colored lights, so each room would have its own feeling to it:

Random colored lights

The next thing I added was a basic character controller (the model is still a placeholder), so that I could walk around and see how everything looks.

I put in some walls and rendered it from an orthographic camera in 3D:

Orthographic perspective

At this point, you would be able to look into every room, even if its not in your line of sight. This is very boring from a gameplay perspective and it looks very strange, too. So I quickly programmed a "fog of war"-like visibility system. Due to the fact that this is just a test, I currently use ray casting for this. This will be replaced by a much more efficient approach later on.

This little video shows everything I mentioned so far:

I also started adding more parameters and randomness to the level generator to make the levels more interesting. Writing code to create random dungeons is not very hard, but doing so that you get predictable and consistent yet interesting results isn't that easy.


  1. Would like to help on what looks like a cool game

  2. Thanks for the offer. The problem is that I can't come up with a good gameplay mechanic. That's why I am not working on it atm. I might put some more work into the dungeon generator and release its source code to the Unity community.

    1. ok. but let me know if you need help testing for bugs and glitches. i'd love to help!

  3. Hey Pfeaff , if you still make mods for Minecraft I can help you with the making of textures , I have been kicked out of another project and really , I don't know what to do to occupy myself ; I even do my homework !

    I didn ' t contacted you on HSF because I think you would not receive the notifications by email .

    Anyway , what ever the game or mod ( for any game ) you are making , please continue to develop it ! Maybe some day you ' ll get to be known as a great modder / indie developer on the internet !

    Work hard and make a great game that we can all enjoy !

    Sincerely , I support GG again .

  4. Hi,

    I don't get notifications on the HSF, but the notifications on this blog seem to work just fine :).

    I started working on a small game for a contest. I haven't done very much yet and there is only about 10 days to go, so I guess I'll be far behind competition, but I want to get it done eventually.

    I am planning on a relaunch of the allocator mod as soon as the official modding support for Minecraft comes out. I also plan on doing a redesign for the texture and I am open for suggestions. The idea is to let users decide which design they like most.

    Thank you.


  5. So , what have been doing since ? We didn ' t get any info since november D=

  6. I did quite a bit since then. I have been very busy lately, but there has been steady progress in the last days. I think there will be an update in a few weeks.


    but I don't have the time to continue working on it at the moment.