The purpose is to get a simple 3d animation working in Godot (no skeleton animation).
In MagicaVoxel, I created a model of Bethee for every frame of the walk cycle, with the 'idle' model as a starting point.
Next, I exported all models as separate .obj files, and imported them by one into Blender.
With each model, I removed the duplicate vertices and set the origin to the bottom of the mesh (center).
Cleaning up a MagicaVoxel
model in Blender gives you at least 2 advantages : you can reduce the number of vertices (for this simple mesh, I went from
about 1350 verts to about 420 verts), and you can set a convenient origin.
The 7 meshes were then copied into a second layer and positioned at (0,0,0) for exporting as .obj files (= 7 .obj files).
As I indicated in the previous blog post, there are several ways to get your model from MagicaVoxel into Godot. You can :
The addon is installed on a per-project basis. In other words : you can only install it in an existing project !
Go to the AssetLib tab (1), and search for 'MagicaVoxel' (2). Click the 'MagicaVoxel Importer' by Scayze, and press 'install'. I'm using version 1.3 of the addon.
You see a 'success' message (1) when the addon has finished downloading. Click the 'install' button to install the addon in your project 'res' folder (2).Continue reading.