Commit Graph

88 Commits (master)

Author SHA1 Message Date
Marc Gilleron 1e3a4abe08 Fix tests compilation 2022-09-03 17:41:34 +01:00
Marc Gilleron d323b54270 `interpolate_baked` was renamed `sample_baked` 2022-09-01 01:32:21 +01:00
Marc Gilleron cd6f5d396a `plus_file` was renamed `path_join` 2022-09-01 01:31:14 +01:00
Marc Gilleron a18ade364f Merge branch 'master' into smooth_normalmaps 2022-08-19 20:24:11 +01:00
Marc Gilleron 7101233ce6 Fix live update not detecting connection changes 2022-08-17 19:15:06 +01:00
Marc Gilleron aa73404ac0 Missing ifdefs 2022-08-17 18:34:03 +01:00
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 54a4782618 Use band-based task priorities, where higher means higher 2022-08-16 21:12:10 +01:00
Marc Gilleron 7b059dbe0b Added equivalent nodes optimization 2022-07-30 00:39:57 +01:00
Marc Gilleron bbfda51635 Fix can_connect() 2022-07-30 00:33:27 +01:00
Marc Gilleron 3792cd486d Removed I/O thread, all tasks use the same pool.
- Now one more thread becomes available to do other tasks
- Introduced "serial" tasks to keep similar logic to the old I/O thread
- Added some tests
- Updated docs
2022-07-03 21:11:02 +01:00
Marc Gilleron fa027cbe4e Allow to specify which surfaces have collision 2022-05-17 22:12:54 +01:00
Marc Gilleron 4f862722ae Removed usages of Map 2022-05-17 19:44:58 +01:00
Marc Gilleron 3026f6b5a3 Fix tests compilation 2022-05-17 19:34:31 +01:00
Marc Gilleron 09d0be21e2 Remove remaining usages of HashMap 2022-05-14 19:38:39 +01:00
Marc Gilleron dff7386186 Moved conversions to conv.h 2022-05-07 20:34:06 +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 f8198baa2f Fix alpha check 2022-04-22 22:45:15 +01:00
Marc Gilleron ac73904df7 Fix wrong version when saving blocks 2022-04-22 22:20:48 +01:00
Marc Gilleron 8cf52b8967 Fix voxel graph test 2022-04-22 22:06:35 +01:00
Marc Gilleron f48ebe8557 Moved StreamPeer stuff to Godot-specific wrapper 2022-04-18 20:40:25 +01:00
Marc Gilleron d7e0af161a Abstracted voxel metadata so internals no longer depends on Variant 2022-04-18 19:59:38 +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 bfa24402ac Renamed util/funcs.h => container_funcs.h 2022-04-14 21:43:45 +01:00
Marc Gilleron 47fbddf73b Fix nodes of the graph never get freed 2022-04-11 19:17:37 +01:00
Marc Gilleron 0cc3801655 Define smart pointers default allocator in a single place 2022-04-10 20:10:33 +01:00
Marc Gilleron 18584f4e87 Added per-node profiling info 2022-04-10 14:42:40 +01:00
Marc Gilleron 090d3485e5 Use unique pointers in ExpressionParser 2022-04-06 22:00:32 +01:00
Marc Gilleron 0e523f79fe Added functions to expression node 2022-04-06 01:13:38 +01:00
Marc Gilleron 7e03e7f384 Fix several issues with functions in expressions
- Too many arguments error
- Too few arguments error
- Expected argument error
- Unexpected closing parenthesis
2022-04-06 01:00:06 +01:00
Marc Gilleron d26262d03c Fix include directory 2022-04-06 00:56:48 +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 f53856f2c3 Made LodOctree update recursively.
If subdivision conditions are fulfilled, it no longer needs to be
updated several times to reach its target shape.
2022-03-22 19:35:52 +00:00
Marc Gilleron a6196bd84d Added test for serializing blocks with the StreamPeerBuffer API 2022-03-20 14:54:10 +00:00
Marc Gilleron 80d7399fbb Added more region file tests 2022-02-28 22:17:28 +00:00
Marc Gilleron 072472bec5 Fix FlatMap was using the type of values to sort keys... 2022-02-19 23:09:01 +00:00
Marc Gilleron 8b8b991060 Fix FlatMap insert methods randomly failing to insert 2022-02-19 22:08:04 +00:00
Marc Gilleron c844a65325 More explicit include guard 2022-02-19 22:07:11 +00:00
Marc Gilleron 8406299e2d Use a specific macro to check tests, so it can be swapped easily.
Also made it break by default so in debug we stop at the failing line.
2022-02-19 19:59:39 +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 b3faec2bef Removed voxel_block_request.h, use specialized structs 2022-02-12 23:37:02 +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 3045e9a489 BlockSerializer is no longer a class 2022-01-16 04:01:22 +00:00
Marc Gilleron f8b8b27ff2 Renamed Voxel => VoxelBlockyModel, VoxelLibrary => VoxelBlockyLibrary 2022-01-09 23:27:38 +00:00
Marc Gilleron 9c6118806f Namespaced remaining stuff 2022-01-09 22:46:26 +00:00
Marc Gilleron e53dcf7c84 Re-namespaced VoxelConstants 2022-01-09 03:06:58 +00:00
Marc Gilleron 08cacc7ff4 Print SIMD level name in FastNoise2 test 2022-01-08 01:02:47 +00:00