2216 Commits

Author SHA1 Message Date
Aaron Franke
84b68dd459
Run doctool to update docs for Godot 4 2022-08-03 17:51:08 -05:00
Aaron Franke
637bb0ed17
Update class list in get_doc_classes
Add new ones and alphabetize
2022-08-03 17:37:07 -05:00
Marc Gilleron
3ee3931824 Separated function to store into images only 2022-08-03 21:43:57 +01:00
Marc Gilleron
bde74f0785 Store final normals encoded instead of full vec3f, and copy into Image instead of using set_pixel 2022-08-03 21:31:29 +01:00
Marc Gilleron
6c0a1e4463 Missing ref 2022-08-03 21:05:26 +01:00
Marc Gilleron
9973ac5e3a Split into functions a bit 2022-08-03 19:31:24 +01:00
Marc Gilleron
adbe393440 Optimized triangle raycasts a bit 2022-08-03 18:49:46 +01:00
Marc Gilleron
14f841fd7f Merge branch 'master' into smooth_normalmaps 2022-08-03 00:04:11 +01:00
Marc Gilleron
f171628ad2 Added popout button to the graph editor to open it on a separate window 2022-08-02 22:14:33 +01:00
Marc Gilleron
f81e64dd14 Added pinning to voxel graph editor 2022-08-02 00:38:21 +01:00
Marc Gilleron
cff51fbe89 Unnecessary signal arguments 2022-08-02 00:35:13 +01:00
Marc Gilleron
fd54901700 Unused variable 2022-08-01 01:24:55 +01:00
Marc Gilleron
181601e011 Fix macro 2022-08-01 01:03:28 +01:00
Marc Gilleron
b53df948d0 Fix ambiguous call with float=64 2022-08-01 00:55:21 +01:00
Marc Gilleron
b1f4aee78b ResourceSaver::save arguments were swapped 2022-08-01 00:08:21 +01:00
Marc Gilleron
f160891b5d Callable::call was renamed callp 2022-08-01 00:07:51 +01:00
Marc Gilleron
ed21e3bdeb Binds arguments were removed from connect() 2022-08-01 00:07:20 +01:00
Marc Gilleron
ea65bb1ced Merge branch 'master' of https://github.com/Zylann/godot_voxel 2022-07-31 23:25:14 +01:00
Marc Gilleron
5330c946a5 Fix crash when modifying a VoxelGeneratorGraph with "live update" while no terrain node is selected 2022-07-31 23:24:33 +01:00
Marc Gilleron
bf6dc622b5 Comment 2022-07-31 23:20:27 +01:00
Marc Gilleron
2d757c7ece Moved distance normalmaps code to its own file 2022-07-31 23:04:36 +01:00
Marc Gilleron
0c3b103689 Improvements
- Project samples on triangles to make cells more seamless,
  instead of a box of samples on a quad. Requires 2x more samples.
- Don't sample when there is no triangle for a given pixel
- Dilate normalmaps to reduce artifacts on edge of triangles
- Moved math functions about triangles in their own file
2022-07-31 22:42:05 +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
b5257f0f48 Fixed various previews not showing up
ImageTexture::create_from_image is now static, this was nasty...
2022-07-30 22:56:33 +01:00
Marc Gilleron
ae26c13d68 Added strength parameter for sculpting smooth voxels 2022-07-30 22:11:24 +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
89e7c4e90c Document default connections 2022-07-29 21:30:22 +01:00
Marc Gilleron
d8b1e090f5 Macros 2022-07-29 21:30:07 +01:00
Marc
6f75baebde
Merge pull request #413 from aaronfranke/translated-local
Rename translated to translated_local
2022-07-29 01:17:24 +01:00
Aaron Franke
b570d1b5b6
Rename translated to translated_local 2022-07-28 18:38:33 -05:00
Marc Gilleron
d7a6b8aaab Added default input connections to some voxel graph nodes 2022-07-28 23:08:05 +01:00
Marc Gilleron
62ac840375 Fix release build 2022-07-24 14:25:40 +01:00
Marc Gilleron
35585af71b Merge branch 'master' of https://github.com/Zylann/godot_voxel 2022-07-24 04:35:01 +01:00
Marc Gilleron
d1b935fd99 Fix Control::PRESET_WIDE enum was renamed 2022-07-24 04:34:10 +01:00
Marc Gilleron
970e81734d Make transform_cache thread-local instead of per instancer 2022-07-24 04:11:51 +01:00
Marc Gilleron
1f128a7803 Fix some issues with persistent instance positions
- Scene instances were not made relative to their block
- Saving a block while mesh size is 16 and loading it back while mesh size
  is increased to 32 should now work. Before, positions were saved
  relative to render block instead of data block, which forced to
  keep mesh and data sizes the same
- Fixed incorrect octant_index in save_block, Z shift was 1 instead of 2
2022-07-24 01:00:02 +01:00
Marc Gilleron
0e7fe5f4e3 Exposed debug draw methods on VoxelInstancer 2022-07-24 00:48:03 +01:00
Marc Gilleron
9cde2e94ac Bound check 2022-07-24 00:44:24 +01:00
Marc Gilleron
bef247efe4 Fix size printed instead of offset, make it print both 2022-07-24 00:43:44 +01:00
Marc Gilleron
25bdeb0e8e Macro changes 2022-07-24 00:42:35 +01:00
Marc Gilleron
3978b19e7a Added floor and wrapf to Vector3 math:: functions 2022-07-24 00:41:56 +01:00
Marc Gilleron
c1744a1da5 Fix printing of Vector3 2022-07-24 00:41:34 +01:00
Marc Gilleron
0fec308c0c Added const iterator to FixedArray so constant range for can be used 2022-07-24 00:40:59 +01:00
Marc Gilleron
1c8ecc1b89 Fix debug drawing of edited data blocks showing non-edited data blocks 2022-07-23 00:05:25 +01:00
Marc Gilleron
01328fb905 Allow to configure debug draw while the terrain is not in the tree 2022-07-22 23:08:43 +01:00
Marc Gilleron
96b4e5a729 Clamp fractal gain to useful range 2022-07-22 23:08:15 +01:00
Marc
577832d3ff
Merge pull request #412 from duskmushroom/patch-1
Update README.md
2022-07-22 19:28:26 +01:00