Marc Gilleron
d440b4f0d8
Wrap debug code
2022-05-14 16:11:44 +01:00
Marc Gilleron
a4abfc770c
Fix variable shadowing warning
2022-05-11 22:24:29 +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
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
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
3289b44136
Made VoxelMeshSDF a resource so it can be saved and loaded
2022-05-05 20:57:34 +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
Marc Gilleron
0c0003ad35
Fix wrong method name
2022-05-02 19:49:50 +01:00
Marc Gilleron
cd9a9092cb
Don't expose untested mode
2022-05-02 19:17:18 +01:00
Marc Gilleron
868ae90fbe
Added VoxelMeshSDF and VoxelToolLodTerrain.stamp_sdf()
2022-05-02 19:14:12 +01:00
Marc Gilleron
2f2ab384a6
Better trilinear interpolation
2022-05-02 15:47:31 +01:00
Marc Gilleron
adbfd3b584
floor_to_int
to emphasize the return value converts to int
2022-05-02 14:49:40 +01:00
Marc Gilleron
6b81e6ac9b
Moved ops to funcs header
2022-04-29 23:27:50 +01:00
Marc Gilleron
a5e429de6f
Moved some Vector3i function specializations to math:: namespace
2022-04-29 23:25:37 +01:00
Marc Gilleron
dc8aed91c3
Added color_to_u16 helper function
2022-04-21 18:50:28 +01:00
Marc Gilleron
d7e0af161a
Abstracted voxel metadata so internals no longer depends on Variant
2022-04-18 19:59:38 +01:00
Marc Gilleron
bfa24402ac
Renamed util/funcs.h => container_funcs.h
2022-04-14 21:43:45 +01:00
Marc Gilleron
9c33eb17d4
Use custom error macros in transvoxel
2022-04-13 23:15:32 +01:00
Marc Gilleron
0cc3801655
Define smart pointers default allocator in a single place
2022-04-10 20:10:33 +01:00
Marc Gilleron
219c7bfda3
Changed prefix of profiling macros
2022-04-09 15:33:08 +01:00
Marc Gilleron
adb2cd2fe9
Return a ref, pointer must not be null
2022-04-09 15:15:22 +01:00
Marc Gilleron
ab5d3a22d3
Abstract logging for verbose print
2022-04-09 15:00:34 +01:00
Marc Gilleron
c4dddaa528
Remove unused function, use & references instead of Ref<T>
2022-04-07 19:44:29 +01:00
Marc Gilleron
5519054c01
Unify macro prefixes
2022-04-06 23:26:54 +01:00
Marc Gilleron
8d8d8b336d
Moved VoxelLodTerrain and VoxelTerrain stuff to their own folders
2022-03-20 22:57:53 +00:00
Marc Gilleron
493b93a051
SDF is now encoded with inorm8 and inorm16
2022-02-26 22:51:29 +00:00
Marc Gilleron
0137ca3036
Namespaced VoxelBuffer in gd::
because it is actually a wrapper
2022-02-15 21:49:20 +00:00
Marc Gilleron
48081faf03
Use real_t
in most utils, use 32-bit floats in meshers.
...
This is a first step to supporting double-precision floats in Godot.
Meshers don't need doubles because vertices, normals and UVs should
never span large enough areas while needing such amount of precision.
Besides, it costs a lot more memory and processing.
2022-02-14 00:11:41 +00:00
Marc Gilleron
f1694b08ec
Remove a few unnecessary usages of the wrapper version of VoxelBuffer
2022-02-03 00:02:10 +00:00
Marc Gilleron
1631e186b5
Fix compilation
...
- Node was not declared anymore in header
- Cannot implicitely cast Variant to Node* anymore
2022-01-30 15:21:59 +00:00
Marc Gilleron
f8b8b27ff2
Renamed Voxel => VoxelBlockyModel, VoxelLibrary => VoxelBlockyLibrary
2022-01-09 23:27:38 +00:00
Marc Gilleron
b67ca3d903
Namespaced every registered class
2022-01-09 22:16:44 +00:00
Marc Gilleron
8166ebbfcf
Namespaced VoxelDataBlock, VoxelDataGrid, VoxelDataMap
2022-01-08 23:04:49 +00:00
Marc Gilleron
38baeae2d9
Namespaced VoxelBufferInternal
2022-01-08 22:49:59 +00:00
Marc Gilleron
924d81f488
Unnecessary extra qualification
2022-01-08 21:24:01 +00:00
Marc Gilleron
c0cb82888e
Changed run_blocky_random_tick so it respects its given area instead of somehow snapping it
2022-01-06 22:06:43 +00:00
Marc Gilleron
64415a3c86
Configure clang-format to put a newline after template declarations
2022-01-04 22:15:57 +00:00
Marc Gilleron
1d63067b6b
Re-namespaced VoxelToolOps
2022-01-03 23:33:29 +00:00
Marc Gilleron
3eb6641c4f
Namespace edition funcs
2022-01-03 23:26:02 +00:00
Marc Gilleron
e20684ce69
Namespaced math funcs
2022-01-03 23:14:18 +00:00
Marc Gilleron
24e9e36434
Namespace SDF functions
2022-01-03 03:18:58 +00:00