193 Commits

Author SHA1 Message Date
Marc Gilleron
3e4230ec9e Added a spinbox to the SDF viewer to scan through the whole result 2022-05-10 20:54:11 +01:00
Marc Gilleron
35ddc51f18 Fix Basis::get_axis() was renamed to get_column() 2022-05-07 21:27:41 +01:00
Marc Gilleron
dff7386186 Moved conversions to conv.h 2022-05-07 20:34:06 +01:00
Marc Gilleron
f993796ca1 Added inspector plugin to edit VoxelMeshSDF 2022-05-05 20:57:59 +01:00
Marc Gilleron
d145a30816 Fix checkmark not updating when selecting Show Octree Nodes 2022-05-02 14:52:42 +01:00
Marc Gilleron
adbfd3b584 floor_to_int to emphasize the return value converts to int 2022-05-02 14:49:40 +01:00
Marc Gilleron
a5e429de6f Moved some Vector3i function specializations to math:: namespace 2022-04-29 23:25:37 +01:00
Marc Gilleron
190bd1b466 Try to use explicit Packed*Array in helper functions as Vector<T> likely won't be available in GDExtension 2022-04-29 23:20:41 +01:00
Marc Gilleron
8cf52b8967 Fix voxel graph test 2022-04-22 22:06:35 +01:00
Marc Gilleron
5a2624735e Added experimental shader generation from voxel graph 2022-04-13 00:06:20 +01:00
Marc Gilleron
87d98e9162 Engine-agnostic error macros 2022-04-11 02:10:44 +01:00
Marc Gilleron
0cc3801655 Define smart pointers default allocator in a single place 2022-04-10 20:10:33 +01:00
Marc Gilleron
118563d545 Fix missing header (2) 2022-04-10 17:17:18 +01:00
Marc Gilleron
18584f4e87 Added per-node profiling info 2022-04-10 14:42:40 +01:00
Marc Gilleron
219c7bfda3 Changed prefix of profiling macros 2022-04-09 15:33:08 +01:00
Marc Gilleron
adb2cd2fe9 Return a ref, pointer must not be null 2022-04-09 15:15:22 +01:00
Marc Gilleron
259a914cbf Return a ref instead of pointer, it must not be null 2022-04-09 15:05:04 +01:00
Marc Gilleron
ab5d3a22d3 Abstract logging for verbose print 2022-04-09 15:00:34 +01:00
Marc Gilleron
ca83c720ff Return reference, pointer must not be null 2022-04-08 23:54:04 +01:00
Marc Gilleron
2fece1d892 VoxelGraphNodeDB::get_singleton() must not return null, changed to reference 2022-04-07 20:44:43 +01:00
Marc Gilleron
e43f939f3c Span doesnt depend on Godot Vector 2022-04-06 23:37:57 +01:00
Marc Gilleron
5519054c01 Unify macro prefixes 2022-04-06 23:26:54 +01:00
Marc Gilleron
0629566330 Show expression code in the node's title 2022-04-05 22:26:26 +01:00
Marc Gilleron
4634cfac0e Merge branch 'master' into expression_node 2022-04-04 22:43:05 +01:00
Marc Gilleron
e0008d3335 Fix compilation now Godot comes with its own FastNoiseLite.
The version shipped with the module is now prefixed.
Removed usages of OpenSimplexNoise.
2022-04-03 20:07:17 +01:00
Marc Gilleron
646cbacd64 Added Expression node to VoxelGeneratorGraph. Needs polishing.
Some things to do:
- Support function calls
- Show expression in the node GUI, eventually edit it there
- Optimize power function
2022-04-03 16:43:04 +01:00
Marc Gilleron
8d8d8b336d Moved VoxelLodTerrain and VoxelTerrain stuff to their own folders 2022-03-20 22:57:53 +00:00
Marc Gilleron
cda68657b0 Don't crash when connecting a debug preview to an input 2022-03-20 16:50:18 +00:00
Marc Gilleron
47b8ca4e76 Fix GCC finding the conversion ambiguous 2022-03-19 21:10:40 +00:00
Marc Gilleron
7dca31c444 Unnecessary forward-declaration 2022-02-20 21:35:14 +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
0137ca3036 Namespaced VoxelBuffer in gd:: because it is actually a wrapper 2022-02-15 21:49:20 +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
83e4454789 Fix comparison signedness warning (8) 2022-02-13 19:28:33 +00:00
Marc Gilleron
907351dd1a Fix compilation with latest Godot 2022-02-13 16:56:27 +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
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
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
9f709abe99 Update supporters 2022-02-04 22:12:27 +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
Marc Gilleron
d6c8915b13 Added experimental noise analysis window for FastNoise2 (mostly for research) 2022-01-16 23:08:37 +00:00
Marc Gilleron
4a8dcda172 Update version number 2022-01-16 15:27:29 +00:00
Marc Gilleron
d56bbb44dc Update supporters 2022-01-16 03:59:32 +00:00