Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 844 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 844 Bytes

magicavoxel_to_scn

This tool converts MagicaVoxel's model to SceneKit scene file.

Require tools

Setup

Setup Meshlab cli tool(meshlabserver)

$ 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

$ git clone github.com:henteko/magicavoxel_to_scn.git

Export ply file

Export your model ply file from MagicaVoxel.

Convert

$ 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