Commit Graph

41 Commits (0c830ded4006d1c6c292ec737dda343831269ab4)

Author SHA1 Message Date
Marc Gilleron 758e3bd227 Allow to use block size 32 for mesh blocks while using 16 for data blocks
Still hardcoded but a config should be added
2021-04-03 20:39:37 +01:00
Marc Gilleron 30e33849fe Use SDF union and subtract in VoxelTool 2021-03-17 18:11:29 +00:00
Marc Gilleron 09c815e253 Implemented `copy` and `paste` for VoxelToolTerrain (untested) 2021-02-21 18:23:56 +00:00
Marc Gilleron b51897b8df Added voxel raycast to VoxelToolLodTerrain
- Made more precise with an option to use binary search (unoptimized)
- Distance along ray is now available in blocky terrains as well
2021-02-21 03:08:47 +00:00
Marc Gilleron d1207bdd96 Reorganized some utility files 2021-02-17 20:34:35 +00:00
Marc Gilleron 22471aafd0 Merge branch 'master' into instancing 2021-02-02 00:00:01 +00:00
Marc Gilleron 7682e8fbcc Comments 2021-01-30 01:39:28 +00:00
Marc Gilleron 99723cc006 Merge branch 'master' into instancing 2021-01-25 22:17:46 +00:00
Marc Gilleron 414f6cc305 Fix sdf_scale not defaulting according to the real default channel depth 2021-01-24 14:48:25 +00:00
Marc Gilleron 55a38957b5 Added SDF scale to VoxelTool. Default value should work best with default bit depth. 2021-01-24 13:54:38 +00:00
Marc Gilleron 629b79fc3d Fix subtract operation 2021-01-23 22:59:44 +00:00
Marc Gilleron 0816d1fc09 Merge branch 'master' into instancing 2021-01-23 01:33:11 +00:00
Marc Gilleron a3bad1af64 Register `VoxelToolBuffer` because otherwise it gets initialized lazily, causing crashes in threads 2021-01-17 22:18:41 +00:00
Marc Gilleron 3e510d2e93 `get_voxel` may be `const` 2020-12-30 20:09:31 +00:00
Marc Gilleron 791bdafff1 Meshers are now resources assigned on terrain nodes 2020-12-18 21:01:50 +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 85bb3d7b28 VoxelTerrain can be transformed 2020-10-25 00:55:57 +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 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 b26fd944a8 Added `VoxelTool.copy` declaration, gonna need this in the future 2020-08-30 18:51:20 +01:00
Marc Gilleron d81ffb95f4 Detect usage of Tracy, add some profiler scopes 2020-08-30 04:00:01 +01:00
Marc Gilleron 88e6d83652 Comments and formatting 2020-08-29 22:58:33 +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 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 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 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
Marc Gilleron 1c6404efa5 Allow to use collision mask when raycasting blocky voxels 2020-08-06 19:58:36 +01:00
Marc Gilleron 47a6426a12 Fix 64-bit usage in VoxelTool 2020-08-06 19:54:47 +01:00
Marc 7ed9d5525b
Merge pull request #172 from menip/DoBox
Implement VoxelTool::do_box(...)
2020-08-06 18:46:39 +01:00
menip aae5ad0320 Implement VoxelTool::do_box(...) 2020-08-05 17:21:33 -07:00
Marc Gilleron a14866c386 Implemented VoxelTool::paste for VoxelBuffer 2020-08-04 23:54:40 +01:00
Marc Gilleron 0cdf5ea550 Added random tick API for blocky voxels 2020-07-28 20:32:33 +01:00
Marc ad3a55ab81
Merge pull request #152 from nic96/master
Fixed cannot place blocks on transparent blocks
2020-07-10 21:55:39 +01:00
Marc Gilleron 1a08cd31d6 Use a macro to print debug stuff only in verbose mode 2020-07-08 20:48:52 +01:00
nic96 dede34acf1 Raycast shouldn't hit geometry type none 2020-07-05 19:15:08 -06:00
nic96 fe3c433f76 Transparent blocks should get hit by raycast if they have a collision aabb 2020-07-05 18:30:50 -06:00
Marc Gilleron 87a9766442 voxel_raycast is now template 2020-01-26 20:43:40 +00:00
Marc Gilleron 0ac1b7e6dc Moved edition-related classes to a sub-folder 2020-01-26 20:29:44 +00:00