Voxel-Terrain-Generation

Simple experimentations of terrain generation in Unity3D and MagicaVoxel to render voxels.

MIT License

Stars
24

Voxel Terrain Generation

This repository shows the way I've setup Unity3D to be able to create terrain generators and export them to VOX files.

Disclaimer : the code presented here is not optimized at all! This is just the first take on this subject I have been doing and requires several cycles of cleaning up.

How does it work

Add the GeneratorScript behaviour on any game object in Unity, plug it in any kind of mesh renderer and it's good to go.

You can create your own generators by inheriting the AbstractGenerator class and modifying a bit the GeneratorScript to select and preview them.

Credits

I'm working on

  • Fixing the various bugs/issues in my code
  • More generators
  • Improving VOX files reading in the VOX parser