Marc Gilleron
66141be0b3
Fix one more GCC warning
2021-01-09 20:33:39 +00:00
Marc Gilleron
a96a377953
Fix reference to temporary I guess, detected by GCC only
2021-01-09 20:23:51 +00:00
Marc Gilleron
22bd0d5091
Fix shadowing issue, also inlined function used in only one place
2021-01-09 20:22:37 +00:00
Marc Gilleron
93b4e6803a
Remove unused variables
2021-01-09 20:21:51 +00:00
Marc Gilleron
3a7f99643d
Fix more signed/unsigned warnings
2021-01-09 20:21:09 +00:00
Marc Gilleron
4686735f00
Fix pseudo-shadowing detected by GCC
2021-01-09 19:51:58 +00:00
Marc Gilleron
cf83aca282
Fix signed/unsigned comparisons
2021-01-09 19:49:11 +00:00
Marc Gilleron
494512a424
Fix initialization order
2021-01-09 19:34:03 +00:00
Marc Gilleron
348618d605
Fix wrong variable name
2021-01-09 19:33:48 +00:00
Marc Gilleron
1bb3d19e03
Use buffers to generate previews
2021-01-09 18:35:53 +00:00
Marc Gilleron
b2ca66e714
Fix Smoothstep node, params were not initialized
2021-01-09 16:36:09 +00:00
Marc Gilleron
973cf729cd
Added FastNoise2 for SIMD noise, but it won't be integrated yet.
...
It requires C++17, while Godot uses C++14. I was unable to override it,
and I'm not sure how compatible this will be with the runtime.
At least this would be doable in Godot 4.
2021-01-09 16:35:40 +00:00
Marc Gilleron
1e95374ccb
The graph runtime now suports arbitrary position buffers, instead of an XZ rectangle
2021-01-08 21:04:49 +00:00
Marc Gilleron
04c1d61cd2
Quick cleanup, also patch preview nodes
2021-01-07 23:36:14 +00:00
Marc Gilleron
e00ed9b538
Move all node logic to function pointers, each combined into one place
2021-01-07 22:19:06 +00:00
Marc Gilleron
2cfa46bf0d
Removed wrong bound estimation for value cubic noise, it caused rare but ugly gliches in the terrain
2021-01-07 21:02:24 +00:00
Marc Gilleron
4a290f27c0
Removed bounds support, it not really relevant anymore
2021-01-05 22:24:13 +00:00
Marc Gilleron
825fa4147b
Main graph generator now uses buffers for blocks
2021-01-05 18:59:52 +00:00
Marc Gilleron
15fe9ecdeb
Fix Wrong position buffer when stride is 1
2021-01-05 18:57:30 +00:00
Marc Gilleron
dafb4f39ff
First WIP to try per-buffer processing instead of per-voxel
2021-01-04 22:19:13 +00:00
Marc Gilleron
62c9cb29f4
Update readme
2021-01-04 22:12:23 +00:00
Marc Gilleron
3364748fef
Integrate FastNoiseLite to voxel graph generator
2021-01-03 20:23:45 +00:00
Marc Gilleron
ff0b9271cf
Make FastNoiseLite access constant
2021-01-03 17:43:18 +00:00
Marc Gilleron
c8dcbc55e3
Added FastNoiseLite
2021-01-02 00:59:12 +00:00
Marc Gilleron
3e31140ed8
Bind missing constant for the Normalize3D node
2021-01-02 00:58:01 +00:00
Marc Gilleron
394a123bb7
Fixed Clamp node, it was using parameters as adresses
2021-01-01 01:43:46 +00:00
Marc Gilleron
0346de9f6d
Added Phyronnaz
2021-01-01 01:43:10 +00:00
Marc Gilleron
ca22dc5a29
Should not be there
2020-12-29 22:18:08 +00:00
Marc Gilleron
e676324e3d
Update changelog
2020-12-29 22:15:03 +00:00
Marc Gilleron
5fdc4b6485
Debug check and some formatting
2020-12-29 22:14:49 +00:00
Marc Gilleron
d64340aa73
Small optimization in Remap node
2020-12-29 22:12:31 +00:00
Marc Gilleron
e6c44f9768
Don't recycle materials when we only save blocks
...
This should only happen if the block is actually about to get unloaded
2020-12-29 22:10:31 +00:00
Marc Gilleron
edfc96e4a5
Fixed crash when hiding terrain while selected in editor
2020-12-27 15:51:03 +00:00
Marc Gilleron
57fac6c5b1
Fix GCC warning
2020-12-26 19:01:49 +00:00
Marc Gilleron
e462cd788a
Optimized range analysis for images and spherical map lookups
2020-12-26 18:58:16 +00:00
Marc Gilleron
cc13bbd70a
There is an About window now
2020-12-25 17:18:03 +00:00
Marc Gilleron
860c0a2f1d
Update changelog
2020-12-25 17:11:08 +00:00
Marc Gilleron
e988cb9124
Show main thread tasks
2020-12-25 17:08:40 +00:00
Marc Gilleron
c94cb9c4a1
Multiply instead of divide
2020-12-25 17:06:40 +00:00
Marc Gilleron
9e423a58f7
Voxel graph optimizations:
...
- Dynamically adjust SDF scaling to reduce terracing caused by storage resolution
- Optimize range analysis more aggressively
2020-12-24 23:16:34 +00:00
Marc Gilleron
c8c3886c6f
Voxels now use 16-bit by default on the SDF and TYPE channels
2020-12-24 23:12:36 +00:00
Marc Gilleron
a12144304f
Optimized Transvoxel (nearly twice as fast), also allowing 16, 32 and 64 bit precision
2020-12-23 02:27:54 +00:00
Marc Gilleron
d009049d4f
Added experimental functions to bake sphere maps from the generator
...
- The runtime API now works with float positions
- Fixed XZ optimization, cached positions were not assigned
2020-12-22 02:13:46 +00:00
Marc Gilleron
7c6bfe0dbc
Added Normalize node to voxel graph
2020-12-21 20:06:20 +00:00
Marc Gilleron
ae9abb0248
Added SdfSphereHeightmap node to graph generator
2020-12-21 02:00:31 +00:00
Marc Gilleron
eb9a5b7e07
Added background tasks indicator when a terrain is selected
2020-12-20 00:14:08 +00:00
Marc Gilleron
418cf0e630
Streaming/LOD can be set to follow the editor camera instead of being centered on world origin
2020-12-19 23:16:10 +00:00
Marc Gilleron
659e45fe32
Fix hyperlinks not working in about window. Also made license text selectable
2020-12-18 23:12:32 +00:00
Marc Gilleron
6d9fd2f8a0
Voxel terrain nodes now have a common abstract base class. Also explicitely made a few other classes abstract
2020-12-18 22:58:41 +00:00
Marc Gilleron
71b4139fb3
Fix another warning about precedence clarity
2020-12-18 21:29:56 +00:00