941 Commits

Author SHA1 Message Date
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
Marc Gilleron
4ca7a708d5 Fix warning about precedence clarity 2020-12-18 21:24:41 +00:00
Marc Gilleron
d92adc4d94 Give a different name to release CI builds, they could not be told apart 2020-12-18 21:22:57 +00:00
Marc Gilleron
03f2900f6a Fix error when a region file gets created, it was wrongly trying to migrate because the version wasn't set 2020-12-18 21:20:00 +00:00
Marc Gilleron
2018625b34 Moved simple generators under a simple/ folder 2020-12-18 21:19:02 +00:00
Marc Gilleron
791bdafff1 Meshers are now resources assigned on terrain nodes 2020-12-18 21:01:50 +00:00
Marc Gilleron
89abb37e0f consts 2020-12-18 20:52:09 +00:00
Marc Gilleron
dec9b31801 Rename index() to get_index() to make it less like a variable name 2020-12-18 20:48:08 +00:00
Marc Gilleron
87e575e504 Use reinterpret_cast instead of ambiguous C-style cast 2020-12-18 20:46:54 +00:00
Marc Gilleron
a37b3a9c06 Don't show menu by default 2020-12-17 23:01:35 +00:00
Marc Gilleron
2f8687fd12 Added About window and list of donors 2020-12-17 21:45:44 +00:00
Rathma
8d42c84e1a Added 3x the number of tangents we actually needed 2020-12-14 03:25:28 -05:00
Marc Gilleron
e73cdaa707 Exclude editor stuff when building an export template 2020-12-04 22:01:41 +00:00
Marc Gilleron
117802c807 Unused variable 2020-11-21 19:51:41 +00:00
Marc Gilleron
57d09b5b7d Merge branch 'master' of https://github.com/Zylann/godot_voxel 2020-11-21 19:07:30 +00:00
Marc Gilleron
25445f3f6c Added debug function to dump a VoxelLodTerrain as nodes in a PackedScene 2020-11-21 18:31:28 +00:00
Marc Gilleron
d52f882ae1 VoxelMap is no longer bound, it had no use in the API 2020-11-21 18:31:11 +00:00
Marc Gilleron
e18b3a55fd Don't make the editor redraw every frame when gizmos are shown 2020-11-21 18:15:12 +00:00
Rathma
fdc14fcd87 Switched tangents to on by default & changed to a passed value to the
bake method rather than being a property of the voxel
2020-11-11 21:58:50 -05:00
Rathma
c9c85ec7cd Tangent baking now optional by toggling in editor under VoxelLibrary 2020-11-09 20:45:56 -05:00
Rathma
c068ad7455 Forgot to clear some tangents in the BakedData class. 2020-11-09 19:51:21 -05:00
Rathma
fd07f76586 Changed real_t => float for all tangent related variables(for real this time) 2020-11-09 01:07:59 -05:00
Rathma
08974daf56 Changed real_t => float for all tangent related variables 2020-11-09 01:03:07 -05:00
Rathma
3aeca4639f Switched to deterministic look-up table for cube uvs.
Changed code to snake case
Changed PoolArrays from real_t to float
Removed tangents from colored cube generator
2020-11-09 00:45:49 -05:00
Rathma
04aaeab615 Somehow missed I redefined a variable on a local build. 2020-11-08 21:43:42 -05:00
Rathma
a887fb12f5 Added a few comments, fixed an indexing and logic mistake.
Also the visual glitch I referred to in my last comment was pre-existing
or user-error it appears.
2020-11-08 21:31:16 -05:00
Rathma
fff1ee5f83 Added normal mapping to blocky & cube meshers by implementing tangent
calculations in the meshers. This caused a visual bug in the blocky
mesher that needs to be ironed out.
2020-11-08 09:43:18 -05:00
Marc
507b4c8922
Merge pull request #207 from tdaffin/fix_mono_glue
Fix bindings so that generate-mono-glue for C# bindings works
2020-11-08 00:04:49 +00:00
Tom Daffin
17a7674316 Fix bindings so that generate-mono-glue for C# bindings works 2020-11-07 08:02:27 -07:00
Marc
4991b24519
Added funding file 2020-11-06 23:18:22 +00:00
Marc Gilleron
4c1e149aef Optimized iteration over all blocks of a map (but likely, ECS approach may be better in the future) 2020-11-01 03:25:48 +00:00
Marc Gilleron
10d6e5bd8a Script-based generators and streams have their own class, should fix C# API 2020-10-31 22:11:25 +00:00
Marc Gilleron
18e7792bd5 Added access to block local transform in custom shaders for VoxelLodTerrain 2020-10-31 01:15:50 +00:00
Marc Gilleron
09b32c9dd8 Allow to change process mode from script on VoxelLodTerrain 2020-10-30 19:02:00 +00:00
Marc Gilleron
23123fc920 GCC warning 2020-10-29 22:59:09 +00:00
Marc Gilleron
a31dcdd3bd Don't clamp view distance for now, but should be done dynamically 2020-10-29 22:58:49 +00:00
Marc Gilleron
01776d2ee1 Don't load neighboring blocks across fixed boundaries 2020-10-29 22:58:19 +00:00
Marc Gilleron
90cc96d241 Update viewer position on transform changes instead of process 2020-10-29 00:55:04 +00:00