Commit Graph

24 Commits

Author SHA1 Message Date
Marc Gilleron
6d872160ab Added get_size() as Vector3 to VoxelBuffer 2019-04-27 02:06:09 +01:00
Marc Gilleron
8c6defee09 Fixed bad VoxelBuffer indexing for non-cubic volumes 2019-04-26 03:35:00 +01:00
Marc Gilleron
b85e696b7b Fixed bad position validation in VoxelBuffer 2019-04-26 02:52:32 +01:00
Marc Gilleron
bed8ac8cb9 Drop gradient channels, fix misconception about what gradient is 2019-04-22 21:17:19 +01:00
Marc Gilleron
9108bfe0f6 Fix VoxelBuffer channel initialized with wrong value when allocated 2019-04-22 20:15:19 +01:00
Marc Gilleron
869b921ce8 Add VoxelBuffer::fill_iso() 2019-04-22 20:14:25 +01:00
Marc Gilleron
91a5c7ffa8 A bit of reorganization and tweaks:
- Moved HermiteValue in its own file
- VoxelBuffer channels are now predefined
- Create DualGridGenerator for easier passing of data
- Chunk size is no longer hardcoded
- Respect padding when polygonizing voxels
- BUG: due to the above, the way we build the octree is now breaking the result as mentionned in the TODO
2019-04-21 19:31:35 +01:00
Marc Gilleron
d53e43f115 Added function to compute gradients from isolevels 2019-04-21 02:54:35 +01:00
Marc Gilleron
1181cfa59f Dual marching cubes WIP (only octree and dual grid extraction, untested) 2019-04-20 17:32:10 +01:00
Marc Gilleron
b052f7fc2d Added try_set_voxel and fix fill_area in cases where the box is out of range 2018-10-04 23:13:03 +01:00
Marc Gilleron
8ffa7110c8 Optimize mesher: access channel directly and remove some push_backs 2018-09-30 01:55:09 +01:00
Marc Gilleron
a0026dbbeb Fix includes 2018-09-19 20:25:04 +01:00
Marc Gilleron
cb6de49b96 Got rid of SurfaceTool in the cubic mesher, moved cube tables in their own file, tweaked their winding 2017-08-19 21:10:31 +02:00
Marc Gilleron
51596fef95 Clang-format 2017-08-13 01:19:39 +02:00
Marc Gilleron
a5a1ded2f3 Added smooth voxels (untextured at the moment) 2017-04-06 23:44:11 +02:00
Marc Gilleron
fa5e419549 Upgraded to Godot 3.0 2017-03-25 01:23:36 +01:00
Marc Gilleron
06a399f932 Fixed set_voxel() and block force_update_blocks() 2017-01-05 02:39:40 +01:00
Marc Gilleron
c38a822664 Code style 2017-01-02 02:19:02 +01:00
Marc Gilleron
8d1c8cc339 Spaces to tabs 2017-01-01 04:40:16 +01:00
Marc Gilleron
e990286b54 Removed internal offset from VoxelBuffer and improved Vector3i 2016-05-08 02:12:47 +02:00
Marc Gilleron
be630c05be Fixed VoxelBuffer binding mistakes and added fill and copy functions 2016-05-05 21:08:52 +02:00
Marc Gilleron
68cf221d1a VoxelBuffer storage is now flat to reduce memory usage and simplify code 2016-05-03 00:09:07 +02:00
Marc Gilleron
d1d685124f Added VoxelLibrary, texture coordinates and random stuff 2016-05-01 22:20:27 +02:00
Marc Gilleron
1acabf1307 Added project: first working prototype, but lots of TODOs 2016-05-01 15:00:02 +02:00