1900 Commits

Author SHA1 Message Date
Marc Gilleron
646618e78a Avoid creating ArrayMesh instance if empty 2022-03-15 00:17:42 +00:00
Marc Gilleron
7277a6a79f Renamed has_block => has_data_block 2022-03-14 23:48:23 +00:00
Marc Gilleron
c9edc64ae0 Fix compilation with newest Godot 2022-03-14 00:26:25 +00:00
Marc Gilleron
750fbeda53 Fix signedness warning 2022-03-06 01:16:25 +00:00
Marc Gilleron
2c99dd9d85 Merge branch 'master' of https://github.com/Zylann/godot_voxel 2022-03-06 01:11:48 +00:00
Marc Gilleron
f631d8880c Added configuration warnings to resources 2022-03-06 01:10:47 +00:00
Marc Gilleron
42334d0ba8 Document return value of VoxelBlockSerializer.serialize() 2022-03-06 01:04:17 +00:00
Marc
709bc9e129
Merge pull request #362 from El13B/master
missing lib?
2022-03-02 21:46:56 +01:00
Nona
eaac42cfb1 Included header file for the Dynamic memory management lib to define unique_ptr and shared_ptr. 2022-03-02 12:16:27 -05:00
Marc Gilleron
80d7399fbb Added more region file tests 2022-02-28 22:17:28 +00:00
Marc Gilleron
55deafd0ec Removed pedantic assertion.
It can happen if the file contains just one block, and if it gets
written over a second time with data spanning more sectors.
2022-02-28 22:17:10 +00:00
Marc Gilleron
0fd25ce52a Added missing position checks to RegionFile 2022-02-28 22:15:59 +00:00
Marc Gilleron
420ad98366 Typo 2022-02-27 23:39:30 +00:00
Marc Gilleron
21f6112433 Added documentation for VoxelGeneratorGraph nodes 2022-02-27 23:21:29 +00:00
Marc Gilleron
72e714e15b Added OutputSingleTexture node for outputting a single texture index per voxel 2022-02-27 22:07:42 +00:00
Marc Gilleron
6b6255e93d This should be integer weights 2022-02-27 22:06:53 +00:00
Marc Gilleron
bca7876dde Update shader information 2022-02-27 22:05:28 +00:00
Marc Gilleron
a8f5c4f0b9 Fix unused variables 2022-02-27 17:01:10 +00:00
Marc Gilleron
74ac820846 Remove zero-samples workaround for now.
It created gaps/unshared vertices in the mesh if the isosurface really has
to cross zero because it was done after the early cell rejection.
If we need it again, it will have to be done before the whole
algorithm, but could need more investigation.
2022-02-27 16:54:14 +00:00
Marc Gilleron
284c763a57 Use signed integers when decoding SDF 2022-02-27 04:08:01 +00:00
Marc Gilleron
9adf996c2e Fix wrong copypasta argument 2022-02-27 03:40:35 +00:00
Marc Gilleron
199d18c008 Don't leave nulls in array 2022-02-27 02:54:35 +00:00
Marc Gilleron
4e8f9bf2e9 Fix missing return value 2022-02-27 01:58:58 +00:00
Marc Gilleron
757fa5648a Update specs nav in mkdocs 2022-02-26 23:06:55 +00:00
Marc Gilleron
a75de1eee2 Instances are now serialized with little-endian 2022-02-26 23:05:55 +00:00
Marc Gilleron
d9c2d227ac Don't use sizeof(int) for portability 2022-02-26 22:53:19 +00:00
Marc Gilleron
008f6d83a1 Compressed data now uses a little-endian header instead of big endian 2022-02-26 22:52:31 +00:00
Marc Gilleron
f894f50498 Fix false positives in pool leak detection 2022-02-26 22:51:53 +00:00
Marc Gilleron
493b93a051 SDF is now encoded with inorm8 and inorm16 2022-02-26 22:51:29 +00:00
Marc Gilleron
07d5f1fb2a Fix float precision in VoxelBoxMover when compiling with 64-bit floats 2022-02-23 00:29:22 +00:00
Marc Gilleron
a88c14a95a Fix missing include 2022-02-20 23:34:15 +00:00
Marc Gilleron
b72ffa260d Rename for_all_blocks => for_each_block 2022-02-20 21:35:35 +00:00
Marc Gilleron
7dca31c444 Unnecessary forward-declaration 2022-02-20 21:35:14 +00:00
Marc Gilleron
933fd81a29 PoolVectors are no longer a thing 2022-02-20 21:34:54 +00:00
Marc Gilleron
0e54920afb Replace existing connection if dragging from/to an input port having one already 2022-02-20 16:57:29 +00:00
Marc Gilleron
729b2a3391 Unnecessary includes 2022-02-20 13:31:25 +00:00
Marc Gilleron
072472bec5 Fix FlatMap was using the type of values to sort keys... 2022-02-19 23:09:01 +00:00
Marc Gilleron
8b8b991060 Fix FlatMap insert methods randomly failing to insert 2022-02-19 22:08:04 +00:00
Marc Gilleron
c844a65325 More explicit include guard 2022-02-19 22:07:11 +00:00
Marc Gilleron
8406299e2d Use a specific macro to check tests, so it can be swapped easily.
Also made it break by default so in debug we stop at the failing line.
2022-02-19 19:59:39 +00:00
Marc Gilleron
0137ca3036 Namespaced VoxelBuffer in gd:: because it is actually a wrapper 2022-02-15 21:49:20 +00:00
Marc Gilleron
1c2f0fd983 Fix Linux CI artifacts 2022-02-15 20:53:24 +00:00
Marc Gilleron
c917c0ac9b Add 64-bit float test build to CI 2022-02-14 23:42:28 +00:00
Marc Gilleron
3884ddecc6 Remove EditorNode* argument from editor plugin constructors 2022-02-14 21:32:27 +00:00
Marc Gilleron
31b4d0bc68 Make it compile with float=64 2022-02-14 21:06:31 +00:00
Marc Gilleron
36cc952daa Second attempt for using memcpy 2022-02-14 01:28:36 +00:00
Marc Gilleron
2493f819eb Remove copy constructor to see if it fixes GCC warning (2) 2022-02-14 01:20:03 +00:00
Marc Gilleron
5b024bdd71 Fix comparison signedness warning 2022-02-14 01:16:06 +00:00
Marc Gilleron
ec5b516cdd Remove copy constructor to see if it fixes GCC warning 2022-02-14 01:04:13 +00:00
Marc Gilleron
48081faf03 Use real_t in most utils, use 32-bit floats in meshers.
This is a first step to supporting double-precision floats in Godot.
Meshers don't need doubles because vertices, normals and UVs should
never span large enough areas while needing such amount of precision.
Besides, it costs a lot more memory and processing.
2022-02-14 00:11:41 +00:00