Commit Graph

106 Commits

Author SHA1 Message Date
Marc Gilleron
35ff5fd546 Rename VoxelMesherSmooth => VoxelMesherTransvoxel 2019-04-21 14:47:50 +01:00
Marc Gilleron
d53e43f115 Added function to compute gradients from isolevels 2019-04-21 02:54:35 +01:00
Marc Gilleron
9bb81f9bb7 Fix dependency in utility.h, move MeshBuilder to its own file, re-use vertex arrays 2019-04-21 01:14:28 +01:00
Marc Gilleron
35e03f7e77 Fix a few mistakes in dual grid derivation 2019-04-20 23:34:22 +01:00
Marc Gilleron
d52fecaa79 Fix offset between contour and source shape 2019-04-20 22:38:09 +01:00
Marc Gilleron
d74201c93f Added marching cubes polygonization, almost works but sometimes holes appear 2019-04-20 21:21:45 +01:00
Marc Gilleron
a12435266f Fix dual grid debug mesh not making cubes properly; check for emptyness 2019-04-20 18:08:00 +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
6fc70a66c1 Remove reference to dvector.h 2019-04-13 18:47:35 +01:00
Marc Gilleron
ff96ba5528 Make VoxelBlock defined when including VoxelMap 2019-01-01 16:44:19 +00:00
Marc Gilleron
9e2e59c198 Fix misplaced semicolon 2019-01-01 16:43:14 +00:00
Marc Gilleron
b264b3d319 Add an italian pointy hand where there should have been an italian pointy hand 2018-12-14 00:22:03 +00:00
Marc Gilleron
6e06d200bf Stop using ADD_PROPERTYNZ 2018-12-14 00:21:28 +00:00
Marc Gilleron
d0ab02a397 Fix UVs, change tables to use OpenGL convention... 2018-10-05 23:51:55 +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
20d8cf876b Fix voxel tiles not editable in editor 2018-10-04 23:12:20 +01:00
Marc Gilleron
47a3fe97d3 Added function to make an area dirty 2018-10-01 20:48:47 +01:00
Marc Gilleron
b03df8c079 Added box mover utility for quick move and slide physics 2018-10-01 00:11:33 +01:00
Marc Gilleron
f05762b683 Fix potential issue, the block state being checked was always the same 2018-09-30 23:32:01 +01:00
Marc Gilleron
da0a1a058c Moved side, edge and corner enums to cube tables, and renamed CubeTables to Cube 2018-09-30 19:38:02 +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
ef92e5f144 Darken default baked AO a little 2018-09-30 01:52:40 +01:00
Marc Gilleron
9e6170e705 Use raw copy to speed up the mesher a little 2018-09-29 22:41:52 +01:00
Marc Gilleron
65aed7de5b Merge branch 'master' of https://github.com/Zylann/godot_voxel 2018-09-29 21:48:10 +01:00
Marc Gilleron
a875b85498 Don't send empty blocks to the updater, so we avoid a copy and unnecessary face extraction 2018-09-29 21:47:53 +01:00
Marc Gilleron
606e131c25 More stats 2018-09-29 18:59:19 +01:00
Marc Gilleron
9303c652d2 Sigh, forgot again a file to compile 2018-09-29 18:58:58 +01:00
Marc Gilleron
bca6a72edd Sort thread updates only when necessary 2018-09-29 17:52:38 +01:00
Marc Gilleron
e79dd98d69 Fix compilation 2018-09-29 17:51:09 +01:00
Marc Gilleron
1e24dd455b Move transvoxel stuff to a subfolder 2018-09-29 17:13:14 +01:00
Marc Gilleron
ad37d7aff4 Count updates per block for debug purpose 2018-09-29 17:08:05 +01:00
Marc Gilleron
f9034eba08 That should have been a Vector3i 2018-09-29 17:07:35 +01:00
Marc Gilleron
b117a2a336 Don't declare a WeakRef as non-reference, causes issues with ObjectDB 2018-09-29 17:07:15 +01:00
Marc
ff0b590fc9
Detail 2018-09-28 14:09:06 +01:00
Marc
02e3af481c
Update features description 2018-09-28 14:07:01 +01:00
Marc Gilleron
44bdc63c6f Added an image-based terrain generator for testing (ported from the GDScript demo) 2018-09-28 01:11:28 +01:00
Marc Gilleron
1cac9beec4 Add an internal option to run the terrain in editor, which defaults to false because editor integration currently isn't thread-safe 2018-09-28 01:10:35 +01:00
Marc Gilleron
4d6765130d Fix thread loops missing blocks 2018-09-27 00:31:09 +01:00
Marc Gilleron
7357060377 Several fixes, a few bugs remain
- Spread mesh updates on the main thread to reduce stalls
- Fix some ambiguous situations with an additional block state
- Expose block states for debug drawing
2018-09-26 01:22:23 +01:00
Marc Gilleron
8f349a1c9a Moved loading and meshing to 2 threads, will need a few bugfixes 2018-09-25 00:54:07 +01:00
Marc Gilleron
085f94579a Use named constant 2018-09-25 00:53:12 +01:00
Marc Gilleron
a0026dbbeb Fix includes 2018-09-19 20:25:04 +01:00
Marc Gilleron
7319fa1c56 Compilation fixes 2018-09-02 18:48:08 +01:00
Marc Gilleron
07b7e083dd VoxelProvider now receives an offset in voxels instead of blocks 2017-08-28 15:42:54 +02:00
Marc Gilleron
126f367c50 Fix visibility + staying visible in other scenes 2017-08-28 02:32:23 +02:00
Marc Gilleron
115e0e2870 Fixed view distance + dynamic load/unload around viewer 2017-08-28 01:48:36 +02:00
Marc Gilleron
488ca3e6fd Fixed Vector3i != operator 2017-08-28 01:44:12 +02:00
Marc Gilleron
fdb61c9b62 Update to latest Godot 2017-08-27 15:52:14 +02:00
Marc Gilleron
40dcf89f57 Don't parse smooth voxels if the buffer is uniform 2017-08-20 19:15:36 +02:00
Marc Gilleron
6419e78fc2 Use VisualServer directly for mesh instances 2017-08-20 18:37:08 +02:00