Commit Graph

612 Commits (0e16193f9205034cd205fa003ade993514ae5d83)

Author SHA1 Message Date
Marc Gilleron 0e16193f92 Removed old threading code 2020-09-06 19:35:35 +01:00
Marc Gilleron a4611031e1 Fix viewer not being unpaired when destroyed 2020-09-06 19:29:56 +01:00
Marc Gilleron 81e1872f8b Implemented viewers for VoxelTerrain 2020-09-06 19:01:12 +01:00
Marc Gilleron b8c97ebc55 Switch VoxelLodTerrain to VoxelServer 2020-08-31 21:51:30 +01:00
Marc Gilleron 7a37770e84 Merge branch 'master' into threading_refactor
# Conflicts:
#	edition/voxel_tool_terrain.cpp
#	terrain/voxel_lod_terrain.cpp
2020-08-30 21:56:44 +01:00
Marc Gilleron 4632d5353d In the editor, creating noise generators comes with pre-set noise resources.
Otherwise, loading terrain will cause an error spam about noise being null.
2020-08-30 21:40:03 +01:00
Marc Gilleron 758da9ca2f Fix VoxelLodTerrain not loading blocks properly in editor
It assumed they were loading but the list of loading blocks is cleared
when the stream is set... which didn't reset the MAP of loading blocks.
2020-08-30 21:38:38 +01:00
Marc Gilleron 08e5770bd0 Fix crash when using VoxelLodTerrain without a stream 2020-08-30 21:36:43 +01:00
Marc Gilleron a43c11e253 Profile block channel allocation 2020-08-30 18:51:45 +01:00
Marc Gilleron b26fd944a8 Added `VoxelTool.copy` declaration, gonna need this in the future 2020-08-30 18:51:20 +01:00
Marc Gilleron 17ff16aa48 Neighbors are optional when sending meshing requests 2020-08-30 04:00:45 +01:00
Marc Gilleron d81ffb95f4 Detect usage of Tracy, add some profiler scopes 2020-08-30 04:00:01 +01:00
Marc Gilleron 107f29c5d3 Removed old profiler 2020-08-29 23:20:51 +01:00
Marc Gilleron 88e6d83652 Comments and formatting 2020-08-29 22:58:33 +01:00
Marc Gilleron aa2b848102 Workaround crash on exit because the GDScript module is freed before voxel
See https://github.com/Zylann/godot_voxel/issues/189
2020-08-29 22:55:52 +01:00
Marc Gilleron d4d2b6fd9e No longer copy voxels before scheduling threaded tasks. VoxelBuffers now have a lock. 2020-08-29 22:09:54 +01:00
Marc Gilleron 92b10d9175 Fix deadlock on exit when more than one thread is used 2020-08-28 18:31:21 +01:00
Marc Gilleron f10209440f Fix performance hit due to priority being recalculated all the time 2020-08-28 18:30:54 +01:00
Marc Gilleron 28b5ae6580 Unused code 2020-08-28 18:29:42 +01:00
Marc Gilleron 2fda53f57f Fix warning about too many arguments 2020-08-28 18:29:33 +01:00
Marc Gilleron 0d1bd433d9 Multiple meshing threads seems to work 2020-08-27 23:40:36 +01:00
Marc Gilleron 07ca2c74c1 Fixed tasks being picked twice and causing double-deletes 2020-08-27 23:32:34 +01:00
Marc Gilleron bcfc8ce04e Add some stats 2020-08-26 21:17:57 +01:00
Marc Gilleron d8a8936f34 Remove usage of VoxelDataLoader from VoxelTerrain 2020-08-26 19:49:30 +01:00
Marc Gilleron 57d306a033 Fix voxel library not always up to date 2020-08-26 19:49:04 +01:00
Marc Gilleron 56c2a0856a Initial integration on VoxelTerrain with static camera, fixed a bunch of things 2020-08-25 23:00:38 +01:00
Marc Gilleron a1710807cb Merge branch 'master' of https://github.com/Zylann/godot_voxel 2020-08-24 13:54:45 +01:00
Marc Gilleron 1263821592 Added basic icons for terrain nodes, but needs engine fix to show properly
See https://github.com/godotengine/godot/issues/41339
2020-08-24 13:54:30 +01:00
Marc Gilleron e30a3f51d6 Expose VoxelTool.is_area_editable() 2020-08-24 13:51:08 +01:00
Marc Gilleron d848da3a6f Formatting 2020-08-24 13:49:44 +01:00
Marc Gilleron 1fe50b01d6 Added VoxelServer. Compiles, but isn't used anywhere yet 2020-08-24 01:49:23 +01:00
Marc 4ef85c60fc
Merge pull request #185 from Vivraan/patch-1
Update region_format.md
2020-08-21 17:54:38 +01:00
Marc 40dfaf4c0e
Merge pull request #184 from Vivraan/patch-2
Update README.md
2020-08-21 17:53:37 +01:00
Shivam Mukherjee 07717d2965
Update README.md 2020-08-21 10:11:55 +05:30
Shivam Mukherjee 3521d185a9
Update region_format.md 2020-08-21 10:10:12 +05:30
Marc Gilleron 581dda484b Added changelog 2020-08-17 23:20:46 +01:00
Marc Gilleron c5f0af3b0e Update readme a little 2020-08-17 22:31:00 +01:00
Marc Gilleron 07e91d4892 Add some checks 2020-08-17 22:27:52 +01:00
Marc Gilleron 464bb734ba Try to keep the terrain UI visible when editing generator and graph settings. Hacky stuff. 2020-08-15 21:22:02 +01:00
Marc Gilleron 23ce65d789 Show terrain in editor, with option to turn it off. A scripted stream will turn it off by default. 2020-08-14 20:33:09 +01:00
Marc Gilleron 27180e11e6 Fix cube geometry wrongly considered empty 2020-08-13 20:43:34 +01:00
Marc Gilleron 6ed4ef32b7 Separated baked data from config data in VoxelLibrary and introduced thread-safety with blocky mesher 2020-08-11 23:52:42 +01:00
Marc Gilleron 845fa465b8 Put model information within a struct 2020-08-11 20:29:27 +01:00
Marc Gilleron c81f3d8f81 Skip whole blocks for random tick if they are made of a non-tickable type 2020-08-11 20:11:49 +01:00
Marc Gilleron 66ce79de86 Updated API classes 2020-08-10 21:15:37 +01:00
Marc Gilleron 2a5d1f59c2 Documented summary of a few classes 2020-08-10 20:57:39 +01:00
Marc Gilleron 7316e415dc Implemented block events for VoxelTerrain 2020-08-10 20:57:03 +01:00
Marc Gilleron 8fe769881f Exposed compression getter on VoxelBuffer 2020-08-10 19:48:53 +01:00
Marc Gilleron 759bdb9de6 Merge branch 'master' of https://github.com/Zylann/godot_voxel 2020-08-10 19:03:17 +01:00
Marc Gilleron 1a551fc77d Added support for per-voxel and per-block metadata 2020-08-10 19:03:01 +01:00