Marc Gilleron
cc40005071
Fixed particular voxel graph not compiling properly.
...
In the following case:
- A depends on B
- A depends on C
- B depends on C
Dependency search was finding C twice.
2022-08-16 23:26:24 +01:00
Marc Gilleron
62e471b3d2
Add get_node_ids() helper method
2022-07-30 00:35:38 +01:00
Marc Gilleron
4221ae71c7
int => unsigned int
2022-07-30 00:34:30 +01:00
Marc Gilleron
bbfda51635
Fix can_connect()
2022-07-30 00:33:27 +01:00
Marc Gilleron
d8b1e090f5
Macros
2022-07-29 21:30:07 +01:00
Marc Gilleron
d7a6b8aaab
Added default input connections to some voxel graph nodes
2022-07-28 23:08:05 +01:00
Marc Gilleron
a5c3f8b824
Fix code to work with Godot's new FileAccess RefCounted object
2022-04-15 23:13:31 +01:00
Marc Gilleron
47fbddf73b
Fix nodes of the graph never get freed
2022-04-11 19:17:37 +01:00
Marc Gilleron
96224c2231
ProgramGraph::get_node() must not return null, changed to a reference
2022-04-07 20:35:11 +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
0e54920afb
Replace existing connection if dragging from/to an input port having one already
2022-02-20 16:57:29 +00:00
Marc Gilleron
492f660831
Namespaced ProgramGraph
2022-01-03 04:47:05 +00:00
Marc Gilleron
922f361cb0
Made it compile in Godot 4
...
- Made a bunch of changes to comply with Godot 4 API
- Use Godot's Vector3i and add the missing stuff with helper functions
- Transvoxel uses custom attributes API, the old way would not work
- Wrap MeshOptimizer in a unique namespace (see build script why)
- Added clang-format file for the module as some rules now differ
- Prevent thirdparty code and lookup tables from being clang-formatted
- Very likely full of runtime bugs that need fixing
2021-12-13 21:38:10 +00:00
Marc Gilleron
52aa4963ea
Fixed some crashes occurring when giving invalid arguments to functions
2021-07-19 19:04:52 +01:00
Marc Gilleron
493579cefb
Initialize voxel graph with default nodes when creating it in the editor
2021-05-03 01:04:04 +01:00
Marc Gilleron
10683ccd15
Comments
2021-04-15 20:35:31 +01: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
56b4b55b53
Fix missing return
2020-10-25 23:07:53 +00:00
Marc Gilleron
0cb8188eb7
Added ability to name graph nodes
2020-10-25 20:26:25 +00:00
Marc Gilleron
1cd0a491bb
Fix graph not working if there is more than one terminal node (preview nodes)
2020-07-11 16:56:37 +01:00
Marc Gilleron
b8c235fce3
Added preview nodes (has a few limitations, may fix them later)
2020-07-07 23:28:02 +01:00
Marc Gilleron
43b99975f3
Loading and saving of voxel graphs
2020-03-07 01:34:30 +00:00
Marc Gilleron
fab3e791d8
Implement undo/redo, which also marks the resource as modified
2020-03-03 00:19:25 +00:00
Marc Gilleron
81909567be
Implemented add, remove, connect and disconnect nodes from editor
2020-03-02 00:15:54 +00:00
Marc Gilleron
a3b623ad3d
Optimize parts of the graph that only depend on X and Z, so they run in the outer loop
2020-02-29 22:35:55 +00:00
Marc Gilleron
a3b64c3983
A bit of reorganization:
...
- Merged VoxelGeneratorGraph::Node into ProgramGraph::Node
- Separated compilation and execution to its own class
2020-02-29 00:17:47 +00:00
Marc Gilleron
dcc53d9351
Added can_connect() and get_node_type_id()
2020-02-27 00:17:15 +00:00
Marc Gilleron
815954bc03
Added graph edition methods and exposed to script API
2020-02-24 23:03:41 +00:00
Marc Gilleron
f785589ebe
Implemented DFS in ProgramGraph, I might need it later
2020-02-23 21:05:04 +00:00
Marc Gilleron
c87dc49046
Implemented duplicate()
2020-02-23 02:50:04 +00:00
Marc Gilleron
07905ba580
Renamed evaluate
in ProgramGraph to a more descriptive name
2020-02-22 22:45:22 +00:00
Marc Gilleron
515751a3e6
WIP VoxelGeneratorGraph, compiled and untested
2020-02-19 19:26:14 +00:00