Commit Graph

413 Commits

Author SHA1 Message Date
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
919080a1b5 Added props top the merger library, also it will now merge together all added prop textures. Also api cleanups. 2020-02-16 02:54:17 +01:00
a2fea26837 More work on porting PropTool to c++. 2020-02-15 02:40:40 +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
b5ff42ae11 Started porting PropTool. 2020-02-13 14:34:29 +01:00
601a61619b Added mesher index property to both VoxelMesher, and VoxelSurface. 2020-02-13 14:16:57 +01:00
8b08a9b14f Ported the TransvoxelMesher from BrokenSeals. 2020-02-13 13:21:30 +01:00
201ea0ce1f Now the built in bake_colors method will keep the original alpha in colors if set. Also Added uv2 support in build_mesh. 2020-02-13 03:25:47 +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
ba46eafc19 Removed the mesh simplifier, it has it's own repository now. 2020-01-31 16:13:19 +01:00
6e8d135f0d Work on an editor plugin. Removed it from the build. 2020-01-25 22:06:43 +01:00
b0b38396c4 Added mesh simplifier to the build, fixed compile, and started work on bindings. 2020-01-21 23:56:37 +01:00
3ef382b29f A few missing things. 2020-01-20 16:12:45 +01:00
7e8cbc1fb5 Compile fix. 2020-01-20 15:10:30 +01:00
531599dd1d Moved everything to a new class. 2020-01-20 11:52:54 +01:00
83806f4bc1 More work on porting. 2020-01-20 11:45:46 +01:00
7a35337367 Started porting/integrating Whinarn's UnityMeshSimplifier into VoxelMesher. (https://github.com/Whinarn/UnityMeshSimplifier). 2020-01-20 03:34:07 +01:00
a95973eeba Replaced Vectors to PoolVectors in VoxelMesher. Also added uv2 methods. 2020-01-19 18:25:03 +01:00
2b9f28e573 Added scaled uv calculation to voxel surface. Think of terrarins, when the texture is bigger than one quad. 2020-01-14 22:26:40 +01:00
4a8ed25544 Moved the transvoxel mesher into a folder. 2020-01-14 02:57:32 +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
010b20ee55 Fix a few of the issues with the cubic mesher. 2020-01-12 21:58:14 +01:00
a67d0393ca Clang format. 2020-01-09 04:29:05 +01:00
b559329212 Now this module can be built as shared. 2020-01-03 16:44:53 +01:00
9d48a0758d Added sphinx based documentation skeleton from ESS. Started wokring on the structure. 2019-12-30 17:57:11 +01:00
a449a41037 Removed warning about apis, its not that relevant anymore. Also added link to the mentioned main game. 2019-12-25 14:30:20 +01:00
ac18664fae Doc setup. 2019-12-25 14:08:20 +01:00
8e02dcb9e8 Fix build. 2019-12-24 03:22:17 +01:00
ce4020962e Now the mesher will set the material for the generated meshes directly, also it sets the material as surface material instead of an override material. 2019-12-03 19:22:04 +01:00
22bf841298 An experimental unbounded queue implementation. 2019-12-03 14:28:32 +01:00
c386b6850b Added a really simple thread-safe queue. It will still need a lot of work. 2019-12-03 03:39:53 +01:00
2b369f5be8 Made material texture setup scriptable. 2019-11-25 12:03:45 +01:00
6d8ded844c Quick and dirty temporary readme. It contains the most important things about the module. 2019-11-21 22:40:08 +01:00
c7adc77bea MIT license. 2019-11-21 22:07:42 +01:00
edec04cfdc Chunk now supports threaded builds. Also small fixes. 2019-11-19 20:39:45 +01:00
a377c994e9 Fixes. 2019-11-19 19:14:46 +01:00
ffb154a4fe More work. 2019-11-19 16:42:38 +01:00
1003a393e6 More work. 2019-11-19 16:33:06 +01:00
d2566ab82b gdscript->c++ conversions. 2019-11-19 14:42:21 +01:00
0594215929 Seemingly the bindings are done. Also added a new chunk build phase. 2019-11-19 00:54:28 +01:00
7885d49949 Implemented chunks's new functionality, and work on the bindings. 2019-11-18 23:50:06 +01:00
5bfe5e7905 Fixed linker errors aswell. 2019-11-18 22:40:58 +01:00
de103a3fdf Fixed compile. 2019-11-18 22:35:08 +01:00