1238 Commits

Author SHA1 Message Date
Marc Gilleron
14cc77eb7c Make getter and setter types match to fix an issue with C# bindings 2021-05-07 22:39:06 +01:00
Marc Gilleron
ed1de5b5f4 Comment 2021-05-07 22:29:20 +01:00
Marc Gilleron
d5bd6c794b Merge branch 'master' into smooth_texturing 2021-05-07 21:48:11 +01:00
Marc Gilleron
d53e7dd530 Fixed several bugs related to VoxelTool::paste()
- One of the Rect3i constructors was wrong
- Rewrite clipping logic of VoxelBuffer::copy_from
- Fix VoxelDataMap::paste to provide correct offsets
- Fix meshing data copy to account for clipping adjustments
2021-05-07 18:38:02 +01:00
Marc Gilleron
493579cefb Initialize voxel graph with default nodes when creating it in the editor 2021-05-03 01:04:04 +01:00
Marc Gilleron
4e67a1530d Code to debug vertex sharing issues 2021-05-03 00:13:36 +01:00
Marc Gilleron
f5446e3d69 Fix broken vertex sharing when texture mode is enabled 2021-05-03 00:10:24 +01:00
Marc Gilleron
ef448263c0 Merge branch 'master' into smooth_texturing
# Conflicts:
#	storage/voxel_buffer.cpp
2021-05-02 23:11:57 +01:00
Marc Gilleron
934af79f3f Show graph compilation errors in the editor 2021-05-02 21:44:55 +01:00
Marc Gilleron
e1393ae26d Update module dev infos, add debugging tips, add natvis file 2021-05-02 19:24:16 +01:00
Marc Gilleron
73aed51ea2 Optimized 16-bit voxel box copies (used when meshing) 2021-05-02 19:23:07 +01:00
Marc Gilleron
80c2a0b702 Fix warning 2021-05-02 19:17:21 +01:00
Marc Gilleron
264b77ac21 Moved hardcoded output types outside the runtime.
For simplicity I chose to just give output nodes output ports,
like regular ones, and hide them in the editor.
It required to change a bit how output nodes are detected,
and backing output buffers are no longer required from callers.
This will allow to more easily implement custom outputs as well.
2021-05-02 01:22:44 +01:00
Marc Gilleron
ee1169cc45 Merge branch 'master' into smooth_texturing 2021-04-30 22:15:27 +01:00
Marc Gilleron
069dc9dee3 Attempt production flag for Linux builds 2021-04-30 22:13:06 +01:00
Marc Gilleron
31db9bd8a5 Some info about generating structures in a Minecraft-like generator 2021-04-30 22:12:36 +01:00
Marc Gilleron
90bebd67a4 Note about the "volume" terminology 2021-04-30 22:11:30 +01:00
Marc Gilleron
bbf9ccb82d Details about integers 2021-04-30 22:11:07 +01:00
Marc Gilleron
8053caed1a Emphasize generators save space 2021-04-30 22:10:36 +01:00
Marc Gilleron
9a49f7422b Some info about Transvoxel 2021-04-30 22:09:58 +01:00
Marc Gilleron
bab47a9fc1 Add link to SQLite format 2021-04-30 22:08:55 +01:00
Marc Gilleron
e2423a57ce Added list formatting 2021-04-30 22:08:35 +01:00
Marc Gilleron
cc9e614b4a Fix Remap node 2021-04-30 22:07:26 +01:00
Marc Gilleron
32f9006b75 Added initial support for texture weights in graph generators (not optimal) 2021-04-30 22:04:38 +01:00
Marc Gilleron
7e905913c9 Unused functions 2021-04-30 01:34:59 +01:00
Marc Gilleron
1f60b9c7e9 Fix used channels when the Transvoxel mesher is set to produce texture info 2021-04-30 01:34:40 +01:00
Marc Gilleron
1a9750194b Added same basic painting function to VoxelToolLodTerrain (untested) 2021-04-25 22:20:05 +01:00
Marc Gilleron
0e2d7dc596 Comments and format 2021-04-25 20:23:52 +01:00
Marc Gilleron
8b017f460f Basic VoxelTool function to paint textures on buffers 2021-04-25 20:23:14 +01:00
Marc Gilleron
42240fa018 Fix issues with is_uniform
- Items that cannot pack a bucket will use classic per-item comparison
- Fix wrong operator in bucket comparison
2021-04-25 16:21:15 +01:00
Marc Gilleron
91c469bde5 Unused variable 2021-04-24 21:30:40 +01:00
Marc Gilleron
bbb64a1740 Don't check bounds in release builds 2021-04-24 21:25:45 +01:00
Marc Gilleron
b33a432b3d Optimized is_uniform for the case a buffer has not been compressed yet 2021-04-24 21:23:40 +01:00
Marc Gilleron
20547241cb Further optimizations and move to new file
- Moved Transvoxel implementation to its own file
- Optimized case where a whole block uses the same textures indices
2021-04-24 21:22:05 +01:00
Marc Gilleron
b75f746ae7 Optimized Transvoxel
- Removed some conditionals using templates
- The hot path skipping empty cells is much faster
- Access to voxels is done more by index instead of position lookup
2021-04-23 22:12:39 +01:00
Marc Gilleron
e20bcd3c89 Merge branch 'master' into smooth_texturing 2021-04-23 00:00:31 +01:00
Marc Gilleron
82fc44d41e Restructured transvoxel logic to prepare templatization 2021-04-21 19:18:08 +01:00
Marc Gilleron
0cef70a3c0 Fix backward iteration infinite loop when there is only one LOD 2021-04-21 18:29:23 +01:00
Marc Gilleron
dc2f853b50 First version of texturing for Transvoxel. Needs optimization and tooling. 2021-04-21 18:26:40 +01:00
Marc Gilleron
a36604ebf2 Fix more GCC warnings (3) 2021-04-18 02:13:26 +01:00
Marc Gilleron
a00e9928d8 Fix more GCC warnings 2021-04-18 01:59:51 +01:00
Marc Gilleron
7d93a4646d Fix more GCC warnings 2021-04-18 01:48:53 +01:00
Marc Gilleron
b846194bea Fix some GCC warnings 2021-04-18 01:29:26 +01:00
Marc Gilleron
039ed2a779 Add block size change to changelog 2021-04-18 01:01:03 +01:00
Marc Gilleron
21ac557a20 Merge branch 'master' into block_size_decoupling 2021-04-18 00:37:11 +01:00
Marc Gilleron
1406d3d07d Tweaks 2021-04-18 00:36:32 +01:00
Marc Gilleron
2d247af250 Increase resolution of preview nodes 2021-04-18 00:35:04 +01:00
Marc Gilleron
10683ccd15 Comments 2021-04-15 20:35:31 +01:00
Marc Gilleron
ab139ba44c Match filename 2021-04-15 20:35:10 +01:00
Marc Gilleron
2467471de2 Remove old code 2021-04-15 20:30:00 +01:00