Marc Gilleron
50555bdedc
Use a typed array of materials for build_mesh() API
2022-02-13 17:30:12 +00:00
Marc Gilleron
1b03e799ae
Fix comparison signedness warning
2022-02-13 17:29:33 +00:00
Marc Gilleron
21daedd5dc
Fix old struct type
2022-02-13 17:17:37 +00:00
Marc Gilleron
d61da56c5b
Fix GCC compilation
2022-02-13 17:07:43 +00:00
Marc Gilleron
907351dd1a
Fix compilation with latest Godot
2022-02-13 16:56:27 +00:00
Marc Gilleron
36ad5a75a2
Fix non-initialized variable
2022-02-13 16:20:08 +00:00
Marc Gilleron
e958739759
Fix some narrowing conversions
2022-02-13 16:19:54 +00:00
Marc Gilleron
92474f8322
Use a FlatMap instead of Godot's Map to store voxel metadata.
...
Reasons:
- when switching to GDExtension, Map won't be available anymore
- FlatMap may be more efficient for small amounts of sparse items
2022-02-13 16:19:17 +00:00
Marc Gilleron
942fc9e980
Option to show octree nodes in editor
2022-02-13 01:19:21 +00:00
Marc Gilleron
a70998f372
Moved VoxelTerrainEditorTaskIndicator
to its own file
2022-02-13 01:09:17 +00:00
Marc Gilleron
4c36b96ef2
Moved Godot-facing block serializer API to its own file
2022-02-12 23:52:44 +00:00
Marc Gilleron
b3faec2bef
Removed voxel_block_request.h, use specialized structs
2022-02-12 23:37:02 +00:00
Marc Gilleron
8cdb49c421
Multiplayer notes
2022-02-12 18:10:13 +00:00
Marc Gilleron
d18bbe0376
Made LodOctree more generic
...
- `update` now solely relies on predicates to split/join
- Removed some member variables only used in the older update
- Distance checks now use "octree space", elininates some coordinate
conversions which are now done up-front
2022-02-12 18:09:46 +00:00
Marc Gilleron
e2e360cf64
Update supporters
2022-02-12 18:03:59 +00:00
Marc Gilleron
27a9c94e44
Fixed inexistent parameter
2022-02-07 22:06:56 +00:00
Marc Gilleron
91bbe56cea
Added missing bindings
2022-02-07 22:06:24 +00:00
Marc Gilleron
f1c59d452a
Removed more Vector<T> usages.
...
Remaining uses are necessary to communicate with Godot APIs.
2022-02-06 22:26:30 +00:00
Marc Gilleron
98eed9adba
Remove some usages of Vector<T>. Also fixed some indexing issues in streams.
...
Reason: in a future port to GDExtension, that class won't be available.
This may also apply to Map and HashMap.
Note: the issues in streams were not hit so far because they are in
multi-block load/save functions. We've been loading and saving blocks
one by one at the moment.
2022-02-06 21:26:48 +00:00
Marc Gilleron
79ba0f270c
De-indent to fix formatting of MkDocs
2022-02-06 19:39:17 +00:00
Marc Gilleron
1f26e15af8
Updated quick steps for setting up a blocky terrain.
2022-02-06 19:29:03 +00:00
Marc Gilleron
c7aaf633ee
Added examples for blocky generation with voxel graph
2022-02-06 15:54:08 +00:00
Marc Gilleron
392f2d94bf
Don't assign unused fields
2022-02-06 13:48:34 +00:00
Marc Gilleron
320cc7422c
Rename tasks:
...
- As verbs for the task they do
- Suffixed with Task instead of Request,
to avoid confusion with network stuff
2022-02-06 13:45:51 +00:00
Marc Gilleron
ba1930769f
Use NonCopyable
2022-02-06 00:37:52 +00:00
Marc Gilleron
582c3e7b2f
Moved some code from VoxelGraphEditor to VoxelGraphEditorNode
2022-02-06 00:32:43 +00:00
Marc Gilleron
2e543eb770
Private var naming convention
2022-02-05 23:12:15 +00:00
Marc Gilleron
10167ce6bb
Moved some editor classes in their own file
2022-02-05 23:09:45 +00:00
Marc Gilleron
7832701998
Allow to change the axes on preview nodes 3D slices
2022-02-05 22:44:05 +00:00
Marc Gilleron
a9ba6e0056
Unconnected inputs show their default value directly on the node
2022-02-05 20:09:09 +00:00
Marc Gilleron
ff6bd7b82d
Fix GCC initializer list reorder warnings
2022-02-05 17:32:36 +00:00
Marc Gilleron
5aeb6a69e7
Fix shadowing declaration
2022-02-05 17:22:25 +00:00
Marc Gilleron
2b610f83e3
Fix GCC warning
2022-02-05 17:12:31 +00:00
Marc Gilleron
a5fa444a00
Fix ambiguous calls
2022-02-05 16:39:19 +00:00
Marc Gilleron
8b15cdf604
Can be const
2022-02-05 16:27:52 +00:00
Marc Gilleron
5685e3c41e
Use references instead of pointers, they should not be null
2022-02-05 16:23:03 +00:00
Marc Gilleron
239a87a6e9
Moved noise and SDF range utilities to util/
2022-02-05 16:14:57 +00:00
Marc Gilleron
b8e8ba84b0
Added support for outputting to the TYPE channel from VoxelGeneratorGraph
2022-02-05 00:45:17 +00:00
Marc Gilleron
78b5b8644d
Formatting
2022-02-04 22:52:17 +00:00
Marc Gilleron
5c75d2fcc4
Fix bad hash function
2022-02-04 22:52:07 +00:00
Marc Gilleron
9f709abe99
Update supporters
2022-02-04 22:12:27 +00:00
Marc Gilleron
9d39ebe889
Comment
2022-02-03 00:02:16 +00:00
Marc Gilleron
f1694b08ec
Remove a few unnecessary usages of the wrapper version of VoxelBuffer
2022-02-03 00:02:10 +00:00
Marc Gilleron
c6199563c8
Split data request
2022-02-02 23:12:59 +00:00
Marc Gilleron
b7e56c6bec
Moved other tasks out of VoxelServer
2022-02-02 21:03:09 +00:00
Marc Gilleron
0ad7be9281
Moved BlockMeshRequest out of VoxelServer
2022-02-02 01:11:28 +00:00
Marc Gilleron
14fc940491
Moved StructDB to utils
2022-01-31 21:33:12 +00:00
Marc Gilleron
437540da0b
Moved VoxelRefCount to utils
2022-01-31 21:29:08 +00:00
Marc Gilleron
d1250ef0ad
Added support functions to help setting up basic multiplayer with VoxelTerrain
.
...
These might change in the future. Will have to test that later,
when Godot 4 gets more stable.
2022-01-31 21:23:39 +00:00
Marc Gilleron
1631e186b5
Fix compilation
...
- Node was not declared anymore in header
- Cannot implicitely cast Variant to Node* anymore
2022-01-30 15:21:59 +00:00