Skip to content

Convert MagicaVoxel's .vox files to optimized mesh .obj files, from the command line.

License

Notifications You must be signed in to change notification settings

lefebvreb/vox2obj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vox2Obj

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.

Installation and Usage

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

Future ideas

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.

About

Convert MagicaVoxel's .vox files to optimized mesh .obj files, from the command line.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages