34 Commits

Author SHA1 Message Date
Marc Gilleron
a9476227cb Namespaced Interval 2022-01-03 22:29:39 +00:00
Marc Gilleron
c0cda5d7a7 Use namespaces in some cpp files that would otherwise be in those namespaces (but aren't because they are registered classes) 2022-01-03 22:01:11 +00:00
Marc Gilleron
492f660831 Namespaced ProgramGraph 2022-01-03 04:47:05 +00:00
Marc Gilleron
4259ea5b80 Namespaced VoxelGraphRuntime 2022-01-03 04:29:53 +00:00
Marc Gilleron
e68f59643b Namespaced VoxelGraphNodeDB 2022-01-03 03:55:44 +00:00
Marc Gilleron
4d2fe30661 Use Time singleton 2021-12-29 17:06:24 +00:00
Marc Gilleron
cf4f1139a4 Fix errors when deleting a graph node 2021-12-15 01:36:46 +00:00
Marc Gilleron
70c292c9fd Fix renamed GraphEdit signal name 2021-12-13 23:56:02 +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
6441d1b864 Deprecate Vector3i(Vector3) constructor, make conversions explicit
Some conversions were wrong/unintented.
This is also in prevision of using Godot 4 Vector3i,
which default behavior differs from this module.
2021-10-31 16:01:47 +00:00
Marc Gilleron
20c6b790bf Formatting and comments 2021-07-28 19:24:22 +01:00
Marc Gilleron
411be94559 Renamed ArraySlice -> Span 2021-05-31 16:48:49 +01:00
Marc Gilleron
ff658335fb Fix preview nodes, they were upside down 2021-05-29 23:18:04 +01:00
Marc Gilleron
41990a47dc Fix crash when the graph editor gets closed or when the graph is set to null 2021-05-29 21:38: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
934af79f3f Show graph compilation errors in the editor 2021-05-02 21:44:55 +01:00
Marc Gilleron
264b77ac21 Moved hardcoded output types outside the runtime.
For simplicity I chose to just give output nodes output ports,
like regular ones, and hide them in the editor.
It required to change a bit how output nodes are detected,
and backing output buffers are no longer required from callers.
This will allow to more easily implement custom outputs as well.
2021-05-02 01:22:44 +01:00
Marc Gilleron
32f9006b75 Added initial support for texture weights in graph generators (not optimal) 2021-04-30 22:04:38 +01:00
Marc Gilleron
2d247af250 Increase resolution of preview nodes 2021-04-18 00:35: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
0720618295 Fix wrong AABB in range analysis debug tool 2021-03-17 18:05:54 +00:00
Marc Gilleron
826e104024 Added tool to inspect range analysis 2021-03-14 18:44:46 +00:00
Marc Gilleron
7940b3b761 Made VoxelGeneratorGraph thread-safe 2021-01-16 13:51:01 +00:00
Marc Gilleron
66141be0b3 Fix one more GCC warning 2021-01-09 20:33:39 +00:00
Marc Gilleron
1bb3d19e03 Use buffers to generate previews 2021-01-09 18:35:53 +00:00
Marc Gilleron
04c1d61cd2 Quick cleanup, also patch preview nodes 2021-01-07 23:36:14 +00:00
Marc Gilleron
dafb4f39ff First WIP to try per-buffer processing instead of per-voxel 2021-01-04 22:19:13 +00:00
Marc Gilleron
44a1af2043 Don't crash if graph resources are null 2020-10-26 19:58:54 +00:00
Marc Gilleron
61f17ce96d Formatting 2020-10-25 20:38:23 +00:00
Marc Gilleron
0cb8188eb7 Added ability to name graph nodes 2020-10-25 20:26:25 +00:00
Marc Gilleron
8d6a459ad7 Fix a missing size_t to variant conversion 2020-09-19 21:47:52 +01:00
menip
e64f5f882c Fix warnings
Wparentheses
Wsign-compare
Wreorder
2020-08-01 22:03:26 -07:00
Marc Gilleron
27f37ea56c Move voxel graph editor under its own folder 2020-07-30 18:50:45 +01:00