Commit Graph

83 Commits (4b6ae21ce98397b213d1c1450062f78257e289b2)

Author SHA1 Message Date
Marc Gilleron 9ccf16419d Merge branch 'master' into threading_refactor
# Conflicts:
#	streams/voxel_block_serializer.cpp
#	voxel_buffer.h
2020-09-08 21:40:59 +01:00
Marc Gilleron e8d0800511 Unused code 2020-09-08 00:49:37 +01:00
Marc Gilleron 7405692f68 Unused code 2020-09-07 23:53:38 +01:00
Marc Gilleron 0922b92ace Fix some GCC warnings and Clang error 2020-09-07 23:26:04 +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 56c2a0856a Initial integration on VoxelTerrain with static camera, fixed a bunch of things 2020-08-25 23:00:38 +01:00
Marc Gilleron 1fe50b01d6 Added VoxelServer. Compiles, but isn't used anywhere yet 2020-08-24 01:49:23 +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 845fa465b8 Put model information within a struct 2020-08-11 20:29:27 +01:00
Marc Gilleron 1a551fc77d Added support for per-voxel and per-block metadata 2020-08-10 19:03:01 +01:00
Marc Gilleron ac3e303818 Report script errors a bit better, I hope 2020-08-02 18:57:08 +01:00
Marc Gilleron b95f47b018 Fix missing return value 2020-07-28 20:32:03 +01:00
Marc Gilleron d96db0d329 Fix node config warning with file streams by using channels from the fallback stream 2020-07-26 18:42:17 +01:00
Marc Gilleron f9e2d9cc12 Stop using NULL 2020-07-25 23:19:08 +01:00
Marc Gilleron 4991b682d9 Exposed block serializer 2020-07-25 21:56:23 +01:00
Marc Gilleron 071c5ee5c0 Fix channel depth not being applied to VoxelMap::get_buffer_copy() 2020-07-11 18:05:26 +01:00
Marc Gilleron 1a08cd31d6 Use a macro to print debug stuff only in verbose mode 2020-07-08 20:48:52 +01:00
Marc Gilleron 60d32ec006 Make stream and generator script methods optional, fixes errors in editor 2020-05-09 00:46:17 +01:00
Cory Petkovsek 63514efd76 Update pr 2020-02-16 23:07:10 +08:00
Cory Petkovsek 40e3fdc878 Adjust PR 2020-02-15 04:09:31 +08:00
Cory Petkovsek 24841e9a18 fix gcc warnings 2020-02-13 21:49:11 +08:00
Marc Gilleron b1dc8d3762 More fixes to file streams:
- Assign channel formats before saving for the first time
- Always try to load meta file if not loaded, rather than saving it over
2020-02-09 18:41:39 +00:00
Marc Gilleron 6851818733 Fix non-initialized default metadata in VoxelStreamBlockFiles 2020-02-09 18:29:47 +00:00
Marc Gilleron a8c5fed29d File streams fixes:
- Uniform compression now supports more than 8-bit depth (compat implementation)
- Fix buffers not being set to correct depth before loading from file
- Check if we save correct buffer depths in region files
- Fix inverted check when reading region meta file
- Fix version check not working in JSON meta file because it's float
2020-02-09 17:07:53 +00:00
Marc Gilleron aec06b214b Merge branch 'master' into depth 2020-01-26 23:34:08 +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 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 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 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 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 6a417bf657 Abstracted some of the heightmap SDF algorithm, WIP 2020-01-21 19:51:05 +00:00
Marc Gilleron 3263001c5f Optimized VoxelStreamNoise with finer height range and noise shaping 2020-01-19 00:43:56 +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 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
Marc Gilleron 2d1a53048c Merge branch 'master' into depth
# Conflicts:
#	streams/voxel_block_serializer.cpp
2020-01-10 01:43:38 +00:00
Marc Gilleron ad163e6a73 Temporary fix: persistent streams not working due to missing use of VoxelMemoryPool 2020-01-07 21:24:14 +00:00
Marc Gilleron 9dc09618be ZProfiler is now usable from anywhere including threads 2020-01-07 20:32:36 +00:00
Marc Gilleron 5e066fa7cd Fix compilation 2020-01-06 00:46:58 +00:00
Marc Gilleron 04d15fe843 Merge branch 'master' into depth
# Conflicts:
#	meshers/blocky/voxel_mesher_blocky.cpp
#	meshers/transvoxel/voxel_mesher_transvoxel.cpp
2020-01-05 23:40:44 +00:00
Marc Gilleron 3ead96f06e Added option to tweak how VoxelStreamImage samples the heightmap 2020-01-05 22:42:02 +00:00