Commit Graph

431 Commits (b2f7d23f7fabf6d4313b8937af7334ded17f62f6)

Author SHA1 Message Date
Marc Gilleron b2f7d23f7f Clang-format 2020-02-06 18:52:18 +00:00
Marc Gilleron 8eae71e1cb Added face culling masks to customize when blocky sides are getting culled 2020-02-03 16:03:44 +01:00
Marc Gilleron 6c6bd52a68 Can add custom collision AABBs to blocky voxels, for use with VoxelBoxMover 2020-02-03 10:29:25 +01:00
Marc Gilleron 9a296952b7 A blocky voxel can be defined with a custom mesh. Needs a few improvements 2020-01-31 17:53:34 +01:00
Marc Gilleron 88d170adff Fix wrong method bind 2020-01-30 14:58:19 +01:00
Marc Gilleron 3ec2275ffb Moved Voxel and VoxelLibrary under the blocky mesher directory, since that's what they are actually used for 2020-01-27 00:04:13 +00:00
Marc Gilleron aec06b214b Merge branch 'master' into depth 2020-01-26 23:34:08 +00:00
Marc Gilleron 54e5e31245 Expose blur option in VoxelGeneratorImage 2020-01-26 23:06:21 +00:00
Marc Gilleron b937020d16 Rename files to match class names 2020-01-26 22:43:47 +00:00
Marc Gilleron 8879d9b2e7 Moved all generators under their own base class and folder 2020-01-26 22:34:26 +00: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
Marc Gilleron 20dc0008f4 Removed legacy marching cubes mesher 2020-01-26 20:18:21 +00:00
Marc Gilleron 4626b4d7a3 Added iso_scale parameter to heightmap generators, which eliminates terracing. As a result, sdf_mode is now useless and was removed. 2020-01-26 20:08:25 +00:00
Marc Gilleron 21f3f36b86 Merge branch 'master' into depth
# Conflicts:
#	voxel_buffer.cpp
2020-01-26 02:01:23 +00:00
Marc Gilleron 7161942ee1 Fix memory leak in VoxelBuffer::fill() 2020-01-26 01:59:53 +00:00
Marc Gilleron f530daaf03 Check data sizes properly 2020-01-26 01:33:45 +00:00
Marc Gilleron 4b52d8fd18 get_channel_raw returns an ArraySlice instead of a pointer 2020-01-25 23:26:55 +00:00
Marc Gilleron 8224346846 Added depth info to VoxelStreamBlockFiles. No versionning for this one, it's not a recommended stream anyways. 2020-01-25 22:54:49 +00:00
Marc Gilleron 2d5775f233 Removed 1-bit and 24-bit depths, will add them back if they are really needed 2020-01-25 20:45:47 +00:00
Marc Gilleron 7723988b15 Merge branch 'master' into depth
# Conflicts:
#	meshers/transvoxel/voxel_mesher_transvoxel.cpp
2020-01-25 19:46:53 +00:00
Marc Gilleron b1b7d4ba03 Merge branch 'heightmap_generators' 2020-01-24 00:00:47 +00:00
Marc Gilleron 4f9b05dfc0 Bake LOD into Transvoxel instead of scaling afterwards 2020-01-23 23:33:48 +00:00
Marc Gilleron a751b0ca63 Fix edited block producing a hole when going away from it 2020-01-23 23:20:23 +00:00
Marc Gilleron 73491cd1ff Fix LOD getting stuck if you teleport far away
Now the octree is always allowed to merge nodes even if the parent block isn't available.
Also removed unused userdata from LodOctree::Node,
merged callbacks into one struct,
removed some old debug code
2020-01-23 00:37:13 +00:00
Marc Gilleron df719187b7 Added optional curve to VoxelStreamNoise2D 2020-01-22 00:32:58 +00:00
Marc Gilleron 01b3201689 Rename height_base to be height_start, for consistency 2020-01-21 23:57:22 +00:00
Marc Gilleron df3a649e18 Added VoxelStreamNoise2D 2020-01-21 23:52:25 +00:00
Marc Gilleron b90e6b8207 Abstract most of VoxelStreamImage into VoxelStreamHeightmap 2020-01-21 22:41:55 +00:00
Marc Gilleron 2c4c4f3288 Fix stupid bugs 2020-01-21 21:17:15 +00:00
Marc Gilleron 83e8c22539 Comments 2020-01-21 20:00:29 +00:00
Marc Gilleron 091cde0794 Re-implemented Rect3i::clip_range(), size was wrong (still unused but found it while drafting something) 2020-01-21 20:00:17 +00:00
Marc Gilleron 6a417bf657 Abstracted some of the heightmap SDF algorithm, WIP 2020-01-21 19:51:05 +00:00
Marc Gilleron e76e4d2b49 Fix bad discarding code when block management threads are told to exit
In short, std::remove_if does NOT remove anything
2020-01-19 18:13:00 +00:00
Marc Gilleron 2fe83ce154 Fix wrong return values 2020-01-19 01:22:48 +00:00
Marc Gilleron 3263001c5f Optimized VoxelStreamNoise with finer height range and noise shaping 2020-01-19 00:43:56 +00:00
Marc Gilleron 45a34676b3 VoxelLibrary can contain up to 65536 voxel types 2020-01-18 20:43:34 +00:00
Marc Gilleron 1e1385c86c VoxelMesherBlocky supports 16-bit voxels 2020-01-18 19:51:21 +00:00
Marc Gilleron 09acd82c72 Merge branch 'master' into depth 2020-01-18 19:29:57 +00:00
Marc Gilleron c493aec343 Use StringNames when applicable 2020-01-17 20:43:28 +00:00
Marc Gilleron 0b4860b40d Use MAX_LOD global constant 2020-01-15 21:40:35 +00:00
Marc Gilleron 87afb8f96c Fix split scale not being clamped properly. Also reorganized debug functions a bit 2020-01-15 21:04:23 +00:00
Marc Gilleron 5f83b36deb Merge branch 'master' of https://github.com/Zylann/godot_voxel 2020-01-13 23:29:56 +00:00
Marc Gilleron a4707f8943 Use integer math to interpolate cell corners, instead of floats, and untangle padding from places it didn't need to be 2020-01-13 00:43:07 +00:00
Marc 7bdd920dd4
Merge pull request #101 from blockspacer/gitignore_bc
gitignore: .bc (html5 builds)
2020-01-12 19:20:31 +01:00
Den 145c5b4d28 gitignore: .bc (html5 builds) 2020-01-12 11:31:22 +03:00
Marc 56b5113f9b
Merge pull request #95 from tinmanjuggernaut/fix_blocky_noise
Enables 3D Noise on Blocky VoxelTerrain
2020-01-10 20:44:30 +01:00
Marc Gilleron 4a359a3dbd Add depth format to region files stream (untested) 2020-01-10 18:56:57 +00:00
Cory Petkovsek 1b19bbee8e Enable 3D noise on VoxelTerrain. Defaults 3D noise to blocky - must specify for smooth terrain. 2020-01-10 22:46:59 +08:00
Cory Petkovsek 9129016567 Fix invisible VoxelTerrain 2020-01-10 19:57:49 +08:00