9 Commits

Author SHA1 Message Date
Marc Gilleron
0bf72badbd Fix dangling mesh block position upon removal from map, when such block had a pending update 2021-12-16 22:59:31 +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
026c14fcb5 Added importer to import vox files into a single mesh
- New importer, needs restart to switch but it's a limitation of Godot
- Might blow up if the scene spans a really big area, may be optimized in the future.
- The scene importer remains the default choice
- Promoted some ints to 64-bit to avoid oveflowing with large volumes or distances
- Handle a few cases of malloc failure
2021-08-14 16:49:46 +01:00
Marc Gilleron
8ba9f07978 Fix warning 2021-07-28 19:43:25 +01:00
Marc Gilleron
2853f42dd7 Check for the case PoolVectors run out of allocs 2021-07-28 19:24:53 +01:00
Marc Gilleron
42240fa018 Fix issues with is_uniform
- Items that cannot pack a bucket will use classic per-item comparison
- Fix wrong operator in bucket comparison
2021-04-25 16:21:15 +01:00
Marc Gilleron
b33a432b3d Optimized is_uniform for the case a buffer has not been compressed yet 2021-04-24 21:23:40 +01:00
Marc Gilleron
dc2f853b50 First version of texturing for Transvoxel. Needs optimization and tooling. 2021-04-21 18:26:40 +01:00
Marc Gilleron
d1207bdd96 Reorganized some utility files 2021-02-17 20:34:35 +00:00