✒ I apologize that English is not my 1st language. So these 🗎s are possibly no warranty, just like this license is so. 🐉
- Import models and animation frames from MagicaVoxel
.vox
files. - Imported meshes have per-vertex color and UV3 as material based voxel data.
- MagicaVoxel 0.99.1a
- Unity
2018.2.8f1
2018.3.0b1
- Added
VoxelImporter
is derived fromScriptedImporter
as a Unity experimental feature in Unity2018.2.x
. VoxelImporter
can import a MagicaVoxel.vox
file as an asset. No more extra prefab needed in a project folder.VoxModel
no longer directly used.VoxModel
will now be contained as namedvox
in its portion of the asset of.vox
file.- Asset of
.vox
file is saved by Unity at out of project folder. Therefore, you can reduce the size of the project (repository). - Added
VoxImportSettings
describesVoxModel
importing settings isolated fromVoxModel
. - Example scene
AnimationExample.unity
and corresponded assets are reconstructed. (not fully compatible with previous)
- Added
package.json
is contained for Package Manager.
- Add
.vox
file into your project folder. - Select it in project window.
- In the Import Settings (Scripted Importer Editor) inspector by
VoxelImporter
, select the SettingsVoxImportSettings
. (or create a newVoxImportSettings
) - Click
Apply
button. (If it grayed out,Reimport
instead)
- Temporal
package.json
is contained for Package Manager.- For more informations ☛ XELF.Hexelate.Shader
Advanced Features from original MagicaGN00T on 30 Mar 2017
- Added supports for MagicaVoxel .vox File Format extension (of MagicaVoxel 0.99.1a)
- Added supports for LOD (Level of Detail): simple LOD generation.
- Added supports for material categorized meshes: Opaque / Transparent
- Added supports for Scene Graph (
nTRN
/nGRP
/nSHP
chunks) - Added supports for
MATL
(newer Material) chunks- Added shader supports for Smoothness / Emission / Metallic
- Added Transparent shader
- Added supports for
LAYR
(Layer) chunks- In Scene Graph, objects will import as inactive when its layer is set invisible.
- Added supports for
rOBJ
(Rendering Setting undocumented) chunks- note: Not used in imported models
- Added
Omits UV unwrapping
option: for fast iteration
- Scene Graph
- ⚠ Scale
Origin
should be set0.5
0.5
0.5
. Otherwise, incorrect results. - ⚠ Some rotations (flips) have bugs.
- ⚠ Multiple voxel objects will not merged. That is, arrayed transparent (glass) objects can still be seen visible seams.
- ⚠ Scale
- ⚠ This edition written in C#6
- Required settings:
Player Settings
►Configuration
►Scripting Runtime Version
➡.NET 4.x Equivalent
- Required settings:
- ⚠ Breaking Changes contained in.
- ⚠ Imported assets are incompatible with the original
MagicaGN00T
. That is,Generate Model
needed again when you migrate assets.
- ⚠ Imported assets are incompatible with the original
- ⚠ Colors and materials are imported as per-vertex data. Therefore, original Unity Standard shader does not suitable for this.
- ⚠ Not included examples for advanced features
- ⚠ Image is from the original
MagicaGN00T
☛ View AnimationExample
as WebGL (based on original edition)
- ⚠ Image is from the original
MagicaGN00T
- ⚠ Image is from the original
MagicaGN00T
- ⚠ Does not currently cared
- ⚠ Image is from the original
MagicaGN00T