Skip to content

Collection of scripts for generating 3D levels (environments/dungeons) procedurally using Blender's Python API.

License

Notifications You must be signed in to change notification settings

aaronjolson/Blender-Python-Procedural-Level-Generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blender-Python-Procedural-Level-Generation

Collection of scripts for generating 3D levels (environments/dungeons) procedurally. Leverages Blender's Python API. Currently a work in progress.

Instructions to run

  1. Open a new instance of the Blender program
  2. Navigate to the scripting screen https://docs.blender.org/manual/en/latest/interface/window_system/screens.html
  3. Import the script via the Open button or click the New button and paste the contents of a script into the script editor
  4. Click the Run Script button

For an introduction to Blender scripting with Python https://docs.blender.org/manual/en/latest/advanced/scripting/introduction.html

Special notes about versioning

The scripts in 2.7 will not work in 2.8 but the scripts in 2.8 continue to work in 2.9+ If at some point in the future breaking API changes are introduced a new folder will be added for the scripts to be ported

3D model output examples

random walk via cube placement example 3D model output https://sketchfab.com/models/97ef663c8f6040b8aecdaca2aa87989e

random walk via extrusion example 3D model output https://sketchfab.com/models/a04f59e37966449c98c2839999800c8a

recursive backtracking algorithm example 3D model output https://sketchfab.com/models/7437daa03a0543d48c5eb599681d7e07

recursive division algorithm example 3D model output https://sketchfab.com/models/8587b464b2034485886cd094c7adf14c

cellular automata / game of life algorithm example 3D model output https://sketchfab.com/3d-models/low-poly-procedural-cave-maze-environment-2b0ad5a175b5419ea560fa595e53e9f4

castle dungeon game level example output https://sketchfab.com/3d-models/procedurally-generated-level-with-wall-open-top-ca5adebd3fae4597b9d1cedfb81d742f - open https://sketchfab.com/3d-models/procedurally-generated-level-a3fc50945d13465e81d23e75417bc20f - closed

About

Collection of scripts for generating 3D levels (environments/dungeons) procedurally using Blender's Python API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages