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