Hello,
i am working at an addon which allows to fracture objects and shoot them to pieces in the game engine. It includes with permission pildanovaks core fracture methods, explosion modifier fracture and partially voronoi decomposition. The knife tool is currently defunct due to bmesh changes. The voronoi part of this addon uses an external library, voro++ which you can find here:
The whole addon can be found at:
To use, copy the object_destruction dir below addons/addons_contrib dir in blender.
You need a fresh build of blender (rev 44492 upwards) to use the addon.
Because of the library (which is made usable by cython) this addon currently works
under linux 64 bits (tested under ubuntu 11.10 64 bits) and windows 64 bits (tested under windows 7)
Here are two (excuse the bad quality) videos showing the basic usage of the addon:
try fullscreen and 720 pixels, then it should be viewable.
If anyone is interested, i would need a builder for osx 64 bits and for win/linux/osx 32 bits
The features of the library are not fully solved yet, and some bugs are present,
especially dynamical compounding in the game engine has still its flaws.
Here is a 3rd video showing wall destruction with ground connectivity:
And here is an example wall setup with 500 voronoi shards,
http://www.pasteall.org/blend/12286
just start the gameengine and fire!
Edit: here is another video of a gear rolling down a slope loosing its teeth:
Edit: here is a video showing the usage of voronoi and voronoi + boolean modes:
Edit: here is a blend demonstrating a basic destruction of a window and its wooden framework
http://www.pasteall.org/blend/12889
Edit: here is a basic destructable house, just start game engine, move camera with WSADXY keys
http://www.pasteall.org/blend/13268
Edit: a house with around 950 parts, hit “To Game Parenting” before starting game engine (takes a while)
http://www.pasteall.org/blend/13368
Edit: a video showing gravity based collapse of a simple building
Edit: a tutorial for the destructible wall
Destructable Wall Tutorial:
-
Get Addon here: https://github.com/scorpion81/Blender-Destructability-Editor
-
Copy/symlink folder “object_destruction” to blender add ons folder
-
In Blender Addons, search for “Destructability” and activate it
-
Scale default Cube: x = 1, y = 9, z = 6
-
Move scaled cube up by 6 units
-
Under object property tab, in Destructability, choose Voronoi Fracture as Mode and 500 Parts
-
Hit Destroy Object
-
Select newly created P_0_S_Cube.000 Empty
-
Open Game Engine Setup Options
-
Hit Setup Player
11.Scale Ground Plane y = 9, move player object a bit farther away from wall
12.Move Ground Plane up a bit so it intersects bottom of wall
13.Under Connectivity Grid set X = 1, Y= 9, Z = 6 -
Select P_0_S… again
-
Optionally save file now
-
Hit “To Ground Parenting”
17.Start Game Engine -
Aim with mouse and fire balls by holding / releasing left mouse button (hold longer = more speed)
-
Unconnected wall parts should collapse automatically
Edit : a video showing a crumbling statue
Edit: a video showing a collapsing building and the according video tutorial
Edit: a quick tutorial showing how to set up sequential shatter
Scorpion81