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
085f94579a
Use named constant
2018-09-25 00:53:12 +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
488ca3e6fd
Fixed Vector3i != operator
2017-08-28 01:44:12 +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
6b3f16e699
Fix wrong block size mask value
2017-08-20 17:45:44 +02:00
Marc Gilleron
dc4f0c5cd1
Moved VoxelBlock to its own file
2017-08-20 15:48:55 +02:00
Marc Gilleron
aa4d04d1a0
Moved moore neighboring to cube tables
2017-08-20 15:37:07 +02:00
Marc Gilleron
cb548234fc
Block size is no longer a constant
2017-08-20 15:17:54 +02:00
Marc Gilleron
cb6de49b96
Got rid of SurfaceTool in the cubic mesher, moved cube tables in their own file, tweaked their winding
2017-08-19 21:10:31 +02:00
Marc Gilleron
239eb11451
Fix compilation
2017-08-15 21:37:23 +02:00
Marc Gilleron
7be5d78e4b
Removed useless variable
2017-08-15 21:37:08 +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
3b6430ef83
Fix cubic mesher not setting up mesh materials
2017-08-13 00:12:52 +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
5823dfcb8c
Update README about smooth terrain
2017-04-07 23:44:26 +02:00
Marc Gilleron
a5a1ded2f3
Added smooth voxels (untextured at the moment)
2017-04-06 23:44:11 +02:00
Marc Gilleron
2e89ab0294
Update README
2017-04-01 20:34:44 +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
6235985d80
Fix compilation
2017-03-26 18:08:43 +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
cefa371d83
Added more features to VoxelProviderTest
2017-01-02 23:58:51 +01:00
Marc Gilleron
7f12904d60
Fixed VoxelTerrain not working if no script is attached
2017-01-02 23:57:50 +01:00
Marc Gilleron
c38a822664
Code style
2017-01-02 02:19:02 +01:00
Marc Gilleron
c75d1e78b2
Voxels are loaded through VoxelProvider
2017-01-02 02:15:57 +01:00
Marc Gilleron
670f46b470
Added getters
2017-01-01 05:23:22 +01:00
Marc Gilleron
8d1c8cc339
Spaces to tabs
2017-01-01 04:40:16 +01:00
Marc Gilleron
8acf40d338
Unused parameter
2017-01-01 04:19:36 +01:00