Voxel module for Godot Engine
Go to file
2019-04-20 18:08:00 +01:00
dmc Fix dual grid debug mesh not making cubes properly; check for emptyness 2019-04-20 18:08:00 +01:00
screenshots
transvoxel Fix compilation 2018-09-29 17:51:09 +01:00
.gitignore
config.py
cube_tables.cpp Fix UVs, change tables to use OpenGL convention... 2018-10-05 23:51:55 +01:00
cube_tables.h Fix UVs, change tables to use OpenGL convention... 2018-10-05 23:51:55 +01:00
LICENSE.md
README.md
rect3i.h Added try_set_voxel and fix fill_area in cases where the box is out of range 2018-10-04 23:13:03 +01:00
register_types.cpp Dual marching cubes WIP (only octree and dual grid extraction, untested) 2019-04-20 17:32:10 +01:00
register_types.h
SCsub Dual marching cubes WIP (only octree and dual grid extraction, untested) 2019-04-20 17:32:10 +01:00
utility.h Remove reference to dvector.h 2019-04-13 18:47:35 +01:00
vector3i.h Added try_set_voxel and fix fill_area in cases where the box is out of range 2018-10-04 23:13:03 +01:00
voxel_block.cpp
voxel_block.h
voxel_box_mover.cpp Fix misplaced semicolon 2019-01-01 16:43:14 +00:00
voxel_box_mover.h Added box mover utility for quick move and slide physics 2018-10-01 00:11:33 +01:00
voxel_buffer.cpp Dual marching cubes WIP (only octree and dual grid extraction, untested) 2019-04-20 17:32:10 +01:00
voxel_buffer.h Dual marching cubes WIP (only octree and dual grid extraction, untested) 2019-04-20 17:32:10 +01:00
voxel_library.cpp
voxel_library.h
voxel_map.cpp Fix potential issue, the block state being checked was always the same 2018-09-30 23:32:01 +01:00
voxel_map.h Make VoxelBlock defined when including VoxelMap 2019-01-01 16:44:19 +00:00
voxel_mesh_updater.cpp Sort thread updates only when necessary 2018-09-29 17:52:38 +01:00
voxel_mesh_updater.h Sort thread updates only when necessary 2018-09-29 17:52:38 +01:00
voxel_mesher.cpp Add an italian pointy hand where there should have been an italian pointy hand 2018-12-14 00:22:03 +00:00
voxel_mesher.h
voxel_provider_image.cpp
voxel_provider_image.h
voxel_provider_test.cpp Stop using ADD_PROPERTYNZ 2018-12-14 00:21:28 +00:00
voxel_provider_test.h
voxel_provider_thread.cpp
voxel_provider_thread.h
voxel_provider.cpp
voxel_provider.h
voxel_raycast.cpp
voxel_raycast.h
voxel_terrain.cpp Added function to make an area dirty 2018-10-01 20:48:47 +01:00
voxel_terrain.h Added function to make an area dirty 2018-10-01 20:48:47 +01:00
voxel.cpp Fix UVs, change tables to use OpenGL convention... 2018-10-05 23:51:55 +01:00
voxel.h Moved side, edge and corner enums to cube tables, and renamed CubeTables to Cube 2018-09-30 19:38:02 +01:00
zprofiling.cpp
zprofiling.h

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".

What this module provides

  • Fully editable terrain as long as you call the right functions (see demo: https://github.com/Zylann/voxelgame)
  • Voxel storage using 8-bit channels like images for any general purpose
  • Data segmentation using blocks of 16x16x16 voxels (so the world can be theoretically infinite)
  • Main development oriented for minecraft-style terrain by using voxels as types
  • Experimental support for smooth terrain using Transvoxel http://transvoxel.org/, by using voxels as isolevels
  • Vertex-based ambient occlusion on voxel edges
  • Simple interface for deferred terrain generators (block by block using threads)
  • Uses threads to stream terrain as the camera moves
  • Optional performance statistics

What this module doesn't provides

  • Level of detail (not a priority for my project)
  • Game specific features such as cave generation or procedural trees (though it might include tools to help doing them)
  • Editor tools (only a few things are exposed)
  • Import and export of voxel formats
  • For reasons why I don't work on X or Y, see https://github.com/Zylann/godot_voxel/issues/17