Skip to content

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

Notifications You must be signed in to change notification settings

henteko/magicavoxel_to_scn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published