Extract voxel coordinates from file

1.1k views Asked by At

I'm making a game in Unity C# and need to extract voxel position (and ideally color) from my MagicaVoxel editor which saves it's files in the .vox format, and can export in a few other ones.

I'd think it's best to extract this information from the .vox files, but none of my text editing programs could decern it's encoding. Does anyone know how exactly I should go about getting this data?

1

There are 1 answers

0
ari On BEST ANSWER

Here's the answer in case someone is still interested: with the export option you can save it in the .ply format (click 'point' - export point clouds). If you open the .ply file with a text editor, you will find the coordinates and the associated RGB values.