Wednesday, May 29, 2013

Voronoi Shatter Bunny Demo


A friend made this demo for me, an real Maya expert.

The bunny was shattered into 829 pieces. I haven't done any optimization to the code yet. The performance is acceptable compared to commercial products.

When handle obj model files, take care that face index starts from 1. Voro++ and Carve are used. Make sure the normal direction is correct before using Carve for Boolean operations.

Thursday, May 16, 2013

Voronoi Shatter

It's my first step to a Voronoi shatter. After several days struggle with qhull, I turned to Voro++ for Voronoi diagram computation. For shattering a cube into 5000 shards, it will cost about 1 second on my machine, which also includes saving the output into a OBJ file. The simulation is done by Bullet within Maya. Demo is made with help of a friend who is a Maya expert.