Voxel module for Godot Engine
Go to file
2017-04-01 20:34:44 +02:00
screenshots
.gitignore
config.py
LICENSE.md Added license 2016-07-28 00:21:21 +02:00
README.md Update README 2017-04-01 20:34:44 +02:00
register_types.cpp Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
register_types.h
SCsub Removed useless line in SCsub 2016-05-05 21:09:13 +02:00
vector3i.h Blocks updates can be sorted by distance to viewer 2017-03-28 00:56:01 +02:00
voxel_buffer.cpp Make it easier to edit voxels one by one + a few fixes for that 2017-03-29 22:36:42 +02:00
voxel_buffer.h Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
voxel_library.cpp Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
voxel_library.h Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
voxel_map.cpp Make it easier to edit voxels one by one + a few fixes for that 2017-03-29 22:36:42 +02:00
voxel_map.h Make it easier to edit voxels one by one + a few fixes for that 2017-03-29 22:36:42 +02:00
voxel_mesher.cpp Added profiling information (for engine dev mostly) 2017-04-01 20:10:38 +02:00
voxel_mesher.h Added profiling information (for engine dev mostly) 2017-04-01 20:10:38 +02:00
voxel_provider_test.cpp Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
voxel_provider_test.h Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
voxel_provider.cpp Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
voxel_provider.h Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
voxel_raycast.cpp Added simple voxel raycast 2017-03-26 20:07:01 +02:00
voxel_raycast.h Added simple voxel raycast 2017-03-26 20:07:01 +02:00
voxel_terrain.cpp Added profiling information (for engine dev mostly) 2017-04-01 20:10:38 +02:00
voxel_terrain.h Added profiling information (for engine dev mostly) 2017-04-01 20:10:38 +02:00
voxel.cpp Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
voxel.h Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
zprofiling.cpp Added profiling information (for engine dev mostly) 2017-04-01 20:10:38 +02:00
zprofiling.h Added profiling information (for engine dev mostly) 2017-04-01 20:10:38 +02:00

Voxel Tools for Godot

C++ module for creating cube-esque voxel worlds in Godot Engine.

Example screenshot

Setup

Install the contents of the repo in a folder under "modules/", named "voxel".

IMPORTANT: if you clone the repo, Git will create the folder as the repo name, "godot_voxel". But because Godot SCons scripts consider the folder name as the module's name, it will generate wrong function calls, so you must rename the folder "voxel".

Features

  • Fully editable terrain (see demo: https://github.com/Zylann/voxelgame)
  • Compact voxel storage using 8-bit channels like images
  • Data segmentation using blocks of 16x16x16 voxels (so the world can be theoretically infinite)
  • Calculates meshes based on grid of voxels. Only visible faces are generated.
  • Vertex-based ambient occlusion on voxel edges (comes for free at the cost of slower mesh generation)
  • Mesh-based physics based on Godot (high generation cost but works at decent speed)
  • Simple interface for deferred terrain generators (block by block)
  • Optional profiling information

Ideas TODO

  • Automatic terrain generation (currently not automatic)
  • Voxels can be of any shape, not just cubes (not fully accessible yet but present in code)
  • VoxelStreamer node to put on players so terrains know which voxels to load around them
  • Support internal threading
  • Support saving and loading through helper classes
  • Promote classes to Node and Resource for better editor experience
  • Helpers for structure generation (anything that is bigger than one voxel)
  • Convert any imported meshes to Voxel-ready meshes (to comply with a few optimizations)
  • Generate Mesh resources from voxels so they can be used in the editor as MeshInstances
  • Import resources from other editors like Magicka-voxel
  • Volumetric grid algorithms: fluids, pathfinding, lighting...
  • Smooth meshes with the Transvoxel algorithm
  • Seam-free level of detail (LOD)
  • Ability to bake terrains if we don't want them to be editable in game