Marc Gilleron
c4b8a1e948
Fix typo
2022-08-24 22:41:56 +01:00
Marc Gilleron
8facdce3af
Removed deprecated Span<T> constructors
2022-08-24 22:18:17 +01:00
Marc Gilleron
b1869f390a
Added iterators to Span<T>
2022-08-24 21:27:28 +01:00
Marc Gilleron
c7c14d2e17
Added do_graph
to VoxelToolLodTerrain
2022-08-23 22:58:20 +01:00
Marc Gilleron
f8883966db
Split Godot utilities in their own files
2022-08-20 18:25:23 +01:00
Marc Gilleron
e41c7a1411
Fix incorrect input branch skipping
2022-08-19 23:18:01 +01:00
Marc Gilleron
a18ade364f
Merge branch 'master' into smooth_normalmaps
2022-08-19 20:24:11 +01:00
Marc Gilleron
4c7db0544a
Moved Object hashing to Godot funcs file
2022-08-17 19:35:37 +01:00
Marc Gilleron
41eb19789c
Fix inverted parameters in sub-object hashing
2022-08-17 19:17:18 +01:00
Marc Gilleron
7101233ce6
Fix live update not detecting connection changes
2022-08-17 19:15:06 +01:00
Marc Gilleron
cc40005071
Fixed particular voxel graph not compiling properly.
...
In the following case:
- A depends on B
- A depends on C
- B depends on C
Dependency search was finding C twice.
2022-08-16 23:26:24 +01:00
Marc Gilleron
5c47188773
Fix internally generated nodes causing crashes in VoxelGraphEditor
2022-08-13 18:22:07 +01:00
Marc Gilleron
0b26071663
Support edited voxels in distance normalmaps
2022-08-09 23:56:38 +01:00
Marc Gilleron
3ef0539c95
Default SDF scale to one corresponding to the default bit depth
2022-08-09 23:55:26 +01:00
Marc Gilleron
98feef9b12
Added series generation to VoxelGeneratorNoise2D
2022-08-07 16:15:17 +01:00
Marc Gilleron
c645bb708d
Comments
2022-08-06 23:15:42 +01:00
Marc Gilleron
14f841fd7f
Merge branch 'master' into smooth_normalmaps
2022-08-03 00:04:11 +01:00
Marc Gilleron
181601e011
Fix macro
2022-08-01 01:03:28 +01:00
Marc Gilleron
fcddf4da61
WIP normalmaps for Transvoxel.
...
Adds enough stuff to test the approach. It is not correct at the
moment, probably needs to project to triangles to make cells line up,
currently it's using planes. There might be incorrect coordinates too,
did that with bit of guessing. A grid-like pattern is also showing, so
might have to make tiles a bit larger to account for filtering.
2022-07-31 16:14:36 +01:00
Marc Gilleron
7b059dbe0b
Added equivalent nodes optimization
2022-07-30 00:39:57 +01:00
Marc Gilleron
62e471b3d2
Add get_node_ids() helper method
2022-07-30 00:35:38 +01:00
Marc Gilleron
4221ae71c7
int => unsigned int
2022-07-30 00:34:30 +01:00
Marc Gilleron
bbfda51635
Fix can_connect()
2022-07-30 00:33:27 +01:00
Marc Gilleron
d8b1e090f5
Macros
2022-07-29 21:30:07 +01:00
Marc Gilleron
d7a6b8aaab
Added default input connections to some voxel graph nodes
2022-07-28 23:08:05 +01:00
Marc Gilleron
0bf9a9f87f
Fix uninitialized variable when computing graph hash with sub-resources
2022-07-03 03:25:24 +01:00
Marc Gilleron
db04aa7fb1
Fix shadowed variable
2022-07-02 23:46:52 +01:00
Marc Gilleron
8bb8bfccab
Sort for determinism
2022-07-02 22:43:40 +01:00
Marc Gilleron
8a9825847e
Added live update option to auto-regenerate when the graph is modified
2022-06-30 22:01:17 +01:00
Marc Gilleron
392c335956
Fix crashing/not working edition in VoxelLodTerrain
2022-06-25 22:48:39 +01:00
Marc Gilleron
86ba74ce3a
Some changes and fixes related modifiers
...
- VoxelLodTerrain no longer caches generated voxels by default, so
generating on the fly is no longer exclusive to full load mode.
Might add an option later, but not for now (VoxelTerrain is still
unaffected and keeps caching them)
- The "Cached" state is represented with blocks having no voxel data,
so it needs extra checks in some areas to avoid null access
- Fix generate task was not including modifiers after the base generator
- The "save_generator_output" option on streams now means such blocks are
considered edited
- Modifying modifiers now clears cached generated blocks
intersecting with them.
- Fix "re-generate" was erasing the internal stack of modifiers
- Added docs
2022-06-18 23:14:18 +01:00
Marc Gilleron
f5a77a8f2b
Default to default 16-bit quantization scale
2022-06-09 20:17:28 +01:00
Marc Gilleron
23949c81b5
Fix useless assignment
2022-06-08 21:35:19 +01:00
Marc Gilleron
58185147e3
Fix unused variables
2022-06-08 20:29:18 +01:00
Marc Gilleron
8e3f1bd74d
Fix wrong SDF data generated below ground
2022-06-05 22:47:20 +01:00
Marc Gilleron
687beab897
Fix default noise properties
2022-06-02 20:58:06 +01:00
Marc Gilleron
9588b73128
Auto-create resource params in new graph nodes
2022-05-18 21:33:26 +01:00
Marc Gilleron
09d0be21e2
Remove remaining usages of HashMap
2022-05-14 19:38:39 +01:00
Trey M
96916814de
Fixed issues caused by changes to HashMap in godot
2022-05-13 00:14:03 -05: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
a5e429de6f
Moved some Vector3i function specializations to math:: namespace
2022-04-29 23:25:37 +01:00
Marc Gilleron
8cf52b8967
Fix voxel graph test
2022-04-22 22:06:35 +01:00
Marc Gilleron
4e3d4d4ed8
Threading classes wrappers
2022-04-19 00:32:37 +01:00
Marc Gilleron
2168bc5e12
Fixed unused variable warning
2022-04-16 01:45:57 +01:00
Marc Gilleron
6fb9dd6c04
Fix missing header for GCC (5)
2022-04-16 01:16:58 +01:00
Marc Gilleron
f452d8577a
Fix shadowing and signedness warnings
2022-04-16 01:16:43 +01:00
Marc Gilleron
a5c3f8b824
Fix code to work with Godot's new FileAccess RefCounted object
2022-04-15 23:13:31 +01:00
Marc Gilleron
824a2955a9
Split VoxelGraphRuntime into several files
2022-04-15 16:09:35 +01:00
Marc Gilleron
bfa24402ac
Renamed util/funcs.h => container_funcs.h
2022-04-14 21:43:45 +01:00
Marc Gilleron
e9af708c3b
Moved some utility functions
...
- sort goes to math funcs
- math funcs specializations for vector types go to vector files
- use ZN macros in a few more places
2022-04-14 21:22:22 +01:00