701 Commits

Author SHA1 Message Date
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
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
Marc Gilleron
40d299413f Don't compute matrices if they aren't used when transforming blocks 2020-10-29 00:54:27 +00:00
Marc Gilleron
b5470fab2b Fix big CPU due to blocks never getting unloaded
The unloading logic is supposed to run for all LOD levels except the biggest one,
but instead was running for all LODs except the smallest.
2020-10-29 00:53:04 +00:00
Marc Gilleron
bf8a4229a1 Added debug function to get how many blocks are currently in memory 2020-10-29 00:49:12 +00:00
Marc Gilleron
1200b012bb Some notes about tracy 2020-10-29 00:47:25 +00:00
Marc Gilleron
510d25e604 Expose find_node_by_name 2020-10-29 00:42:55 +00:00
Marc Gilleron
44a1af2043 Don't crash if graph resources are null 2020-10-26 19:58:54 +00:00
Marc Gilleron
56b4b55b53 Fix missing return 2020-10-25 23:07:53 +00:00
Marc Gilleron
a20a7bda03 Update changelog 2020-10-25 21:21:47 +00:00
Marc Gilleron
f3108de4f9 Removed old viewer API from VoxelLodTerrain, support 1 VoxelViewer at a time for now 2020-10-25 21:21:37 +00:00
Marc Gilleron
61f17ce96d Formatting 2020-10-25 20:38:23 +00:00
Marc Gilleron
b672013f00 Fix an occurrence of Variant uint64_t ambiguity for Mac builds 2020-10-25 20:27:09 +00:00
Marc Gilleron
0cb8188eb7 Added ability to name graph nodes 2020-10-25 20:26:25 +00:00
Marc Gilleron
bb549198f6 Replaced Voxel.transparent with a transparency_index for more control over face culling 2020-10-25 16:59:19 +00:00
Marc Gilleron
c6572142eb Typo 2020-10-25 16:56:04 +00:00
Marc Gilleron
85bb3d7b28 VoxelTerrain can be transformed 2020-10-25 00:55:57 +01:00
Marc Gilleron
850874893c Fix debug renderer not putting back pooled cubes back to visible when used again 2020-10-25 00:55:01 +01:00
Marc Gilleron
e05a53b370 Fix GCC error 2020-10-25 00:54:34 +01:00
Marc Gilleron
361f7d73ed VoxelLodTerrain handles transform changes (VoxelTool still has to account for that) 2020-10-24 03:22:02 +01:00
Marc Gilleron
d158a92f57 Show bounds and octrees of VoxelLodTerrain with debug drawing 2020-10-24 00:08:14 +01:00
Marc Gilleron
e70f87e4a7 Fixed bounds being snapped too large 2020-10-24 00:06:09 +01:00
Marc Gilleron
4e65c8d937 Added bounds support to VoxelLodTerrain (rounded to octree size) 2020-10-22 22:43:31 +01:00
Marc Gilleron
2dfcc76600 Better fix for VoxelLodTerrain task drop 2020-10-20 23:58:55 +01:00
Marc Gilleron
54eb228444 Fix crash when increasing LOD count in editor while blocks are still loading 2020-10-19 23:22:23 +01:00
Marc Gilleron
30c6d7e436 Disabled task cancellation to make VoxelLodTerrain work, will need better option later.
VoxelLodTerrain's block requests were being cancelled constantly.

This commit also contains precision improvement for cancelling
block requests based on distance, which originally was an attempt to
"properly" fix the problem with VoxelLodTerrain, but it didnt fully
worked for that node.
I left it anyways, maybe it will change in the future once a
proper fix is figured out.
2020-10-19 23:21:14 +01:00
Marc Gilleron
25fded048e Fix some typos 2020-09-28 18:37:49 +01:00
Marc Gilleron
2597e4832a Bits of API doc 2020-09-28 18:37:34 +01:00
Marc Gilleron
04df05854a Fix dead link in docs 2020-09-28 18:36:54 +01:00
Marc Gilleron
5dd8475091 Fix GCC warning (4) 2020-09-20 20:28:45 +01:00
Marc Gilleron
e31147b434 Fix one more GCC warning 2020-09-20 17:05:20 +01:00
Marc Gilleron
a462803929 Fix more GCC warnings 2020-09-20 16:33:00 +01:00
Marc Gilleron
39d56b2c17 Fix GCC warnings 2020-09-20 16:13:53 +01:00
Marc Gilleron
37f5c4bd43 Document about region v3 2020-09-19 22:31:54 +01:00
Marc Gilleron
b10b647133 Separate region file logic so it can be used independently and add features to it.
This increases its version number to 3. Older files using version 2
are migrated to version 3 when a write operation is performed.
2020-09-19 21:50:23 +01:00
Marc Gilleron
27d67ea116 Fix missing header guard 2020-09-19 21:48:03 +01:00
Marc Gilleron
8d6a459ad7 Fix a missing size_t to variant conversion 2020-09-19 21:47:52 +01:00
Marc Gilleron
6c80da0425 Moved VoxelBuffer and VoxelMemoryPool under storage/ directory 2020-09-14 19:33:02 +01:00
Marc Gilleron
b16d8ff00d Update XML API docs, add a few more descriptions and fix some functions 2020-09-14 01:58:35 +01:00
Marc Gilleron
64ee592a0e Allow to specify bounds in VoxelTerrain 2020-09-13 22:36:28 +01:00
Marc Gilleron
168cd90295 Unused variable 2020-09-13 02:59:12 +01:00
Marc Gilleron
644ec60003 Fix missing return 2020-09-13 02:47:26 +01:00