Convert MagicaVoxel's .vox
files to optimized mesh .obj
files, from the command line.
Supported features:
- Export scene trees to multiple
.obj
files, one per frame per model. - Export palette textures: albedo, metalness, roughness, emission.
Unsupported features:
- Transforms (translation + rotation).
- Transparency.
Exported models have a scale of 1 block = 1 unit.
Install cargo
, then type in your favorite shell:
cargo install --git https://github.com/lefebvreb/vox2obj
You can then execute vox2obj
like so:
vox2obj --help
One may be able to use the spade crate to perform constrained Delaunay triangulation on the polygonal faces of the model, to get an optimal (in the vertex count) meshing of the model.