This tool converts MagicaVoxel's model to SceneKit scene file.
- MagicaVoxel(v0.98)
- Meshlab(v2016.12)
- Xcode(v9.0)
$ cd /Applications/meshlab.app/Contents/MacOS/ # Meshlab install path
$ install_name_tool -add_rpath "@executable_path/../Frameworks" meshlabserver
# reference: https://github.com/cnr-isti-vclab/meshlab/issues/64
$ git clone github.com:henteko/magicavoxel_to_scn.git
Export your model ply file from MagicaVoxel.
$ cd magicavoxel_to_scn
$ ruby convert.rb /path/to/model.ply
# Create model.scn and model_tex.png
# Option: Set scale
$ ruby convert.rb /path/to/model.ply 0.1 # Default scale is 0.01