Commit Graph

39 Commits

Author SHA1 Message Date
Marc Gilleron
47a3fe97d3 Added function to make an area dirty 2018-10-01 20:48:47 +01:00
Marc Gilleron
f05762b683 Fix potential issue, the block state being checked was always the same 2018-09-30 23:32:01 +01:00
Marc Gilleron
a875b85498 Don't send empty blocks to the updater, so we avoid a copy and unnecessary face extraction 2018-09-29 21:47:53 +01:00
Marc Gilleron
606e131c25 More stats 2018-09-29 18:59:19 +01:00
Marc Gilleron
1cac9beec4 Add an internal option to run the terrain in editor, which defaults to false because editor integration currently isn't thread-safe 2018-09-28 01:10:35 +01:00
Marc Gilleron
4d6765130d Fix thread loops missing blocks 2018-09-27 00:31:09 +01:00
Marc Gilleron
7357060377 Several fixes, a few bugs remain
- Spread mesh updates on the main thread to reduce stalls
- Fix some ambiguous situations with an additional block state
- Expose block states for debug drawing
2018-09-26 01:22:23 +01:00
Marc Gilleron
8f349a1c9a Moved loading and meshing to 2 threads, will need a few bugfixes 2018-09-25 00:54:07 +01:00
Marc Gilleron
a0026dbbeb Fix includes 2018-09-19 20:25:04 +01:00
Marc Gilleron
7319fa1c56 Compilation fixes 2018-09-02 18:48:08 +01:00
Marc Gilleron
07b7e083dd VoxelProvider now receives an offset in voxels instead of blocks 2017-08-28 15:42:54 +02:00
Marc Gilleron
126f367c50 Fix visibility + staying visible in other scenes 2017-08-28 02:32:23 +02:00
Marc Gilleron
115e0e2870 Fixed view distance + dynamic load/unload around viewer 2017-08-28 01:48:36 +02:00
Marc Gilleron
fdb61c9b62 Update to latest Godot 2017-08-27 15:52:14 +02:00
Marc Gilleron
40dcf89f57 Don't parse smooth voxels if the buffer is uniform 2017-08-20 19:15:36 +02:00
Marc Gilleron
6419e78fc2 Use VisualServer directly for mesh instances 2017-08-20 18:37:08 +02:00
Marc Gilleron
a371e7fc9a Use Engine singleton 2017-08-20 18:26:35 +02:00
Marc Gilleron
cb548234fc Block size is no longer a constant 2017-08-20 15:17:54 +02:00
Marc Gilleron
df13e025ca Expose things to the editor, first iteration, might be buggy 2017-08-15 02:24:52 +02:00
Marc Gilleron
51596fef95 Clang-format 2017-08-13 01:19:39 +02:00
Marc Gilleron
bc75ec863b Tweak generation time 2017-08-13 00:16:03 +02:00
Marc Gilleron
e74d64335c Remove obsolete physics, will be re-implemented later 2017-08-13 00:11:51 +02:00
Marc Gilleron
05dfddfa20 Fix type hints in method registration 2017-08-13 00:10:18 +02:00
Marc Gilleron
dd64868c2e Fix compilation 2017-06-24 01:20:24 +02:00
Marc Gilleron
f07ddb37e3 Voxel raycast now considers smooth voxels too 2017-04-09 20:52:39 +02:00
Marc Gilleron
a5a1ded2f3 Added smooth voxels (untextured at the moment) 2017-04-06 23:44:11 +02:00
Marc Gilleron
a25c592cab Added profiling information (for engine dev mostly) 2017-04-01 20:10:38 +02:00
Marc Gilleron
2f64e019b7 Fix missing block updates causing ambient occlusion to linger 2017-03-31 01:45:06 +02:00
Marc Gilleron
9cce2aabcb Make it easier to edit voxels one by one + a few fixes for that 2017-03-29 22:36:42 +02:00
Marc Gilleron
4a24e28fce Blocks updates can be sorted by distance to viewer 2017-03-28 00:56:01 +02:00
Marc Gilleron
ef4d07ca03 Added simple voxel raycast 2017-03-26 20:07:01 +02:00
Marc Gilleron
353b32c49a Added collision shape generation 2017-03-26 18:09:37 +02:00
Marc Gilleron
fa5e419549 Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
Marc Gilleron
06a399f932 Fixed set_voxel() and block force_update_blocks() 2017-01-05 02:39:40 +01:00
Marc Gilleron
d3ab015c67 VoxelBlock is no longer a Reference 2017-01-03 02:50:19 +01:00
Marc Gilleron
7f12904d60 Fixed VoxelTerrain not working if no script is attached 2017-01-02 23:57:50 +01:00
Marc Gilleron
c75d1e78b2 Voxels are loaded through VoxelProvider 2017-01-02 02:15:57 +01:00
Marc Gilleron
8d1c8cc339 Spaces to tabs 2017-01-01 04:40:16 +01:00
Marc Gilleron
5662dfde7b Added VoxelMap and VoxelTerrain + various fixes 2016-05-10 01:59:54 +02:00