Commit Graph

85 Commits (ef92e5f14430efce0c2b2322bb7c5614a942bacf)

Author SHA1 Message Date
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
Marc Gilleron a371e7fc9a Use Engine singleton 2017-08-20 18:26:35 +02:00
Marc Gilleron 6b3f16e699 Fix wrong block size mask value 2017-08-20 17:45:44 +02:00
Marc Gilleron dc4f0c5cd1 Moved VoxelBlock to its own file 2017-08-20 15:48:55 +02:00
Marc Gilleron aa4d04d1a0 Moved moore neighboring to cube tables 2017-08-20 15:37:07 +02:00
Marc Gilleron cb548234fc Block size is no longer a constant 2017-08-20 15:17:54 +02: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 239eb11451 Fix compilation 2017-08-15 21:37:23 +02:00
Marc Gilleron 7be5d78e4b Removed useless variable 2017-08-15 21:37:08 +02:00
Marc Gilleron df13e025ca Expose things to the editor, first iteration, might be buggy 2017-08-15 02:24:52 +02:00
Marc Gilleron 51596fef95 Clang-format 2017-08-13 01:19:39 +02:00
Marc Gilleron bc75ec863b Tweak generation time 2017-08-13 00:16:03 +02:00
Marc Gilleron 3b6430ef83 Fix cubic mesher not setting up mesh materials 2017-08-13 00:12:52 +02:00
Marc Gilleron e74d64335c Remove obsolete physics, will be re-implemented later 2017-08-13 00:11:51 +02:00
Marc Gilleron 05dfddfa20 Fix type hints in method registration 2017-08-13 00:10:18 +02:00
Marc Gilleron dd64868c2e Fix compilation 2017-06-24 01:20:24 +02:00
Marc Gilleron f07ddb37e3 Voxel raycast now considers smooth voxels too 2017-04-09 20:52:39 +02:00
Marc Gilleron 5823dfcb8c Update README about smooth terrain 2017-04-07 23:44:26 +02:00
Marc Gilleron a5a1ded2f3 Added smooth voxels (untextured at the moment) 2017-04-06 23:44:11 +02:00
Marc Gilleron 2e89ab0294 Update README 2017-04-01 20:34:44 +02:00
Marc Gilleron a25c592cab Added profiling information (for engine dev mostly) 2017-04-01 20:10:38 +02:00
Marc Gilleron 2f64e019b7 Fix missing block updates causing ambient occlusion to linger 2017-03-31 01:45:06 +02:00