Skip to content

Render MagicaVoxel vox files using the Unity VFX Graph

License

Notifications You must be signed in to change notification settings

IxxyXR/VoxelVFX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voxel VFX

Example

Render MagicaVoxel .vox files with the Unity Visual Effect Graph

Requirements

Unity 2019.1 or later.

This project uses the HDRP as that's the only way to get lit meshes in the VFX graph at present.

Instructions

There are two VFX graphs and two example projects.

Volume: The simpler example. Converts each voxel into a pixel in a texture3D. This means even empty voxels are rendered (as transparent meshes)

Sprite: More efficient. The voxels are stored in a texture with rgb=xyx for position and the alpha channel storing an index into a separate pallette texture that provides the color information.

The latter scene file currently scans for files in the specified directory that match the given pattern. Check out the scene itself.

Credits

About

Render MagicaVoxel vox files using the Unity VFX Graph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages