Go to file
Cory Petkovsek b13dccd998 Fix gcc shadow warning 2019-06-22 23:24:34 +09:00
math Added bit-shifting and comparison operators to Vector3i 2019-05-03 23:54:35 +01:00
meshers Fix gcc sign comparison warnings 2019-06-18 14:24:56 +09:00
screenshots Add smooth terrain screenshot 2019-05-05 19:55:05 +01:00
streams Fix VoxelStreamImage.channel property inconsistency 2019-05-30 00:46:08 +01:00
terrain Fix gcc shadow warning 2019-06-22 23:24:34 +09:00
util Fix gcc sign comparison warnings 2019-06-18 14:24:56 +09:00
.gitignore Gcc compiling fixes 2019-06-18 11:27:55 +09:00
LICENSE.md Added license 2016-07-28 00:21:21 +02:00
README.md Indicate LOD works with smooth terrain 2019-05-06 01:39:45 +01:00
SCsub Reorganize SCons script 2019-05-30 00:45:19 +01:00
config.py Compilation fixes 2018-09-02 18:48:08 +01:00
cube_tables.cpp Fix UVs, change tables to use OpenGL convention... 2018-10-05 23:51:55 +01:00
cube_tables.h Reorganize all files and rename a few things 2019-04-28 17:58:29 +01:00
octree_tables.h Moved ObjectPool to util/ and moved OctreeTables to root 2019-04-29 21:31:08 +01:00
register_types.cpp Rename "provider" files to "stream" 2019-05-25 16:16:03 +01:00
register_types.h Added project: first working prototype, but lots of TODOs 2016-05-01 15:00:02 +02:00
voxel.cpp Reorganize all files and rename a few things 2019-04-28 17:58:29 +01:00
voxel.h Code formatting 2019-04-28 01:34:00 +01:00
voxel_buffer.cpp Fix gcc sign comparison warnings 2019-06-18 14:24:56 +09:00
voxel_buffer.h Revert some castings 2019-06-22 22:14:27 +09:00
voxel_isosurface_tool.cpp Fix gcc multiline comments, uninitialized vars, unused vars warnings 2019-06-18 12:38:44 +09:00
voxel_isosurface_tool.h Added VoxelIsoSurfaceTool::do_heightmap(), untested 2019-04-24 02:08:45 +01:00
voxel_library.cpp Fix gcc sign comparison warnings 2019-06-18 14:24:56 +09:00
voxel_library.h Fix gcc sign comparison warnings 2019-06-18 14:24:56 +09:00

README.md

Voxel Tools for Godot

C++ module for creating volumetric worlds in Godot Engine.

Blocky example screenshot Smooth example screenshot

Setup

You need to get the source of Godot 3.1+ and recompile it with this module.

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". For more info about Godot modules, see http://docs.godotengine.org/en/3.1/development/cpp/custom_modules_in_cpp.html

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 paging using blocks of 16x16x16 voxels, so the world can be streamed with threads as you move
  • Minecraft-style terrain with voxels as types, with multiple materials and baked ambient occlusion
  • Smooth terrain with voxels as distance field (using extensions of marching cubes)
  • Level of detail for smooth terrain (no edition support yet)
  • Simple interface for custom terrain generators (block by block using threads)

What this module doesn't provides

  • Level of detail for blocky terrain
  • 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

Roadmap

I work on this module whenever I want and add things I'd like to have, so the roadmap is pretty much depending on my personal agenda.