56 Commits

Author SHA1 Message Date
Marc Gilleron
f993796ca1 Added inspector plugin to edit VoxelMeshSDF 2022-05-05 20:57:59 +01:00
Marc Gilleron
4e3d4d4ed8 Threading classes wrappers 2022-04-19 00:32: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
f58199e7de Added class to schedule custom tasks from scripts 2022-04-07 22:34:07 +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
96cae8f1dd Added command line variable to toggle FastNoise2 support 2022-03-30 23:17:27 +01:00
Marc Gilleron
8d8d8b336d Moved VoxelLodTerrain and VoxelTerrain stuff to their own folders 2022-03-20 22:57:53 +00:00
Marc Gilleron
f25a019c62 Added a command line argument to compile tests 2022-03-20 18:29:31 +00:00
Marc Gilleron
239a87a6e9 Moved noise and SDF range utilities to util/ 2022-02-05 16:14:57 +00:00
Marc Gilleron
4e72f44eb5 Workaround warning on non-MSVC compilers 2022-01-08 19:07:54 +00:00
Marc Gilleron
bc36ffe191 Remove old commented code, Godot uses C++17 now 2022-01-08 18:56:06 +00:00
Marc Gilleron
56b4920902 Updated and integrated FastNoise2 2021-12-31 05:06:00 +00:00
Marc Gilleron
3db4798e14 Draw instance chunks in editor 2021-12-30 22:20:30 +00:00
Marc Gilleron
0be0fb19b0 Moved task stuff to utilities 2021-12-29 19:08:23 +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
9a74362aca Added vox scene importer. No options at the moments. 2021-07-31 18:48:47 +01:00
Marc Gilleron
5fcd7f7363 Added mesh optimization option to Transvoxel, using MeshOptimizer 2021-07-11 16:19:49 +01:00
Marc Gilleron
b538a0beb8 Moved noise tests to tests folder 2021-06-19 18:34:50 +01:00
Marc Gilleron
b5f1634906 Fix undefined variable 2021-05-08 20:41:28 +01:00
Marc Gilleron
46437ef9e7 Only run tests in debug targets for now 2021-05-08 19:27:33 +01:00
Marc Gilleron
9bcc3580d6 Added first C++ test 2021-04-03 20:40:35 +01:00
Marc Gilleron
76ec90fe34 Moved constants and tables under a folder 2021-02-21 23:58:00 +00:00
Marc Gilleron
00fe474d46 Attempted again to integrate FastNoise2, but C++17 is really needed. 2021-02-21 03:02:32 +00:00
Marc Gilleron
d1207bdd96 Reorganized some utility files 2021-02-17 20:34:35 +00:00
Marc Gilleron
094bbc1fe1 Refactored API to allow editor inspection and preview 2021-02-14 21:55:31 +00:00
Marc Gilleron
6856f4b491 Moved instancing stuff under a folder 2021-02-07 21:40:55 +00:00
Marc Gilleron
4353939eb4 Move region stuff to a folder 2021-01-31 16:51:42 +00:00
Marc Gilleron
01e5e18922 Implemented VoxelStreamSQLite 2021-01-28 22:02:49 +00:00
Marc Gilleron
973cf729cd Added FastNoise2 for SIMD noise, but it won't be integrated yet.
It requires C++17, while Godot uses C++14. I was unable to override it,
and I'm not sure how compatible this will be with the runtime.
At least this would be doable in Godot 4.
2021-01-09 16:35:40 +00:00
Marc Gilleron
c8dcbc55e3 Added FastNoiseLite 2021-01-02 00:59:12 +00:00
Marc Gilleron
2018625b34 Moved simple generators under a simple/ folder 2020-12-18 21:19:02 +00:00
Marc Gilleron
e73cdaa707 Exclude editor stuff when building an export template 2020-12-04 22:01:41 +00:00
Marc Gilleron
d158a92f57 Show bounds and octrees of VoxelLodTerrain with debug drawing 2020-10-24 00:08:14 +01:00
Marc Gilleron
6c80da0425 Moved VoxelBuffer and VoxelMemoryPool under storage/ directory 2020-09-14 19:33:02 +01:00
Marc Gilleron
79d73e3f5a Added cubes mesher with greedy meshing support 2020-09-11 00:36:23 +01:00
Marc Gilleron
1fe50b01d6 Added VoxelServer. Compiles, but isn't used anywhere yet 2020-08-24 01:49:23 +01:00
Marc Gilleron
23ce65d789 Show terrain in editor, with option to turn it off. A scripted stream will turn it off by default. 2020-08-14 20:33:09 +01:00
Marc Gilleron
27f37ea56c Move voxel graph editor under its own folder 2020-07-30 18:50:45 +01:00
Marc Gilleron
33d38e61b1 Merge branch 'master' into voxel_gen_graph 2020-05-08 18:09:09 +01:00
Cory Petkovsek
d407d6201a Fix build warnings on other platforms 2020-04-03 20:46:29 +08:00
Marc Gilleron
e7c720ceeb Added barebones editor plugin to edit VoxelGeneratorGraph (does nothing for now) 2020-03-01 18:12:16 +00:00
Marc Gilleron
515751a3e6 WIP VoxelGeneratorGraph, compiled and untested 2020-02-19 19:26:14 +00:00
Marc Gilleron
8879d9b2e7 Moved all generators under their own base class and folder 2020-01-26 22:34:26 +00:00
Marc Gilleron
0ac1b7e6dc Moved edition-related classes to a sub-folder 2020-01-26 20:29:44 +00:00
Marc Gilleron
6977133006 Forked Transvoxel mesher into an MC one with overlap seam mode.
It's mostly because the transvoxel mesher is going to change,
and the MC mesher will only act as a simplified legacy mesher.
It has experimental support for overlap seams, but it didn't work
well due to Z-buffer precision being too weak.
2019-12-23 21:41:30 +00:00
Marc Gilleron
89a0888f9f Moved lz4 to a thirdparty folder 2019-08-24 23:07:30 +01:00
Marc Gilleron
adc6a9391c Fix threading issue causing corruption when duplicate rejection is active 2019-08-23 22:49:43 +01:00
Marc Gilleron
3a64209b27 Added LZ4 compression to saved blocks. Makes them fit in single sectors much more often, increasing performance 2019-08-17 18:15:16 +01:00
Marc Gilleron
a36322842a Reorganize SCons script 2019-05-30 00:45:19 +01:00
Marc Gilleron
4a90ca10a5 Rename "provider" files to "stream" 2019-05-25 16:16:03 +01:00