256 Commits

Author SHA1 Message Date
Marc Gilleron
c7cf0c5b17 Show directory picker in inspector for file streams 2019-08-17 20:22:57 +01:00
Marc Gilleron
e1d716d454 Merge branch 'master' into persistence 2019-08-17 20:16:22 +01:00
Marc Gilleron
808f22fb35 Rename VoxelStreamRegion => VoxelStreamRegionFiles 2019-08-17 19:56:21 +01:00
Marc Gilleron
ece3a355af Rename VoxelStreamVXB => VoxelStreamBlockFiles 2019-08-17 19:43:08 +01:00
Marc Gilleron
fbeaae6bac Moved some coordinate conversions to Vector3i 2019-08-17 19:34:40 +01:00
Marc Gilleron
6cb9971677 Remove AutoDeleteFile 2019-08-17 18:44:17 +01:00
Marc Gilleron
3a64209b27 Added LZ4 compression to saved blocks. Makes them fit in single sectors much more often, increasing performance 2019-08-17 18:15:16 +01:00
Marc Gilleron
0483413b80 Added stats to VoxelStream, tweak file handles and batch counts 2019-08-17 00:46:24 +01:00
Marc Gilleron
43446356e9 Switch block processing to use arrays instead of single blocks to allow batching 2019-08-16 20:56:07 +01:00
Marc Gilleron
45f132a930 I did not intend to commit this 2019-08-15 22:36:26 +01:00
Marc Gilleron
c6e0e59662 Fix uninitialized stats 2019-08-15 01:54:05 +01:00
Marc Gilleron
07d4deeaab Formatting 2019-08-15 01:40:27 +01:00
Marc Gilleron
9ba730391c Fixed umod, caused region saves to miss blocks at axis boundaries 2019-08-14 23:25:05 +01:00
Marc Gilleron
01b1ee0170 Added first working version of region save format, still WIP 2019-08-14 20:34:06 +01:00
Marc
7ced53ba6b
Merge pull request #36 from tinmanjuggernaut/set_material
Revert adding material property to fix error message
2019-08-11 14:03:39 +02:00
Marc
d93d61ef7e
Merge pull request #44 from afonsolage/update_material_docs
Added info in order to enable AO
2019-08-11 13:14:04 +02:00
Afonso Lage
657536b08a Added info in order to enable AO 2019-08-10 18:18:41 -03:00
Marc Gilleron
b00ec1ccad Merge branch 'master' into persistence 2019-08-09 20:07:43 +01:00
Marc
6ea2e48880
Merge pull request #40 from tinmanjuggernaut/gcc-struct-init-fix
Fix gcc build
2019-08-09 20:44:21 +02:00
Cory Petkovsek
9c56f75c60 Fix gcc build 2019-08-10 03:31:38 +09:00
Marc
67f44c566c
Merge pull request #28 from tinmanjuggernaut/tutorial
Created documentation
2019-08-03 01:16:39 +02:00
TinmanJuggernaut
0c37f2663c Created tutorials and API 2019-08-03 03:34:23 +09:00
Cory Petkovsek
2e6256f6a5 Revert adding material property to fix error message 2019-07-06 00:19:29 +09:00
Marc
9ee058b140
Merge pull request #35 from tinmanjuggernaut/set_material
Allow VoxelTerrain.set_material() from gdscript
2019-07-04 13:35:20 +02:00
Cory Petkovsek
18626133cd Allow set_material from gdscript 2019-07-04 00:58:39 +09:00
Marc Gilleron
c272a37f1a Merge branch 'master' into persistence
# Conflicts:
#	terrain/block_thread_manager.h
#	terrain/voxel_terrain.cpp
2019-06-25 20:51:35 +01:00
Marc
dbd6d8d916
Merge pull request #31 from tinmanjuggernaut/emerge-bugfix
Emerge bugfix
2019-06-25 21:20:44 +02:00
Marc
b20b6f82ee
Merge pull request #34 from tinmanjuggernaut/build-gcc
Fix compiling on gcc
2019-06-25 21:20:03 +02:00
Cory Petkovsek
a8ead9d07e Fix gcc uninitialized variable redo 2019-06-25 23:50:49 +09:00
Cory Petkovsek
b13dccd998 Fix gcc shadow warning 2019-06-22 23:24:34 +09:00
Cory Petkovsek
3b7dccefb2 Revert some castings 2019-06-22 22:14:27 +09:00
Cory Petkovsek
1dff1f3e50 Fix gdscript emerge bug 2019-06-18 18:53:32 +09:00
Cory Petkovsek
f6a9c5761a Fix gcc sign comparison warnings 2019-06-18 14:24:56 +09:00
Cory Petkovsek
5ad555c439 Fix gcc multiline comments, uninitialized vars, unused vars warnings 2019-06-18 12:38:44 +09:00
Cory Petkovsek
0b854725f0 Fix gcc Wparentheses warnings 2019-06-18 12:13:44 +09:00
Cory Petkovsek
67bdcbd048 Gcc compiling fixes 2019-06-18 11:27:55 +09:00
Cory Petkovsek
2562aefc24 Fix voxel_name set/get bug 2019-06-14 17:36:58 +09:00
Marc Gilleron
3feb32e194 Fix a crash when a VoxelTerrain is created and deleted without ever entering the tree. Was caused by Godot creating dummy instances of VoxelTerrain just to call get_property_list when I open the inspector... 2019-06-02 02:30:22 +01:00
Marc Gilleron
5ecd449acc Fixed VXB saving so that it actually works for lod0-only terrain:
- Don't rely on ERR_FILE_NOT_FOUND, Godot never returns that from FileAccess...
- Fix LOD not used in block coordinates conversion
- Fix block size saved as u8 but read as u32 in meta file
- Fix block file path not being prepended directory path
- Fix negative coord block file path containing overflowed uint
- Fix VoxelDataLoader processor not being assigned block size in some cases
- Fix VoxelDataLoader not processing save requests properly
- Fix VoxelTerrain not actually sending save requests on destruction
2019-06-02 01:59:39 +01:00
Marc Gilleron
76d3dcf737 Added dropped_count to block thread manager stats 2019-06-02 01:57:19 +01:00
Marc Gilleron
439e5d9964 Fix sort heuristic being wrong on pending blocks surviving more than one thread_sync(), we really have to overwrite it 2019-06-02 01:54:17 +01:00
Marc Gilleron
6515ac2c94 Fix udiv(), negative values were giving wrong results 2019-06-02 01:46:41 +01:00
Marc Gilleron
94c5d5a78c Merge branch 'master' into persistence
# Conflicts:
#	voxel_buffer.h
2019-06-01 19:53:16 +01:00
Marc Gilleron
04bbfcd182 Fix VoxelStreamImage.channel property inconsistency 2019-05-30 00:46:08 +01:00
Marc Gilleron
a36322842a Reorganize SCons script 2019-05-30 00:45:19 +01:00
Marc Gilleron
f831d03cf5 Merge branch 'master' into persistence
# Conflicts:
#	terrain/voxel_data_loader.cpp
2019-05-28 01:17:28 +01:00
Marc Gilleron
2c81db52f8 Rename remaining occurences of "provider" => stream 2019-05-28 01:10:50 +01:00
Marc Gilleron
82502d3397 Simple file-per-block saving WIP. Compiles but didn't test. 2019-05-28 00:40:09 +01:00
Marc Gilleron
4a90ca10a5 Rename "provider" files to "stream" 2019-05-25 16:16:03 +01:00
Marc Gilleron
2e1b13ffea Rename VoxelProvider* => VoxelStream* 2019-05-25 16:07:38 +01:00