Hi guys, I’ve been trying to replicate the voxelization effect I had seen many times, so finally came up with this simple script. The idea is to increases a mesh resolution -at least where needed- and then snap all its vertices to a spatial grid. This may not be the smartest approach but I got pretty decent results. Then the script removes everything but a clean vertex cloud, and dupliverts a small cube on it.
The people at blenderheads.org thought in animating this, that’s why there is a second script that also supports animation through enabling and disabling object visibility. A pre animated object is baked on each frame -it can be a mesh with modifiers or even text or curves- and the resulting mesh is processed. A material and a group are created for each object.
Suggestions to improve are welcome.
Give it a try and feel free to add your own creations here…
the script: http://dl.dropbox.com/u/16486113/Blender/3d_Pix.zip
walkcycle test: http://vimeo.com/19112712
some silly test I did: http://vimeo.com/19112282
the original thread at blenderheads.org: http://goo.gl/KXWX3
A few tips:
- set animation start / end range from timeline
- change the prefix name in the script before each pass to keep things clean
- ‘size’ setting is the grid size, ‘smooth’ is smoothing factor when subdividing
- you can animate the static version, maybe with modifiers on the duplivert or the cube/voxel
- all voxels of the same animation shares their mesh data, modify the visible one in edit mode
- ‘hide’ setting: if you enable dupliverts visibility you will see the verts as a trail which adds noise to the viewport, but allows you to move / rotate / scale the entire sequence from the groups mode of outliner…
- can take a while on animations, check the progress update in console