desplesda / Prockgen

Code from my talk at GCAP 2018!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prockgen

This is the code and example .blend file from my talk at GCAP 2018, "Procedural Generation by Automating Blender". It demonstrates how to procedurally generate and texture meshes through Blender's Python API.

Important: This talk was delivered in 2018, and was written for Blender 2.79. This is no longer the current version, and the scripts may not work. These scripts are useful for understanding the concepts of how to procedurally generate game assets in Blender, but probably aren't a drop-in solution. (Pull requests that bring this up to date are welcome!)

A screenshot of the talk.

How to use it:

  1. Download Blender.
  2. Open 'GCAP 2018.blend'.
  3. In the Text Editor pane, select the file 'asteroid_complete.py'.
  4. Click Run script. It will generate, texture and export an asteroid into 'Procgen/Assets'.

The 'scripts' folder contains all of the code I demonstrated on stage. 'scripts/asteroid_complete.py' is probably the most interesting, and is fully commented.

'util.py' contains some helper functions that weren't particularly relevant to the talk's topic.

Follow me on Twitter, at @desplesda, and follow my studio, Secret Lab, at @thesecretlab! You may also be interested in Yarn Spinner, the narrative design tool I work on.

-- Jon

About

Code from my talk at GCAP 2018!

License:MIT License


Languages

Language:Python 100.0%