aaronjolson / Blender-Python-Procedural-Level-Generation

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Python 100.0%