Voxel module for Godot Engine
Go to file
Marc Gilleron 07b7e083dd VoxelProvider now receives an offset in voxels instead of blocks 2017-08-28 15:42:54 +02:00
screenshots
.gitignore
LICENSE.md
README.md
SCsub
config.py
cube_tables.cpp
cube_tables.h
rect3i.h Fixed view distance + dynamic load/unload around viewer 2017-08-28 01:48:36 +02:00
register_types.cpp
register_types.h
transvoxel_tables.cpp
vector3i.h Fixed view distance + dynamic load/unload around viewer 2017-08-28 01:48:36 +02:00
voxel.cpp Update to latest Godot 2017-08-27 15:52:14 +02:00
voxel.h
voxel_block.cpp Fix visibility + staying visible in other scenes 2017-08-28 02:32:23 +02:00
voxel_block.h Fix visibility + staying visible in other scenes 2017-08-28 02:32:23 +02:00
voxel_buffer.cpp Fixed view distance + dynamic load/unload around viewer 2017-08-28 01:48:36 +02:00
voxel_buffer.h
voxel_library.cpp
voxel_library.h
voxel_map.cpp Fixed view distance + dynamic load/unload around viewer 2017-08-28 01:48:36 +02:00
voxel_map.h Fix visibility + staying visible in other scenes 2017-08-28 02:32:23 +02:00
voxel_mesher.cpp
voxel_mesher.h
voxel_mesher_smooth.cpp Fixed view distance + dynamic load/unload around viewer 2017-08-28 01:48:36 +02:00
voxel_mesher_smooth.h
voxel_provider.cpp VoxelProvider now receives an offset in voxels instead of blocks 2017-08-28 15:42:54 +02:00
voxel_provider.h VoxelProvider now receives an offset in voxels instead of blocks 2017-08-28 15:42:54 +02:00
voxel_provider_test.cpp VoxelProvider now receives an offset in voxels instead of blocks 2017-08-28 15:42:54 +02:00
voxel_provider_test.h VoxelProvider now receives an offset in voxels instead of blocks 2017-08-28 15:42:54 +02:00
voxel_raycast.cpp
voxel_raycast.h
voxel_terrain.cpp VoxelProvider now receives an offset in voxels instead of blocks 2017-08-28 15:42:54 +02:00
voxel_terrain.h Fixed view distance + dynamic load/unload around viewer 2017-08-28 01:48:36 +02:00
zprofiling.cpp
zprofiling.h

README.md

Voxel Tools for Godot

C++ module for creating volumetric 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)
  • Support for minecraft-style terrain using voxel types
  • Support for smooth terrain using Transvoxel http://transvoxel.org/
  • Vertex-based ambient occlusion on voxel edges (only cubic mode, 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)
  • Dynamic voxel loading (finite or infinite maps)
  • 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...
  • Seam-free level of detail (LOD)
  • Ability to bake terrains if we don't want them to be editable in game
  • Migrate to DLScript (needs reworks to keep low overhead, but that would be really, really nice)