1184 Commits

Author SHA1 Message Date
Marc Gilleron
5766bc8b94 Merge branch 'master' into lod_fade_v2
# Conflicts:
#	README.md
#	editor/about_window.cpp
2021-03-27 01:48:36 +00:00
Marc Gilleron
a0a2abfcd0 Update donors and version 2021-03-27 01:47:16 +00:00
Marc Gilleron
4e1442cb0b Added clipping debug option 2021-03-27 01:46:07 +00:00
Marc Gilleron
5e99992cb3 Added screenshots of basic generators to the doc 2021-03-27 00:58:35 +00:00
Marc Gilleron
bd09b18911 Some precisions 2021-03-27 00:57:46 +00:00
Marc Gilleron
67b5805069 Update readme 2021-03-27 00:57:28 +00:00
Marc Gilleron
6e176c1cdd Fix basic noise generators not updating their internal resource copy 2021-03-27 00:57:08 +00:00
Marc Gilleron
c7c24a3d95 Expose performance tuning parameters 2021-03-22 00:02:46 +00:00
Marc Gilleron
08bfcd96d4 Optimized smooth subtract and union by marking unused input cases.
This allows optimized execution map to pick them up and skip dependencies
2021-03-22 00:02:16 +00:00
Marc Gilleron
03bfc09e99 Implemented execution map to optimize out nodes locally
- Added optional optimization of execution map
- Added visualization of skipped nodes in the editor debug tool
2021-03-21 18:48:00 +00:00
Marc Gilleron
30e33849fe Use SDF union and subtract in VoxelTool 2021-03-17 18:11:29 +00:00
Marc Gilleron
9188ae619b Optimized several range analysis functions
- square, cube and polynomials are more precise
- lerp() is more precise
- smooth union and subtract are more precise
- fallback on simple min/max if smoothness is zero
2021-03-17 18:11:00 +00:00
Marc Gilleron
0720618295 Fix wrong AABB in range analysis debug tool 2021-03-17 18:05:54 +00:00
Marc Gilleron
862e036317 More precise range analysis for FastNoiseLite 2021-03-14 18:47:23 +00:00
Marc Gilleron
412f37e3e0 Exposed range analysis method 2021-03-14 18:46:38 +00:00
Marc Gilleron
c90dc1b056 Formatting 2021-03-14 18:46:15 +00:00
Marc Gilleron
67f545d5cf Lower threshold for range discarding 2021-03-14 18:45:59 +00:00
Marc Gilleron
826e104024 Added tool to inspect range analysis 2021-03-14 18:44:46 +00:00
Marc Gilleron
fe968f17aa Merge branch 'master' of https://github.com/Zylann/godot_voxel 2021-03-13 02:09:58 +00:00
Marc Gilleron
5f67d7ac57 Fix generator example 2021-03-13 02:09:48 +00:00
Marc Gilleron
9384c9c926 Update donors 2021-03-13 02:09:33 +00:00
Marc Gilleron
51909ff955 Added docs about LOD fade 2021-03-12 23:42:18 +00:00
Marc Gilleron
e52df732bb Fix wrong default value when uniform channels are compressed 2021-03-12 23:41:57 +00:00
Marc Gilleron
2d283bcdfc Fix 1.f not giving the maximum u16 value when set on a VoxelBuffer 2021-03-12 23:41:11 +00:00
Marc Gilleron
ea1d617371 Implemented "chunking" of requested blocks in graph generator
so range analysis can remain precise enough even with larger blocks
2021-03-12 23:40:38 +00:00
Marc Gilleron
ba5c0bcb17 Use common default 2021-03-12 23:38:37 +00:00
Marc Gilleron
e8d54e88ef Fix instancer error in some rare cases where a block has an empty multimesh 2021-03-12 23:38:13 +00:00
Marc Gilleron
8adbe86da6 Formatting 2021-03-12 23:37:37 +00:00
Marc Gilleron
c46d5e973d Fix coordinates 2021-03-12 23:36:11 +00:00
Marc Gilleron
31c02ad6ee Fix VoxelTerrain being left invisible due to new defaults 2021-03-12 23:35:59 +00:00
Marc Gilleron
944791d5ce Fixes to LOD fading 2021-03-12 23:35:51 +00:00
Marc Gilleron
43588cae17 Fix snapped implementation, it was not snapping size correctly 2021-03-12 23:33:29 +00:00
Marc Gilleron
fb952ef119 Allow lower split scale 2021-03-12 23:32:02 +00:00
Marc Gilleron
fc9a1be3ab Use square root in distance-based priority
Otherwise it would not work with LOD modifier
2021-03-12 23:31:20 +00:00
Marc
238e34838d
Merge pull request #243 from lhinuz/master
Update file_locker.h
2021-03-12 18:14:27 +00:00
lhinuz
3430c3cf9f
Update file_locker.h
Missing file pointer convert.
2021-03-12 08:34:57 +08:00
Marc Gilleron
5a8eee7d4b Added debug function to get octree state 2021-03-11 22:55:52 +00:00
Marc
2654d8805f
Merge pull request #240 from Anshul7sp1/patch-1
bug fix in voxel_lod_terrain.cpp
2021-03-11 22:44:16 +00:00
Marc
029a53ffcd
Merge pull request #241 from great90/master
Fix VoxelGenerator*::set_channel dosen't call emit_changed
2021-03-11 22:43:04 +00:00
great90
cc17af3243 Fix VoxelGenerator*::set_channel dosen't call emit_changed 2021-03-09 18:03:36 +08:00
Anshul Mehta
2f355c5ac0
bug fix in voxel_lod_terrain.cpp
Fixes a bug in calculation of  bound_max.
2021-03-09 09:58:32 +05:30
Marc
2b86986d2b
Merge pull request #238 from stengun/patch-1
Fix tautological-compare error
2021-03-07 22:02:43 +00:00
Roberto Benfatto
271458f4aa
Fix tautological-compare error
Comparing the bitwise 'and' result and a number inside the if in this way results always false unless the bitwise 'and' result is 1.
2021-03-07 17:02:37 +01:00
Marc
aa0eb670b6
Merge pull request #235 from great90/master
Fix dead loop in VoxelBuffer
2021-03-07 01:20:07 +00:00
great90
94755ae420 Fix dead loop in 'VoxelBuffer::for_each_voxel_metadata_in_area' and 'VoxelBuffer::clear_voxel_metadata_in_area' 2021-03-05 18:08:39 +08:00
Marc Gilleron
cf81f83382 Re-implemented lod fade 2021-03-02 22:49:42 +00:00
Marc Gilleron
4d68f2d276 Update supporters 2021-03-02 21:10:27 +00:00
Marc Gilleron
9f11a288b0 Fix VoxelInstanceLibraryItem removal 2021-02-26 18:42:07 +00:00
Marc Gilleron
534ed5c254 Some precision 2021-02-26 18:40:40 +00:00
Marc Gilleron
76ec90fe34 Moved constants and tables under a folder 2021-02-21 23:58:00 +00:00