Setting Voxel Coordinates

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
DBProductions
Posts: 0
Joined: Sun Nov 03, 2013 8:08 pm

Setting Voxel Coordinates

Post by DBProductions » Sun Nov 03, 2013 8:11 pm

I've been looking online for a long time, searching for documentation on the subject of Blender Voxel Data. So far, I know that Blender uses many file types, including the .bvox file type. For the .bvox file type, I have found that it uses ASCII characters to load in density values, starting with the dimensions. For example, a data set with dimensions 64,64,64 would save into the .bvox file as:

@@@

However, only the density values are saved. The data set I have is formatted as follows, where dd is a density value:

xx yy zz dd
xx yy zz dd

My python code strips each line and takes only the density values and uses pythons pack struct to pack the values into a .bvox file. This works fine, but I am wondering how Blender knows where to put the coordinates of the densities? Each density value has to be at a specific point, and how does Blender know where that point is? And also, is it possible to specify my own coordinates for each value?

DBProductions
Posts: 0
Joined: Sun Nov 03, 2013 8:08 pm

Post by DBProductions » Tue Nov 05, 2013 2:58 am

Additional Note: I am setting the voxel data as a texture. I don't know if this helps, but maybe I could do something with the texture coordinate mapping system??

Post Reply