Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Addon for the Blender 3D modeling software for loading MagicaVoxel VOX files

License

NotificationsYou must be signed in to change notification settings

AstrorEnales/blender_magicavoxel

Repository files navigation

GitHub release (latest by date)GitHubGitHub all releasesDiscorditch.ioblender.org

blender_magicavoxel

Addon for theBlender 3D modeling software forloadingMagicaVoxel VOX files.

If you enjoy the addon and want to support the maintenance and future development feel free to chip in onitch.io.

💾 Download

The latest version can be downloadedhere.

🧪️ Version Compatibility

The primary goal is the support of the newest version of both MagicaVoxel and Blender. Of course the addon works wellwith other versions as well (seeCompatibility). If you need support for specific (older) versions,please feel free to create an issue withthe version info.

🔧 Installation

Blender 4.2 or newer

Starting with Blender 4.2, the addon can be installed directly inside Blender from theextensions platform!

Before Blender 4.2

A detailed description of how to install addons in Blender can be found intheBlender documentation for installing addons.

Go toEdit > Preferences > Add-ons, click onInstall, and selectblender_magicavoxel.py. After that, activate theaddon.

✈️ Usage

Go toFile > Import > MagicaVoxel (.vox) and select the file you want to import.

Import Hierarchy

This options determines whether the hierarchy from MagicaVoxel is imported as empty axis objects in blender and alltransformations (translation and rotation) are applied hierarchically. If not, all transformations are calculatedand applied to each model and no hierarchy parent structure is created.

Join Models

This option allows all models in the MagicaVoxel file to be merged into one. Joining is done on a voxel basis and beforemeshing which is superior to just combining the blender meshes for generating the voxel hull and greedy meshing.

Voxel Size

The voxel size parameter can be used to define the unit voxel size. The example below shows a voxel model imported withvoxel size 1.0, 1.5, and 2.0.

Material Modes

MagicaVoxel files contain a color palette and additional material properties per color in the palette. This addonsupports different modes how this information is imported.

⚠️ Please note: Additional material props are still experimental and under development

ModeDescription
IgnoreNeither colors nor materials are imported.
Vertex ColorOnly the color palette will be imported and assigned to face vertex colors. A simple material is added using the vertex colors as 'Base Color'.
Material Per ColorA material is added per color in the color palette and assigned to the faces material index.
Materials As TextureThe color palette is created as a 256x1 texture. A simple material is added using this texture.
Textured Models (UV unwrap)Each model is assigned a material and texture with UV unwrap. (Only usable/sensible for Greedy meshing)

Import Material Properties

Depending on the material mode, additional material properties are either added as a separate vertex color layer,texture, or blender material nodes.

ModeDescription
Vertex Color + PropThe color palette and certain material properties are assigned as vertex color layers. A simple material is added using the vertex color layers.
Material Per Color + PropA material is added per color in the color palette and assigned to the faces material index. Additional material properties are stored for each material.
Materials As Texture + PropThe color palette and certain material properties are created as a 256x1 texture. A simple material is added using these textures.
Textured Models (UV unwrap) + PropEach model is assigned a material and textures with UV unwrap. (Only usable/sensible for Greedy meshing)

Textured Models (UV unwrap)

To simplify the workflow from MagicaVoxel to "Game Ready" assets the "Textured Models (UV unwrap)" material modelgenerates textures for base color, emission, roughness, and metallic in combination with UV unwrapping the model facesonto these textures.

As game assets are generally only sensible as optimized meshes, this material mode is only usable/sensible for the"Greedy" meshing mode.

Voxel Hull

This option is only available for certain meshing types and implicitly active for others. If checked, each model isanalyzed to find the voxel hull and all other voxels inside the model are deleted/ignored.

Meshing Types

This addon supports different methods of representing the loaded voxel models.

Voxel as Models

Voxel as models meshing generates a six-sided cube for each voxel as separate models. Depending on the voxelhull option, cubes are only generated for the hull or all voxels defined in the model.

⚠️ Beware that this option may be slow as alot of cube models may be generated!

Simple Cubes

Simple cubes meshing generates a six-sided cube for each voxel combined in one mesh per model. Depending on the voxelhull option, cubes are only generated for the hull or all voxels defined in the model.

Simple Quads

Simple quads meshing generates the voxel hull of all models and creates only faces where voxel cube faces are visiblefrom outside.

Greedy

Greedy meshing is equivalent to simple quads as it only creates faces of the voxel hull visible from outside, with theaddition of greedily joining quads where possible.

You may read more about greedymeshinghereandhere.

Related Works / Feature Comparison

Thistechnistguru/
MagicaVoxel_Importer
RichysHub/
MagicaVoxel-VOX-importer
ldo/
blender_magivox_import
Active[ref]~Last update 06.07.2021
Supported VOX version150, 200150150150
Hierarchy
MaterialWIP (MATT, MATL)[#1]✅ (MATL)~ (MATT)~ (MATT)
Textures with UV unwrap
CameraWIP[#3]
Rendering PropertiesWIP[#4]
Join Models
Voxel Scale
Custom Meshing Types
Reduce To Voxel Hull

[8]ページ先頭

©2009-2025 Movatter.jp