Tuesday, May 22, 2012

Voronoi Texture Fracture

Tool has been updated multiple times since this post. Fixed bugs, added features. More stuff to come ...

I'm currently taking the Advanced Maya Dynamics - Breaking Ground class at CGWorkshops taught by David Alexander. The stuff we went through in the first week inspired me to write this little tool

Voronoi Texture Fracture GUI
It can fracture flat objects based on an image or by using voronoiTexture3D. The voronoi texture can be created and adjusted through the GUI as well as the options for the texture to geometry conversion.

Fractured and extruded pieces generated from a poly plane (click to enlarge)

- create and assign a (SOuP) voronoi shader (+sets hw shading options)
- auto convert shader to image 
- fracture geometry using (this) image
- separate texture2geometry output by object ids (SOuP)
- remove redundant edges (any but border edges)
- extrude all fractured parts
- create shaders per piece
- center pivots of fractured pieces

You will need to have the SOuP plug-in by Peter Shipkov installed and loaded for this script to work.

Download the script HERE.