1910 Commits

Author SHA1 Message Date
Marc
312a301eda
Merge pull request #389 from duchainer/patch-2
Cross-compiler compatibility: const -> constexpr
2022-05-18 21:30:02 +01:00
Raphaël Duchaîne
f9690542b2
Cross-compiler compatibility: const -> constexpr
As suggested in https://github.com/Zylann/godot_voxel/issues/387
This allowed 2 full Mac builds using these commands:
 ```
scons platform=osx arch=x86_64 --jobs=$(sysctl -n hw.logicalcpu) warnings=all tools=yes tests=no target=release_debug production=yes
 ```
```
scons platform=osx arch=arm64 --jobs=$(sysctl -n hw.logicalcpu) warnings=all tools=yes tests=no target=release_debug production=yes voxel_fast_noise_2=false 
```
 -


( Also after having the VulkanSDK like mentioned here[1] and after deleting the `denoise` module which doesn't like ARM64)

[1]: https://github.com/godotengine/godot/issues/57622#issuecomment-1120486153
2022-05-18 16:15:14 -04:00
Marc Gilleron
008c38bb6b Fix some signedness warnings 2022-05-17 23:10:18 +01:00
Marc Gilleron
602ae1ea95 Don't crash if no materials are specified 2022-05-17 23:10:11 +01:00
Marc Gilleron
fa027cbe4e Allow to specify which surfaces have collision 2022-05-17 22:12:54 +01:00
Marc Gilleron
fef56aad36 Merge branch 'master' of https://github.com/Zylann/godot_voxel 2022-05-17 19:45:12 +01:00
Marc Gilleron
4f862722ae Removed usages of Map 2022-05-17 19:44:58 +01:00
Marc Gilleron
3026f6b5a3 Fix tests compilation 2022-05-17 19:34:31 +01:00
Marc
63b94ae8db
Merge pull request #384 from duchainer/patch-1
DOC: Make it clearer where to look on building mismatch
2022-05-16 23:11:13 +01:00
Marc Gilleron
12862a46d0 Changes to blocky materials
- They are now defined in each model
- VoxelTerrain no longer has material slots, except for a global override
- Models can have up to 2 materials instead of only one
2022-05-16 22:55:06 +01:00
Marc Gilleron
d5aaef772d Fix MkDocs formatting not picking up the list 2022-05-16 22:50:16 +01:00
Marc Gilleron
aad2f0df2d Fix transition meshes not removed from the world 2022-05-16 22:07:57 +01:00
Marc Gilleron
8f243f6121 Fix removal of scene instances 2022-05-16 20:23:52 +01:00
Marc Gilleron
443cb4b55d Replace "Spatial" with new name "Node3D" 2022-05-16 20:20:08 +01:00
Marc Gilleron
3632bc5f91 Make it clear the documented API is the scripting API 2022-05-16 20:19:34 +01:00
Marc Gilleron
f4ebfac9a5 Add info about assigning noise properties 2022-05-15 23:29:34 +01:00
Marc Gilleron
34b9b3c321 Updated supporters 2022-05-15 21:01:38 +01:00
Marc Gilleron
09d0be21e2 Remove remaining usages of HashMap 2022-05-14 19:38:39 +01:00
Marc Gilleron
4d8cffe442 Fix non-constant accessor 2022-05-14 16:12:26 +01:00
Marc Gilleron
4f7f0cb3a3 Unnecessary pointer 2022-05-14 16:12:04 +01:00
Marc Gilleron
d440b4f0d8 Wrap debug code 2022-05-14 16:11:44 +01:00
Raphaël Duchaîne
eb4591a512
Make it clearer where to look on mismatch 2022-05-13 17:49:46 -04:00
Marc
9afdd6c4e8
Merge pull request #382 from Trey2k/master
Fixed issues caused by changes to HashMap in godot
2022-05-13 21:19:50 +01:00
Trey M
55533b3542 removed unused key and redundent lookup 2022-05-13 15:04:47 -05:00
Trey M
ecc178fea8 fixed typo 2022-05-13 00:22:36 -05:00
Trey M
96916814de Fixed issues caused by changes to HashMap in godot 2022-05-13 00:14:03 -05:00
Marc Gilleron
a4abfc770c Fix variable shadowing warning 2022-05-11 22:24:29 +01:00
Marc Gilleron
e44b4a3902 Merge branch 'master' of https://github.com/Zylann/godot_voxel 2022-05-11 20:20:06 +01:00
Marc Gilleron
4f30ed4b6d Fixed crash when removing the last block in VoxelInstancer 2022-05-11 20:19:48 +01:00
Marc Gilleron
409f26722b Increase default SDF resolution 2022-05-11 20:19:16 +01:00
Marc Gilleron
86d798abb2 Added floodfill SDF bake mode, less accurate but very fast 2022-05-10 21:15:32 +01:00
Marc Gilleron
3e4230ec9e Added a spinbox to the SDF viewer to scan through the whole result 2022-05-10 20:54:11 +01:00
Marc
47e8e13e38
Merge pull request #380 from kubecz3k/missing-imports
Missing imports
2022-05-10 13:54:58 +01:00
Jakub Grzesik
f6f175e645 Missing imports
On my machine (ubuntu 22.04) I was unable to compile the project.
First I was thinking I have some problem with matching proper godot 
engine version with proper voxel commit (especially that I had no 
problem with building 3.x version), but then I realized automatic builds 
are working here so I took the exact commits from two repos and I still 
had build errors, that made me look more closely at errors and I 
realized that most probably some of my system libraries were build in a 
bit different way and do not include some of the imports. 
After adding those everything builds nicely on current masters (godot 
943b50995292d98d9bc2e45ff04eaf0a716cea28) (voxel module 
668fedfa528f9971577f7bf19041f948db512d3d)
2022-05-10 13:16:32 +02:00
Marc Gilleron
948678a23a Added floodfill bake mode, faster approximation than the interp one 2022-05-08 02:57:46 +01:00
Marc Gilleron
668fedfa52 Fix copypasta 2022-05-07 22:27:52 +01:00
Marc Gilleron
8a7fdbfcf8 Fix signedness warnings 2022-05-07 22:27:35 +01:00
Marc Gilleron
4bc852e573 Fix shadowed variables 2022-05-07 22:27:11 +01:00
Marc Gilleron
3f25899cdf Unused variables 2022-05-07 22:26:23 +01:00
Marc Gilleron
ae8a6c041f Merge branch 'master' of https://github.com/Zylann/godot_voxel 2022-05-07 22:06:54 +01:00
Marc Gilleron
35e4b5cd17 Update to new module registration 2022-05-07 22:06:32 +01:00
Marc Gilleron
35ddc51f18 Fix Basis::get_axis() was renamed to get_column() 2022-05-07 21:27:41 +01:00
Marc Gilleron
0924514adc Missing implementations 2022-05-07 20:48:39 +01:00
Marc Gilleron
dff7386186 Moved conversions to conv.h 2022-05-07 20:34:06 +01:00
Marc Gilleron
f993796ca1 Added inspector plugin to edit VoxelMeshSDF 2022-05-05 20:57:59 +01:00
Marc Gilleron
3289b44136 Made VoxelMeshSDF a resource so it can be saved and loaded 2022-05-05 20:57:34 +01:00
Marc
271d738ada
Merge pull request #374 from duchainer/master
MacOS build: Fix size discrepancy between size_t and uint64_t in voxel_block_serializer.cpp
2022-05-05 20:19:44 +01:00
Marc Gilleron
e289e9da93 Fix and cleanup
- Remove some experimental code
- Fix edge case in boundary sign
- Optimize and re-use grid to space transform
2022-05-04 23:33:40 +01:00
Marc Gilleron
eb03e2df92 Expose boundary sign fix 2022-05-02 22:16:06 +01:00
Marc Gilleron
f30ac3fc2d Expose AABB 2022-05-02 21:39:44 +01:00