1184 Commits

Author SHA1 Message Date
Marc Gilleron
966c2c9fef Change default channel attribution when using get_voxel_tool()
- It now depends first on the mesher
- If no mesher is assigned, it depends on the generator
- If no generator is assigned, it depends on the stream
- If no stream is assigned, it defaults to 0
- If multiple channels are found, pick the first one instead of last
- The reason is, some streams can support all channels so they dont
  represent well what the user intends to use.
2021-07-10 20:27:55 +01:00
Marc Gilleron
3ffd07af47 Added copy to VoxelToolLodTerrain 2021-07-10 20:19:44 +01:00
Marc Gilleron
144affe42d Fix errors/crashes when trying to edit voxels on loading borders
- Replaced fatal asserts with soft asserts
- No longer require existence of a mesh when lodding on loaded border.
  As far as voxel data is concerned, it should work just fine.
- Fixed wrong list used when scheduling mesh updates on higher LOD indexes
2021-07-10 20:17:28 +01:00
Marc Gilleron
fdcdfdf093 Added test for unordered_remove_if 2021-07-10 20:13:10 +01:00
Marc Gilleron
925aeda5f6 Added video from Aknakos 2021-07-07 00:23:13 +01:00
Marc Gilleron
4804210496 Remove mention of Voronoi, too specific, probably unnecessary 2021-07-07 00:22:55 +01:00
Marc Gilleron
40cd4b3b98 Fix crash in Transvoxel mesher when the input block is not cubic 2021-07-07 00:22:02 +01:00
Marc Gilleron
e05fb7a045 Does not need to be a non-const reference 2021-07-01 23:14:23 +01:00
Marc Gilleron
5fdf9e700f Exposed interpolated float voxel query 2021-07-01 22:44:27 +01:00
Marc Gilleron
2c1ede239c Add link to solar system demo 2021-07-01 22:19:42 +01:00
Marc Gilleron
e40a50f8bd Update supporters 2021-07-01 22:19:31 +01:00
Marc Gilleron
8535ef2cf9 Update changelog 2021-06-19 19:10:09 +01:00
Marc Gilleron
b455fae34f Typo 2021-06-19 18:35:01 +01:00
Marc Gilleron
b538a0beb8 Moved noise tests to tests folder 2021-06-19 18:34:50 +01:00
Marc Gilleron
a1662040d2 Update supporters 2021-06-19 18:33:18 +01:00
Marc Gilleron
f74d29280a Fix channel enum names 2021-06-16 23:35:05 +01:00
Marc Gilleron
89d854f328 VoxelGeneratorHeightmap should not be instanciable 2021-06-16 23:34:47 +01:00
Marc Gilleron
c2248f9254 I don't remember why this was padded 2021-06-16 23:33:58 +01:00
Marc Gilleron
19f440527e Implemented VoxelToolTerrain.for_each_voxel_metadata_in_area 2021-06-16 23:31:00 +01:00
Marc Gilleron
233e2c7267 Exposed data block size 2021-06-16 23:30:09 +01:00
Marc Gilleron
0c13bd4b2d Fix mismatch in signal arguments 2021-06-16 23:29:59 +01:00
Marc Gilleron
a22a4d5d3f Attempt to fix doc links with a temporary patch 2021-06-14 19:37:22 +01:00
Marc Gilleron
614fc8b9dd Don't warn if the generator is a non-tool script
Scripts without `tool` don't run in the editor. This should be
considered user choice rather than a mistake. The fact other checks
cannot run is an expected consequence.
2021-06-14 19:06:30 +01:00
Marc Gilleron
da8dc36590 Return all channels supported with region files and SQLite
This fixes a node configuration warning,
because before these were always returning no channels at all.
2021-06-14 18:51:19 +01:00
Marc Gilleron
d436ed430f Fix world edge issue, mesh block area was not clipped 2021-06-13 19:00:47 +01:00
Marc Gilleron
9e76eec951 Another one 2021-06-13 18:13:11 +01:00
Marc Gilleron
84e00ccbaf Another size_t conversion 2021-06-13 17:15:11 +01:00
Marc Gilleron
6374c9831c Convert size_t to comply with Variant conversion problem on some compilers 2021-06-13 17:03:45 +01:00
Marc Gilleron
73af17e65f Avoid using size_t to comply with Variant conversion ambiguity that occurs on some compilers 2021-06-12 17:13:46 +01:00
Marc Gilleron
dc4569408d Fix wrong conditional 2021-06-11 18:43:57 +01:00
Marc Gilleron
1d63671680 Merge branch 'master' of https://github.com/Zylann/godot_voxel 2021-06-06 21:46:40 +01:00
Marc Gilleron
a4565fd6dd Fix changing graph node properties not marging the graph as modified 2021-06-06 21:44:28 +01:00
Marc
60685cee04
Added CI and Discord badges 2021-06-03 21:16:44 +01:00
Marc
1de72e3acb
Undoing 2021-06-03 20:50:26 +01:00
Marc
cffee25ebb
Added Discord link 2021-06-03 20:49:38 +01:00
Marc Gilleron
401b9e1b0b A bit of doc 2021-05-31 21:19:54 +01:00
Marc Gilleron
fa2f93c099 Updated API docs 2021-05-31 17:23:29 +01:00
Marc Gilleron
1ee5bcb80d Renamed Rect3i -> Box3i 2021-05-31 17:12:04 +01:00
Marc Gilleron
411be94559 Renamed ArraySlice -> Span 2021-05-31 16:48:49 +01:00
Marc Gilleron
2e9d817246 Moved VoxelDataMap to storage/ folder 2021-05-31 16:27:08 +01:00
Marc Gilleron
fcab95427b Formatting fixes 2021-05-31 16:11:58 +01:00
Marc Gilleron
35de0883d2 Fix shadowing 2021-05-31 03:32:50 +01:00
Marc Gilleron
ee060176ab Fix initialization reordering, shadowing, signedness and unused vars 2021-05-31 02:29:21 +01:00
Marc Gilleron
a24c56e064 Fix unused var 2021-05-31 02:11:09 +01:00
Marc Gilleron
f9f7e07b33 Fix unused vars, unhandled cases and shadowing 2021-05-31 01:45:14 +01:00
Marc Gilleron
efb6a26b5e Fix GCC warnings (2) 2021-05-31 01:05:19 +01:00
Marc Gilleron
32e47a50e9 Fix GCC warnings 2021-05-31 00:34:53 +01:00
Marc Gilleron
56afdadd32 Section about alternatives to voxel tools 2021-05-31 00:07:07 +01:00
Marc Gilleron
1f78e80369 Update changelog 2021-05-31 00:05:53 +01:00
Marc Gilleron
8975a93c9b Fixed bad buffer adresses when multiple outputs are used
This was mainly apparent when optimization was enabled.
It caused outputs to be left uninitialized and either work by chance
or provide the wrong values.
2021-05-31 00:05:42 +01:00