Marc Gilleron
9c81ccc5ba
Use special TTR macro for non-editor code
...
Because TTR is not available in non-editor builds
2022-04-04 00:20:36 +01:00
Marc Gilleron
e0008d3335
Fix compilation now Godot comes with its own FastNoiseLite.
...
The version shipped with the module is now prefixed.
Removed usages of OpenSimplexNoise.
2022-04-03 20:07:17 +01:00
Marc Gilleron
646cbacd64
Added Expression node to VoxelGeneratorGraph. Needs polishing.
...
Some things to do:
- Support function calls
- Show expression in the node GUI, eventually edit it there
- Optimize power function
2022-04-03 16:43:04 +01:00
Marc Gilleron
fd0f524bf5
Commented unused variable for now to avoid warning
2022-03-31 22:51:48 +01:00
Marc Gilleron
61b27491f9
Initial implementation of binary search in Transvoxel.
...
It is very slow but seems to be working. It affines vertex positions,
but normals are not improved. Maybe more work will be done in the future
if that technique becomes more relevant.
Partly based on a prior experiment:
11f716f79d0ade59c0e9547a2333183e96b17b43
2022-03-27 21:36:30 +01:00
Marc Gilleron
f631d8880c
Added configuration warnings to resources
2022-03-06 01:10:47 +00:00
Marc Gilleron
72e714e15b
Added OutputSingleTexture
node for outputting a single texture index per voxel
2022-02-27 22:07:42 +00:00
Marc Gilleron
6b6255e93d
This should be integer weights
2022-02-27 22:06:53 +00:00
Marc Gilleron
493b93a051
SDF is now encoded with inorm8 and inorm16
2022-02-26 22:51:29 +00:00
Marc Gilleron
0e54920afb
Replace existing connection if dragging from/to an input port having one already
2022-02-20 16:57:29 +00:00
Marc Gilleron
729b2a3391
Unnecessary includes
2022-02-20 13:31:25 +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
31b4d0bc68
Make it compile with float=64
2022-02-14 21:06:31 +00:00
Marc Gilleron
c4ca66516c
Fix comparison signedness warning (2)
2022-02-13 17:37:20 +00:00
Marc Gilleron
e958739759
Fix some narrowing conversions
2022-02-13 16:19:54 +00:00
Marc Gilleron
b3faec2bef
Removed voxel_block_request.h, use specialized structs
2022-02-12 23:37:02 +00:00
Marc Gilleron
a9ba6e0056
Unconnected inputs show their default value directly on the node
2022-02-05 20:09:09 +00:00
Marc Gilleron
8b15cdf604
Can be const
2022-02-05 16:27:52 +00:00
Marc Gilleron
5685e3c41e
Use references instead of pointers, they should not be null
2022-02-05 16:23:03 +00:00
Marc Gilleron
239a87a6e9
Moved noise and SDF range utilities to util/
2022-02-05 16:14:57 +00:00
Marc Gilleron
b8e8ba84b0
Added support for outputting to the TYPE channel from VoxelGeneratorGraph
2022-02-05 00:45:17 +00:00
Marc Gilleron
78b5b8644d
Formatting
2022-02-04 22:52:17 +00:00
Marc Gilleron
5c75d2fcc4
Fix bad hash function
2022-02-04 22:52:07 +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
b7e56c6bec
Moved other tasks out of VoxelServer
2022-02-02 21:03:09 +00:00
Marc Gilleron
08f3786ff6
Use typed code instead of strings in property hints
2022-01-16 16:04:25 +00:00
Marc Gilleron
b67ca3d903
Namespaced every registered class
2022-01-09 22:16:44 +00:00
Marc Gilleron
e53dcf7c84
Re-namespaced VoxelConstants
2022-01-09 03:06:58 +00:00
Marc Gilleron
9c653b8a9f
Namespaced FixedArray
2022-01-09 02:53:21 +00:00
Marc Gilleron
2265de6aef
Fix unused variables warning
...
I wish to use them but can't at the moment, leaving commented as reminder
2022-01-08 23:49:40 +00:00
Marc Gilleron
26fd961a36
Fix missing namespace
...
The previous commit made GCC's trouble much clearer
2022-01-08 23:43:19 +00:00
Marc Gilleron
b3eeec40f3
Fix GCC not finding the right invocation of max()
2022-01-08 23:34:05 +00:00
Marc Gilleron
38baeae2d9
Namespaced VoxelBufferInternal
2022-01-08 22:49:59 +00:00
Marc Gilleron
fad9537303
Print an error early if VoxelGeneratorImage is given an image of unsupported format.
...
Otherwise it would spam-print while generating.
2022-01-08 22:48:21 +00:00
Marc Gilleron
9346b351fc
Merge branch 'godot4'
...
# Conflicts:
# doc/source/changelog.md
# editor/about_window.cpp
# generators/graph/image_range_grid.cpp
# generators/graph/range_utility.cpp
# generators/graph/voxel_generator_graph.cpp
# terrain/instancing/voxel_instance_generator.h
# util/voxel_raycast.h
2022-01-08 01:20:45 +00:00
Marc Gilleron
d98c3b0836
Fix image formats L8 and LA8 not being accepted by the Image2D node (picked from cef8bd927aee8d6c2ee55e07b9d2d6702ddb38d7)
2022-01-08 00:36:30 +00:00
Marc Gilleron
8d6a24833c
Fix changing node name not working
2022-01-07 23:40:46 +00:00
Marc Gilleron
cef8bd927a
Fix image formats L8 and LA8 not being accepted by the Image2D node
2022-01-05 00:03:39 +00:00
Marc Gilleron
e20684ce69
Namespaced math funcs
2022-01-03 23:14:18 +00:00
Marc Gilleron
a9476227cb
Namespaced Interval
2022-01-03 22:29:39 +00:00
Marc Gilleron
c0cda5d7a7
Use namespaces in some cpp files that would otherwise be in those namespaces (but aren't because they are registered classes)
2022-01-03 22:01:11 +00:00
Marc Gilleron
492f660831
Namespaced ProgramGraph
2022-01-03 04:47:05 +00:00
Marc Gilleron
4259ea5b80
Namespaced VoxelGraphRuntime
2022-01-03 04:29:53 +00:00
Marc Gilleron
e68f59643b
Namespaced VoxelGraphNodeDB
2022-01-03 03:55:44 +00:00
Marc Gilleron
8777bb2bf1
Namespace ImageRangeGrid
2022-01-03 03:39:59 +00:00
Marc Gilleron
5bb4efa204
Namespaced range_utility
2022-01-03 03:31:24 +00:00
Marc Gilleron
24e9e36434
Namespace SDF functions
2022-01-03 03:18:58 +00:00
Marc Gilleron
0ff835d7ec
Namespace ProfilingClock
2022-01-03 01:40:13 +00:00
Marc Gilleron
174911cce8
Fix noise properties not showing in inspector
2022-01-01 03:53:39 +00:00
Marc Gilleron
1e89a7b75d
FastNoise2 conditional compilation
2021-12-31 21:22:30 +00:00