484 Commits

Author SHA1 Message Date
Marc Gilleron
944791d5ce Fixes to LOD fading 2021-03-12 23:35:51 +00:00
Marc Gilleron
5a8eee7d4b Added debug function to get octree state 2021-03-11 22:55:52 +00:00
Marc Gilleron
cf81f83382 Re-implemented lod fade 2021-03-02 22:49:42 +00:00
Marc Gilleron
76ec90fe34 Moved constants and tables under a folder 2021-02-21 23:58:00 +00:00
Marc Gilleron
09c815e253 Implemented copy and paste for VoxelToolTerrain (untested) 2021-02-21 18:23:56 +00:00
Marc Gilleron
b51897b8df Added voxel raycast to VoxelToolLodTerrain
- Made more precise with an option to use binary search (unoptimized)
- Distance along ray is now available in blocky terrains as well
2021-02-21 03:08:47 +00:00
Marc Gilleron
cb2fcdce1b Fix signedness warning 2021-02-19 01:51:06 +00:00
Marc Gilleron
fa2efcf75a Fix missing bindings 2021-02-18 21:17:52 +00:00
Marc Gilleron
4d033a2bb4 Added collision update delay to accelerate edit spam a little.
Not easy to use yet, might need the user to use voxel raycast instead of
physics because the hit points will not update often as they sculpt
2021-02-18 19:50:47 +00:00
Marc Gilleron
d1207bdd96 Reorganized some utility files 2021-02-17 20:34:35 +00:00
Marc Gilleron
d08c911579 Fix GCC warning 2021-02-16 23:52:56 +00:00
Marc Gilleron
a3018e84e6 Fix missing header and signedness 2021-02-16 23:36:37 +00:00
Marc Gilleron
4bdadb2ffd Fix GCC warning 2021-02-16 23:07:59 +00:00
Marc Gilleron
c5a4dd8f72 Fix release compilation 2021-02-16 22:38:09 +00:00
Marc Gilleron
5bef3b6cc6 Added scale distribution and noise 2021-02-16 01:14:04 +00:00
Marc Gilleron
a94a8da157 Fixed Add Item not working after first item 2021-02-16 01:13:16 +00:00
Marc Gilleron
0a347ebf70 Fix configuration warning not updating after adding an item to the library 2021-02-16 01:04:21 +00:00
Marc Gilleron
41177f1c73 Fixed error when setting a library on an instancer not in the tree yet 2021-02-15 22:27:18 +00:00
Marc Gilleron
511bfd2a7a Added node configuration warnings 2021-02-15 21:55:31 +00:00
Marc Gilleron
c5eb599798 Make the editor preview update in some uncovered scenarios 2021-02-15 21:45:12 +00:00
Marc Gilleron
02972641ea Add option to emit instances from faces 2021-02-15 18:25:48 +00:00
Marc Gilleron
9e25ef3198 Fix slope limiter angles 2021-02-15 18:24:48 +00:00
Marc Gilleron
094bbc1fe1 Refactored API to allow editor inspection and preview 2021-02-14 21:55:31 +00:00
Marc Gilleron
11dd3488fb Added optional mesh lods 2021-02-10 18:29:28 +00:00
Marc Gilleron
c6fdbb675b Instancing persistence is now opt-in 2021-02-08 22:20:18 +00:00
Marc Gilleron
7f47b07e0c Fix data reception buffer not cleared after consumption 2021-02-08 01:22:09 +00:00
Marc Gilleron
221cb5839f Fix error when setting empty multimesh data 2021-02-07 23:43:58 +00:00
Marc Gilleron
6856f4b491 Moved instancing stuff under a folder 2021-02-07 21:40:55 +00:00
Marc Gilleron
4daf6718f8 Moved instance generation to its own class 2021-02-07 21:30:07 +00:00
Marc Gilleron
b65b0b8045 Implemented saving and loading of modified instances in SQLite 2021-02-07 17:22:50 +00:00
Marc Gilleron
dce6ddc3f5 No longer save terrain automatically when it gets destroyed.
If the user wants to save, save_modified_blocks() must be called explicitely.
2021-02-07 17:12:30 +00:00
Marc Gilleron
8e0241ed16 Don't let streams override LOD count for now 2021-02-07 17:04:22 +00:00
Marc Gilleron
22471aafd0 Merge branch 'master' into instancing 2021-02-02 00:00:01 +00:00
Marc Gilleron
b66b9a01a9 Removed VoxelStreamFile 2021-02-01 22:25:25 +00:00
Marc Gilleron
01e5e18922 Implemented VoxelStreamSQLite 2021-01-28 22:02:49 +00:00
Marc Gilleron
99723cc006 Merge branch 'master' into instancing 2021-01-25 22:17:46 +00:00
Marc Gilleron
137059f514 Use relationship=2 for block map 2021-01-24 15:24:07 +00:00
Marc Gilleron
5ec5136f5e Don't try to save if the terrain has no stream assigned 2021-01-23 23:01:02 +00:00
Marc Gilleron
0816d1fc09 Merge branch 'master' into instancing 2021-01-23 01:33:11 +00:00
Marc Gilleron
25c033ce85 Fix huge stutters caused by materials not being pooled properly 2021-01-22 18:31:46 +00:00
Marc Gilleron
23765f7c20 Merge branch 'master' into multithreaded_generators 2021-01-18 18:55:18 +00:00
Marc Gilleron
6075476fd8 Fix wrong variable, caused null access 2021-01-17 18:27:38 +00:00
Marc Gilleron
4ec60074bb Refactor generators and streams
- VoxelGenerator no longer inherit VoxelStream
- VoxelStream is now more focused on files
- Nodes have separate stream and generator properties
- Generators use 2 dedicated threads instead of sharing a single one with streams
- TODO Image.lock() is problematic for multithreading
- TODO Voxel graph can cause RWLock contention if edited while it runs
- TODO Saving generator output no longer works, need to put it back
2021-01-17 17:18:05 +00:00
Marc Gilleron
94810f4d04 Rename statistic property back to its old name, I think it didnt need to change 2021-01-16 13:05:50 +00:00
Marc Gilleron
70a1828720 Added static body collisions 2021-01-01 01:41:41 +00:00
Marc Gilleron
229caf739d Fix parent not reset when unparented 2021-01-01 01:40:19 +00:00
Marc Gilleron
37a202a00b Added material_override 2021-01-01 01:39:06 +00:00
Marc Gilleron
586b5bc0b8 Added height limiter 2020-12-31 20:33:19 +00:00
Marc Gilleron
a766e8aefb Added slope limit 2020-12-30 23:24:30 +00:00
Marc Gilleron
2b292818c0 Instances now get removed when the user digs under them 2020-12-30 20:11:46 +00:00