Search code examples
c#unity-game-enginecharacter-encodingvoxel3d-modelling

Extract voxel coordinates from file


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?


Solution

  • 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.