Commit Graph

  • af0c4d6586 add_chunk will error out now if a chunk is already owned by an another world. Also smaller improvements to set_chunks and the exit tree notification. Relintai 2020-04-22 15:57:00 +0200
  • a2a9c1f714 Fix an in-editor scene-saving related crash. Relintai 2020-04-22 12:35:48 +0200
  • 9475986ee0 Added is_inside_tree() property to VoxelChunk. Relintai 2020-04-22 12:33:14 +0200
  • b970c86264 Hide a few properties from the editor, and also from serialization. Relintai 2020-04-22 12:26:53 +0200
  • 49af0c9f30 Fix potential crash. Relintai 2020-04-22 12:23:49 +0200
  • efd08f69bf Allow the level generator to be null, without failing. Relintai 2020-04-22 12:21:50 +0200
  • a34ceedf6a Now merge_mesh_array and bake_mesh_array_uv will work properly even if the supplied arrays don't have all the expected channels. Relintai 2020-04-22 12:20:33 +0200
  • a306f8cf91 Add queued generation the VoxelChunkDefault. Relintai 2020-04-22 12:16:31 +0200
  • f00dd13c43 Fix typo. Relintai 2020-04-20 18:19:33 +0200
  • 5235641122 Only build liquid colliders inside the editor. Relintai 2020-04-20 17:41:37 +0200
  • 23e5f1cedf Sync classref with current source. Relintai 2020-04-20 17:37:01 +0200
  • 61c246c069 Disabled area generation for now. Relintai 2020-04-20 17:33:04 +0200
  • 9635ef064c A bit more work on areas. They don't work properly yet, they might need to have a closed mesh. Relintai 2020-04-20 17:30:22 +0200
  • ed990caa32 Fix threaded ingame area generation. Relintai 2020-04-20 13:59:37 +0200
  • 70c884d273 Fix a few in-editor crashes. Relintai 2020-04-20 13:54:24 +0200
  • 5748179d66 The temp collider arrays are now properly cleared. Relintai 2020-04-20 13:40:27 +0200
  • 289c456428 Now VoxelChunkDefault can create area colliders aswell, liquids are created using these in the running game. (Only there because the editor needs raycasting.) Also fixed setting liquid visibility. Relintai 2020-04-20 01:01:24 +0200
  • 6e9a952a2a Implemented liquid meshing. Relintai 2020-04-20 00:31:46 +0200
  • 1c0854a845 Remove unused class variable. Relintai 2020-04-19 23:56:11 +0200
  • 1a1c0ade12 Liquid mesher will only mesh liquid blocks now. Relintai 2020-04-19 23:55:06 +0200
  • e07bb3850d Now the blocky mesher will not mesh the liquid blocks. Relintai 2020-04-19 23:48:59 +0200
  • 21ad01ca80 Removed separate liquid surfaces. They will be contained inside the normal voxel arrays. Relintai 2020-04-19 23:35:47 +0200
  • bb7daf8f6b Added liquid property to VoxelSurface, also small api cleanup. Relintai 2020-04-19 23:10:23 +0200
  • ab26a7627a Added a blocky liquid mesher. (It's just a copy of the normal blocky mesher for now.) Relintai 2020-04-19 23:02:37 +0200
  • 23c4321d71 Added missing classes to config.py, and sync classref with the current source. Relintai 2020-04-18 02:33:05 +0200
  • 4a2321b161 Some settings in world will now get distributed to chunks. is_build_threaded has been moved from coxel chunk default to voxel chunk. ALso fixed a few crashes. Relintai 2020-04-18 02:15:01 +0200
  • 7d20bd10d8 The new initialized property shouldn't be serialized. Relintai 2020-04-17 22:16:25 +0200
  • 23d9acb5d4 Ported the lod level updater code from broken seals. Relintai 2020-04-17 22:09:55 +0200
  • 2d5b9ed029 Removed build_deferred, and build_prioritized methods from the default chunk. Relintai 2020-04-17 20:24:50 +0200
  • bee499d951 The library now has an initialized bool. Also the world editor will refresh rects in the library if needed. Relintai 2020-04-17 19:21:46 +0200
  • c382dac3ff Added a new tool to the world editor, it adds a block to the location of the spatial editor's camera. Relintai 2020-04-17 18:36:14 +0200
  • ba0c1bc820 Added a flat level generator. Relintai 2020-04-17 15:29:36 +0200
  • 59b5086113 Fix potential crash in the blocky mesher. Relintai 2020-04-17 14:32:52 +0200
  • 5c0ab27715 Added 3 more helper functions to voxel world. Relintai 2020-04-17 10:15:50 +0200
  • 9cdd107565 Added the surface lists into scroll containers. Also text is now aligned to the left on the buttons. Relintai 2020-04-17 02:39:23 +0200
  • 35863196d7 Now the world editor will use the channel reported by world's get_channel_index_info. Also it now has support for liquid channels (based on the currently selected tab). Relintai 2020-04-17 02:09:24 +0200
  • f43e4a2cc4 Implemented add and remove tool mode selectors in world editor. Also added shortcuts (a, s). Relintai 2020-04-17 01:52:16 +0200
  • 7c0390de74 The air block is not required anymore. Also Implemented the sidebar for world editor. And fixed a naming error for a virtual method in the merger library. Relintai 2020-04-17 00:37:22 +0200
  • 76f9011c24 Added an overrideable fonction to VoxelWorld, so the editor plugin will be able to query the correct channel ids, for any particular world. returning -1 will mean not supported. Relintai 2020-04-16 21:59:30 +0200
  • b21030ae89 More const qualifiers. Relintai 2020-04-16 17:54:32 +0200
  • 367c203cc6 Added lots of const qualifiers to world and chunk. Relintai 2020-04-16 17:10:04 +0200
  • 135b34c8a8 Moved the chunk position calculations from the world editor into VoxelWorld. Relintai 2020-04-16 14:44:22 +0200
  • 06d3b0ae32 Add property for voxel structures. Relintai 2020-04-16 14:07:10 +0200
  • d985610574 Cleaned up VoxelStructure, and added an api for them into VoxelWorld. Relintai 2020-04-16 13:40:39 +0200
  • dd0fa1d7ea Cleaned up the prop spawning api in chunk and world. Relintai 2020-04-15 13:06:45 +0200
  • a63ae2183a Removed _THREAD_SAFE_CLASS_ from VoxelChunk as its not used aywhere right now. Relintai 2020-04-15 12:44:16 +0200
  • 7a3e4ecbe3 Cleaned up the light baking api. Relintai 2020-04-15 12:41:52 +0200
  • 17b033e707 Sync classref with the current source. Relintai 2020-04-14 16:59:01 +0200
  • c752086bdd A bit more work on the world editor. Relintai 2020-04-10 16:28:33 +0200
  • fd24639e26 The world editor now won't use right click, as it makes navigation awful. Relintai 2020-04-10 16:13:04 +0200
  • 463e32868b Removed the sphinx based docs, as a better readme.md should be enough (soon). Relintai 2020-04-10 15:55:13 +0200
  • acf2d2d701 Fix 2 multithreading related crashes. Relintai 2020-04-10 15:50:53 +0200
  • 1f23f61b3a Ran clang format, as apparently I had it off. Relintai 2020-04-10 13:55:27 +0200
  • 01c57c30e6 Fix error when the data margins are 0. Relintai 2020-04-10 13:43:49 +0200
  • 17dfbb4cab Fix voxel index calculations in the world editor. Relintai 2020-04-10 13:40:07 +0200
  • 03f9041eb8 Added get_or_create_chunk to VoxelWorld. Relintai 2020-04-10 13:39:11 +0200
  • f6ed4505e7 Fixed indexing in the blocky voxel mesher. Relintai 2020-04-10 13:38:34 +0200
  • 69cc6e0b77 Better block positions for the blocky mesher. Relintai 2020-04-09 22:06:02 +0200
  • a722f807fe Fix building for 3.2. Relintai 2020-04-09 15:45:51 +0200
  • 073e1aeb97 Fix build for 4.0. Relintai 2020-04-09 12:34:39 +0200
  • 9fe51572f4 Didi the same optimization to the transvoxel uv mesher. Relintai 2020-04-07 14:40:35 +0200
  • f7842e1ab2 The blocky mesher is a lot faster now. Relintai 2020-04-07 14:23:20 +0200
  • 40535bfb59 Fix normal compile. Relintai 2020-04-06 23:08:35 +0200
  • a4fc573f85 Optional module dependencies are actually optional now. Relintai 2020-04-06 22:47:03 +0200
  • 8b78f8e91d Library should update it's rects even in the editor now. Relintai 2020-04-06 20:10:57 +0200
  • 4a535207e0 Now chunks will generate the collider in the spawned thread. Also a few smaller tweaks. Relintai 2020-04-06 20:05:19 +0200
  • f63a8910dc Fix coord calculation for the editor plugin. Relintai 2020-04-06 19:46:17 +0200
  • 28ce072e51 Renamed VoxelMesherTransvoxel to VoxelMesherUVTransvoxel. Relintai 2020-04-06 14:52:18 +0200
  • 81dc8bcb36 Don't bake colors, if lighting is disabled. Relintai 2020-04-06 14:23:49 +0200
  • b9ba0c0bf9 Moved _bake_colors and _bake_liquid_colors into VoxelMesherDefault. Also made the other meshers inherit it. Relintai 2020-04-06 14:21:46 +0200
  • c691c13277 Added a _chunk_added virtual method to voxel world. Relintai 2020-04-06 13:55:22 +0200
  • b4c61ac674 Created a default version from world, and the mesher. Also added a BuildFlags enum to VoxelChunkDefault. Converted a few properties to use this. Relintai 2020-04-06 13:41:45 +0200
  • d717c9886b Fix set_chunks, and enter_tree. Relintai 2020-04-06 00:51:25 +0200
  • b046db78ed Removed leftover print. Relintai 2020-04-05 22:56:40 +0200
  • 25da88da19 Add the ability to get or set a channel compressed. Relintai 2020-04-05 22:07:52 +0200
  • 98707674a4 Initial implementation for the voxel world editor. Relintai 2020-04-05 21:02:51 +0200
  • 37517c2e18 Implemented blocky meshing. Relintai 2020-04-05 17:15:08 +0200
  • d36eff4ed3 Fix potential crash. Relintai 2020-04-05 02:08:08 +0200
  • b7f3b59f54 Removed the mutex from build phase. Relintai 2020-04-05 01:47:14 +0200
  • dfee0a7786 Added a blocky mesher, chunk, and world (The minecraft-style mesher). It's incomplete. Also ported the light baking step from Broken Seals, and fixed a few warnings. Relintai 2020-04-05 01:36:41 +0200
  • 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. Relintai 2020-04-04 17:22:07 +0200
  • 04b68ff62d Sync classref with the current source. Relintai 2020-04-03 09:35:45 +0200
  • 214323a9a0 Fix compile. Relintai 2020-04-03 09:32:34 +0200
  • 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. Relintai 2020-04-03 09:25:07 +0200
  • 6cae9a0494 Set the property hint for voxel_world to 0. This fixes saving chunks as resoruces. Relintai 2020-04-02 21:38:19 +0200
  • 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. Relintai 2020-04-02 21:28:19 +0200
  • 599b3eb8ea Fixed 2 warnings. Relintai 2020-03-31 13:32:06 +0200
  • f7fd0193ea Added an editable property to VoxelWorld, and made the world editor plugin make use of it. Relintai 2020-03-31 13:25:31 +0200
  • 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. Relintai 2020-03-31 12:42:22 +0200
  • 165ebb68bf Removed the 2 queue implementations. Relintai 2020-03-31 12:32:49 +0200
  • 0202233a6f Added lz4. It will be used to compress chunk data. The choice of the algorithm was inspired by Zylann's godot_voxel. Relintai 2020-03-31 12:27:29 +0200
  • a36b7a8ab6 Fix linux build with tools=no. Relintai 2020-03-31 00:57:58 +0200
  • 3969e0ba5f Fix a multithreading related crash. Relintai 2020-03-30 23:15:23 +0200
  • f26fe74fc4 Ported the lod implementation from Broken Seals. Relintai 2020-03-30 19:46:39 +0200
  • 393ee1fb1b DefaultVoxelChunk now has a general interface for storing mesh/collider RIDs. Relintai 2020-03-30 18:32:39 +0200
  • ee03e42a5a Fix assign. Relintai 2020-03-30 14:57:07 +0200
  • 4691e2aaef Ported merge_mesh_array and merge_mesh_array from Broken Seals. Relintai 2020-03-30 14:36:49 +0200
  • 4a3c9836ff Made the default visibility change event overrideable in VoxelChunkDefault. Relintai 2020-03-29 23:55:40 +0200
  • 541abb954d Now materials in Library are stored with vectors. This makes it possible to have different materials for every lod level for example. Relintai 2020-03-29 20:19:38 +0200
  • ddfdb4489f Missed a binding. Relintai 2020-03-24 18:44:17 +0100