997 Commits

Author SHA1 Message Date
Marc Gilleron
758e3bd227 Allow to use block size 32 for mesh blocks while using 16 for data blocks
Still hardcoded but a config should be added
2021-04-03 20:39:37 +01:00
Marc Gilleron
24428d5af9 Merge branch 'master' of https://github.com/Zylann/godot_voxel 2021-04-03 00:59:14 +01:00
Marc Gilleron
a2a29f6c3c Switched CI to use Godot 3.x branch 2021-04-03 00:58:31 +01:00
Marc
7e27821f71
Merge pull request #248 from stengun/patch-1
Add missing bindings for constants
2021-04-01 18:06:59 +01:00
Roberto Benfatto
eef1d076a0
Add missing bindings for constants
Without those bindings, exported api.json generates the class without the enum despite having a method with a return value of that type. This fixes compilation with generated headers in godot-cpp
2021-04-01 17:45:07 +02:00
Marc Gilleron
225f332e1f Fix signedness warning 2021-03-27 22:27:55 +00:00
Marc Gilleron
c38989f57b Unnecessary reference 2021-03-27 22:09:57 +00:00
Marc Gilleron
371b1edf2c Fix some shadowing GCC doesn't like 2021-03-27 21:51:39 +00:00
Marc Gilleron
7253308bf8 Remove unnecessary qualification 2021-03-27 19:48:33 +00:00
Marc Gilleron
9b785b35d9 Update changelog 2021-03-27 19:33:29 +00:00
Marc Gilleron
29c5141dda Increase default clip threshold to reduce chance of artifacts 2021-03-27 16:39:21 +00:00
Marc Gilleron
05c35caa92 Added categories to terrain properties 2021-03-27 16:38:52 +00:00
Marc Gilleron
c86feda259 Replace lod_split_scale with lod_distance for better clarity 2021-03-27 16:38:20 +00:00
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