Commit Graph

328 Commits

Author SHA1 Message Date
469ca4cc5e Fix compile on 4.0. 2020-06-20 23:17:32 +02:00
d7a853cc73 Add note about godot versions into Readme.md. 2020-06-20 22:08:07 +02:00
b88e430950 Remove unused import. 2020-06-20 22:07:50 +02:00
cdc918a5b8 Update the Readme.md. 2020-06-12 19:40:18 +02:00
7219d7b2d4 Added a Cubic chunk and World. 2020-06-12 19:34:47 +02:00
7c95171944 Added a MarchingCubes World and Chunk. 2020-06-12 18:36:00 +02:00
61a8b9224f Removed _add_chunk_liquid from VoxelMesher as it's not used anymore. 2020-06-12 18:06:41 +02:00
cc90d3b54b Removed the Transvoxel Mesher. 2020-06-12 18:02:46 +02:00
a83585bd81 Turned the Transvoxel mesher into a MarchingCubes mesher. Removed the parts that weren't used. 2020-06-12 17:59:04 +02:00
aeff73083e Link the demonstration project. 2020-06-11 12:36:24 +02:00
ab65bc13d2 One more tiny improvement. 2020-06-11 12:15:05 +02:00
56ce758375 Fix an another typo. 2020-06-11 12:14:30 +02:00
5ac57800d4 Fix newlines. 2020-06-11 12:13:57 +02:00
1a2f0edc1f A few more improvements to Readme.md. 2020-06-11 12:08:03 +02:00
1d783242b2 Also mention optional dependencies, and fix a few typos. 2020-06-11 12:02:47 +02:00
e55f7a3eaa Rewrote the Readme.md. 2020-06-11 11:54:18 +02:00
7c93cc8f52 VoxelWorldDefault will not update lods automatically for now. 2020-05-23 21:59:58 +02:00
dfa2b527e6 Fix 3.2 compile. 2020-05-23 10:37:14 +02:00
1d51be2f0b Moved 4.0 compatibility code into a new defines.h (like in ESS). 2020-05-23 10:34:47 +02:00
703acd1b56 Fix world to voxel calculations when the voxel scale is not 1. 2020-05-19 00:50:19 +02:00
edce32b190 Fix compile for 4.0. 2020-05-16 21:32:02 +02:00
c48dfde661 Now the Transvoxel mesher will only interpolate between uv1 and uv2 at 3 steps (0, 0.5, 1). 2020-05-09 21:24:23 +02:00
19f3c1f8ff Fix compile for javascript. 2020-04-26 00:34:34 +02:00
233dde39de Fix registering VoxelMesherDefault. 2020-04-24 09:14:22 +02:00
af0c4d6586 add_chunk will error out now if a chunk is already owned by an another world. Also smaller improvements to set_chunks and the exit tree notification. 2020-04-22 15:57:00 +02:00
a2a9c1f714 Fix an in-editor scene-saving related crash. 2020-04-22 12:35:48 +02:00
9475986ee0 Added is_inside_tree() property to VoxelChunk. 2020-04-22 12:33:14 +02:00
b970c86264 Hide a few properties from the editor, and also from serialization. 2020-04-22 12:26:53 +02:00
49af0c9f30 Fix potential crash. 2020-04-22 12:23:49 +02:00
efd08f69bf Allow the level generator to be null, without failing. 2020-04-22 12:21:50 +02:00
a34ceedf6a Now merge_mesh_array and bake_mesh_array_uv will work properly even if the supplied arrays don't have all the expected channels. 2020-04-22 12:20:33 +02:00
a306f8cf91 Add queued generation the VoxelChunkDefault. 2020-04-22 12:16:31 +02:00
f00dd13c43 Fix typo. 2020-04-20 18:19:33 +02:00
5235641122 Only build liquid colliders inside the editor. 2020-04-20 17:41:37 +02:00
23e5f1cedf Sync classref with current source. 2020-04-20 17:37:01 +02:00
61c246c069 Disabled area generation for now. 2020-04-20 17:33:04 +02:00
9635ef064c A bit more work on areas. They don't work properly yet, they might need to have a closed mesh. 2020-04-20 17:30:22 +02:00
ed990caa32 Fix threaded ingame area generation. 2020-04-20 13:59:37 +02:00
70c884d273 Fix a few in-editor crashes. 2020-04-20 13:54:24 +02:00
5748179d66 The temp collider arrays are now properly cleared. 2020-04-20 13:40:27 +02:00
289c456428 Now VoxelChunkDefault can create area colliders aswell, liquids are created using these in the running game. (Only there because the editor needs raycasting.) Also fixed setting liquid visibility. 2020-04-20 01:01:24 +02:00
6e9a952a2a Implemented liquid meshing. 2020-04-20 00:31:46 +02:00
1c0854a845 Remove unused class variable. 2020-04-19 23:56:11 +02:00
1a1c0ade12 Liquid mesher will only mesh liquid blocks now. 2020-04-19 23:55:06 +02:00
e07bb3850d Now the blocky mesher will not mesh the liquid blocks. 2020-04-19 23:48:59 +02:00
21ad01ca80 Removed separate liquid surfaces. They will be contained inside the normal voxel arrays. 2020-04-19 23:35:47 +02:00
bb7daf8f6b Added liquid property to VoxelSurface, also small api cleanup. 2020-04-19 23:10:23 +02:00
ab26a7627a Added a blocky liquid mesher. (It's just a copy of the normal blocky mesher for now.) 2020-04-19 23:02:37 +02:00
23c4321d71 Added missing classes to config.py, and sync classref with the current source. 2020-04-18 02:33:05 +02:00
4a2321b161 Some settings in world will now get distributed to chunks. is_build_threaded has been moved from coxel chunk default to voxel chunk. ALso fixed a few crashes. 2020-04-18 02:15:01 +02:00