|
2d2b7c8c3e
|
Started reworking the way props are handled. Removed every old PropData related classes. Props are now just normal PackedScenes. Spawning conveniences/network synchronization will come later.
|
2020-04-04 17:22:07 +02:00 |
|
|
214323a9a0
|
Fix compile.
|
2020-04-03 09:32:34 +02:00 |
|
|
bf211fd430
|
Moved everything that is prop related to a new repository (props). It is required for this to compile for a short wile, while I rework things.
|
2020-04-03 09:25:07 +02:00 |
|
|
6cae9a0494
|
Set the property hint for voxel_world to 0. This fixes saving chunks as resoruces.
|
2020-04-02 21:38:19 +02:00 |
|
|
9da5d2e2d0
|
VoxelChunk now inherits from Resource instead of from Spatial. This is to make the scene cleaner (especially after I implement the world editor plugin). As a small bonus this should also make multithreading-related crashes harder to create, as manipulating the Scenetree from a thread by accident is now a lot harder.
|
2020-04-02 21:28:19 +02:00 |
|
|
599b3eb8ea
|
Fixed 2 warnings.
|
2020-03-31 13:32:06 +02:00 |
|
|
f7fd0193ea
|
Added an editable property to VoxelWorld, and made the world editor plugin make use of it.
|
2020-03-31 13:25:31 +02:00 |
|
|
dfafb23342
|
VoxelChunk now won't expose the channels for the editor. This functionality should be implemented per chunk implementation. Did not delete the code yet, just commented it out.
|
2020-03-31 12:42:22 +02:00 |
|
|
3969e0ba5f
|
Fix a multithreading related crash.
|
2020-03-30 23:15:23 +02:00 |
|
|
f26fe74fc4
|
Ported the lod implementation from Broken Seals.
|
2020-03-30 19:46:39 +02:00 |
|
|
393ee1fb1b
|
DefaultVoxelChunk now has a general interface for storing mesh/collider RIDs.
|
2020-03-30 18:32:39 +02:00 |
|
|
ee03e42a5a
|
Fix assign.
|
2020-03-30 14:57:07 +02:00 |
|
|
4691e2aaef
|
Ported merge_mesh_array and merge_mesh_array from Broken Seals.
|
2020-03-30 14:36:49 +02:00 |
|
|
4a3c9836ff
|
Made the default visibility change event overrideable in VoxelChunkDefault.
|
2020-03-29 23:55:40 +02:00 |
|
|
541abb954d
|
Now materials in Library are stored with vectors. This makes it possible to have different materials for every lod level for example.
|
2020-03-29 20:19:38 +02:00 |
|
|
ddfdb4489f
|
Missed a binding.
|
2020-03-24 18:44:17 +01:00 |
|
|
87d387388c
|
Apparently, calling emit signal and set_process_internal form a separate thread is not smart.
|
2020-03-24 18:42:01 +01:00 |
|
|
d0578c24d4
|
Separated VoxelStructure into 2 classes, and made it scriptable.
|
2020-03-19 13:08:58 +01:00 |
|
|
666695a220
|
Now VoxelChunkDefault will move it's meshes if it's transform changes, free them on EXIT_TREE, and sets their visibility. Also added a few missing break statements.
|
2020-03-15 19:33:10 +01:00 |
|
|
080e8f2437
|
Broke up VoxelChunk into VoxelChunk and VoxelChunkDefault.
|
2020-03-12 23:23:38 +01:00 |
|
|
29b77a3a6d
|
Finished up the rework I started in the prevoius commit.
|
2020-03-06 21:09:13 +01:00 |
|
|
90cbfe02cc
|
started reworking how chunk handles threaded builds.
|
2020-03-06 16:12:39 +01:00 |
|
|
8f71179c5e
|
More work on Chunk's threading.
|
2020-03-06 15:39:55 +01:00 |
|
|
370e14f6c8
|
Removed the temp mesh array I just added from voxel chunk.
|
2020-03-06 14:27:04 +01:00 |
|
|
656f0ba9fa
|
build_phase() and _build_phase() in Chunk now won't return/need to return a value, as get_build_phase_done() is equivalent. Also now chunk building is actually threaded, as it seems like I managed to remove thread creation in one of the refactor commits. Also fixed a few smaller issues/inconsistencies.
|
2020-03-06 14:22:04 +01:00 |
|
|
d08da0375a
|
Better way of handling the previous improvement. It will actually work now properly aswell.
|
2020-03-04 20:49:00 +01:00 |
|
|
f9d13c611f
|
Improved aborting chunk build.
|
2020-03-04 20:12:15 +01:00 |
|
|
59291a9417
|
Fix math in is_position_walkable.
|
2020-03-04 18:35:09 +01:00 |
|
|
fbd2903477
|
Added is_position_walkable query to World, also a few related things.
|
2020-03-04 15:21:32 +01:00 |
|
|
dec4fcd402
|
Added get_max_frame_chunk_build_steps to be able to limit the chunk build steps launched per frame. Also a few smaller improvements.
|
2020-03-04 14:59:34 +01:00 |
|
|
d431ca4daa
|
Added index-based remove chunk function, also fixed remove_chunk, now it properly removes the given chunk from the chunk map.
|
2020-03-04 10:48:53 +01:00 |
|
|
e45e3875f8
|
Setup for a new VoxelWorldEditor.
|
2020-02-27 14:27:52 +01:00 |
|
|
d85187b6a8
|
Removed stray files.
|
2020-02-27 13:43:46 +01:00 |
|
|
36063410f9
|
Hide saved channels in the editor, and from scripts.
|
2020-02-26 12:22:46 +01:00 |
|
|
3e98b8e01c
|
Added a few properties to chunk, so they can be saved into PackedScenes if needed.
|
2020-02-26 01:08:18 +01:00 |
|
|
5b32345181
|
Fleshed out VoxelStructure's api.
|
2020-02-23 22:09:45 +01:00 |
|
|
f25dac92ea
|
Started reworking VoxelStructure's api.
|
2020-02-21 10:42:51 +01:00 |
|
|
6c39845387
|
Removed a few now unneeded methods from VoxelChunk, they got merged into _build_phase. Also added build_mesh_into to VoxelMesher, it's equivalent to the old build_mesh.
|
2020-02-20 13:44:38 +01:00 |
|
|
8b734eec11
|
Mesher's build_mesh function now has no argument, and returns an array.
|
2020-02-20 13:19:54 +01:00 |
|
|
509d45a662
|
build_phase() in VoxelChunk should be thread safe.
|
2020-02-16 16:18:41 +01:00 |
|
|
07afd06c2a
|
Now chunks can properly use multiple meshers at the same time.
|
2020-02-14 19:02:31 +01:00 |
|
|
a457ed400c
|
Added data margin start, and end property to VoxelWorld for easy access. Improved set_voxel, and get_voxel in VoxelChunk to accomodate for margins as originally intended (e.g. if start_margin is 1, indexes go from -1 to size + end margin). Fixed/updated indexing in VoxelMesherCubic.
|
2020-02-14 03:19:15 +01:00 |
|
|
3a8310c51f
|
More improvements to chunk's threading logic. Also removed the build_phase_done function I added a few hours ago, and made build_phase return a bool (true if the phase is completed, false if not), essentially achieving the same effect.
|
2020-02-12 20:34:16 +01:00 |
|
|
8a2524dc57
|
Improved multithreading a lot, it doesn't seem to crash anymore. Also made chunk mesh generation faster by letting build phases run one after an another without launching new threads (using is_phase_threaded).
|
2020-02-12 14:16:31 +01:00 |
|
|
fd1ff4b4ff
|
Better chunk building setup. And smaller fixes and tweaks.
|
2020-02-10 23:39:57 +01:00 |
|
|
db77530ec1
|
Updated the license for 2020, and added it to the top of my cpp files.
|
2020-01-31 19:52:37 +01:00 |
|
|
01bb492760
|
Merge branch 'meshers'
|
2020-01-13 00:40:10 +01:00 |
|
|
104a307d55
|
Now Chunk has a vector of meshers, this simplifies for example liquid meshing, and this allows combining multiple meshers. Also the number of build phases is settable.
|
2020-01-13 00:39:55 +01:00 |
|
|
c0c0fa403c
|
Fix a typo in Chunk's bindings.
|
2020-01-12 21:58:23 +01:00 |
|
|
a67d0393ca
|
Clang format.
|
2020-01-09 04:29:05 +01:00 |
|