Page 1 of 1

DunGen library - a generator for procedural 3D dungeons

Posted: Sun Dec 01, 2013 11:05 am
by Squarefox
Ho ho ho,

winter is coming and Santa Squarefox has a nice present for you: "DunGen" - a procedural Dungeongenerator library for Irrlicht.
DunGen is a generator for procedural 3D dungeons. Methods of procedural synthesis, such as L-system, Voxels and Hermite-Splines are used to generate these dungeons. These dungeons can be used in computer games and other applications. The generation of a complete dungeon usually takes less than a half minute (under 10 seconds on a modern Core i7 processor).

Features:
  • generation of procedural voxel bases caves, which can be eroded, filtered, warped and smoothed so that they look more realistic
  • generation of procedural corrdiors between cave parts and/or rooms
  • computation of visibility information (can you look through a corridor - yes or no?)
  • place detailobjects (e.g. torches or monsters) in the corridors
  • use .irr scene files to provide roompatterns for your dungeon
The library package contains everything you'll need:
  • the compiled library, including source code in C++ (provided as a Visual Studio 2010 project)
  • a compiled tutorial, including source code in C++ (provided as a Visual Studio 2010 project)
  • a doxygen documentation, compiled as HTML
Here are some screenshots:
Image
Image
Image
Image
Image

The package is downloadable at http://dungen.squarefox.net . Version 1.0 is compiled for and compatible with Irrlicht 1.8.1 .

I hope you enjoy this library!

Kind regards,
Squarefox

Re: DunGen library - a generator for procedural 3D dungeons

Posted: Mon Dec 02, 2013 7:21 am
by CuteAlien
Nice Screenshots :-)

Re: DunGen library - a generator for procedural 3D dungeons

Posted: Tue Dec 03, 2013 7:31 pm
by Squarefox
Thank you :) !

Re: DunGen library - a generator for procedural 3D dungeons

Posted: Tue Dec 03, 2013 8:28 pm
by kklouzal
Very good work, the roughness of the ground bothers me though. :)

Re: DunGen library - a generator for procedural 3D dungeons

Posted: Sun Dec 15, 2013 12:04 am
by Squarefox
Thanks :). The roughness is achieved through a combination of voxel erosion and warping of vertex coordinates when transforming the original voxel cave into a mesh. The shown pictures use smooth warping. It's also possible to deactivate the smoothing via option, then the result is rougher. If you don't use erosion, but smooth warping, then you get smoother caves, as shown in picture 2.

Re: DunGen library - a generator for procedural 3D dungeons

Posted: Sat Jun 07, 2014 6:35 pm
by Squarefox
Hi,

I just released version 1.1 of DunGen. The following changes were made:
  • some refactorings (especially CCorridor) to make code more readable, no changes on functionality here
  • added StartUp/ShutDown functionality, to make more RAM available to user
  • added ClearRoomsAndCorridors function: no need for restart of DunGen, if an other dungeon shall be created
  • added ReadDungeonFromFile function: dungeons can now be read from XML
  • added second tutorial, which shows how to read dungeons from XML
Here is another screenshot:
Image

The package is downloadable at http://dungen.squarefox.net . Version 1.1 is compiled for and compatible with Irrlicht 1.8.1 .

Regards,
Squarefox

Re: DunGen library - a generator for procedural 3D dungeons

Posted: Sun Jul 06, 2014 2:08 pm
by Squarefox
Hi,

I now released version 1.2 of DunGen. The following changes were made:
  • added SetMaterialCustom function, which allows you to use custom materials for the cave and corridors
  • added third tutorial, which shows how to use custom materials
  • added RandomCaves tool, which generates caves from random L-systems and allows you to save them for later usage
The package is downloadable at http://dungen.squarefox.net . Version 1.2 is compiled for and compatible with Irrlicht 1.8.1 .

Regards,
Squarefox

Re: DunGen library - a generator for procedural 3D dungeons

Posted: Sat Jul 12, 2014 3:21 pm
by Squarefox
Hi,

version 1.2.1 of DunGen is now released. The following changes were made:
  • implemented a EnsureIntegrity() function in CVoxelCave to ensure a 3 voxel border, to catch some numerical problems that could lead to crashes when filtering the cave
The package is downloadable at http://dungen.squarefox.net . Version 1.2.1 is compiled for and compatible with Irrlicht 1.8.1 .

Regards,
Squarefox

Re: DunGen library - a generator for procedural 3D dungeons

Posted: Fri Oct 17, 2014 2:47 pm
by Squarefox
Hi,

I released version 1.2.2 of DunGen. The following changes were made:
  • fixed an issue with StartUp(), where several StartUp() calls with no ShutDown() caused a memory leak
  • fixed an issue where detailobjects settings where not overwritten correctly when reading a dungeon from xml
The package is downloadable at http://dungen.squarefox.net . Version 1.2.2 is compiled for and compatible with Irrlicht 1.8.1 .

Regards,
Squarefox

Re: DunGen library - a generator for procedural 3D dungeons

Posted: Sun Feb 15, 2015 5:48 pm
by Squarefox
Hi,

version 1.2.3 of DunGen is now released. The following changes were made:
  • fixed an overlapping polygon in tutorial dungeon 1 by adding adding additional digging depth into the corridor descriptions of this dungeon
The package is downloadable at http://dungen.squarefox.net . Version 1.2.3 is compiled for and compatible with Irrlicht 1.8.1 .

Regards,
Squarefox