Commit Graph

9 Commits (c6199563c8e1783f9dbae28cc4dc8e042600cec8)

Author SHA1 Message Date
Marc Gilleron 4a94d13565 Re-namespaced vox stuff 2022-01-03 02:35:40 +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
Scott Wadden 511422c30d Fixed macos build errors 2021-09-22 09:48:35 -03: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 36890408df Profiling scopes 2021-08-07 23:05:42 +01:00
Marc Gilleron 6d6d8fb368 Fix material ID, can be 0 or 256 (whatever that's supposed to mean, while the palette can only have 256 colors) 2021-08-01 15:40:22 +01:00
Marc Gilleron 6b3991c695 Fix warning 2021-07-31 21:24:54 +01:00
Marc Gilleron 3979cbd0b9 Fix vox rotation conversion 2021-07-31 21:22:49 +01:00
Marc Gilleron 9a74362aca Added vox scene importer. No options at the moments. 2021-07-31 18:48:47 +01:00