Converting texture data pixels to voxels in Blender

It all started when I wanted to grab some colors from Vincent Van Gogh for use in one of my renders. I figured it should be possible to convert pixels into voxels, and using Blender’s Python API, it was pretty easy. This technique might have general appeal, so I created a video tutorial for it.

The python script reads pixels RGB values from an texture image you specify by name. It then creates a new diffuse shader material of the same color for each pixel (wasteful!), and final it creates a rectangular prism at x,y coordinates, whose hight is determined by the pixels intensity.
Thanks for checking it out!

Advertisement