Marc Gilleron
96bcc44d00
Removed VoxelMap and VoxelBlock, superseded by their specialized versions
2021-04-15 20:25:55 +01:00
Marc Gilleron
9bcc3580d6
Added first C++ test
2021-04-03 20:40:35 +01:00
Marc Gilleron
76ec90fe34
Moved constants and tables under a folder
2021-02-21 23:58:00 +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
00fe474d46
Attempted again to integrate FastNoise2, but C++17 is really needed.
2021-02-21 03:02:32 +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
094bbc1fe1
Refactored API to allow editor inspection and preview
2021-02-14 21:55:31 +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
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
4353939eb4
Move region stuff to a folder
2021-01-31 16:51:42 +00:00
Marc Gilleron
01e5e18922
Implemented VoxelStreamSQLite
2021-01-28 22:02:49 +00:00
Marc Gilleron
0816d1fc09
Merge branch 'master' into instancing
2021-01-23 01:33:11 +00:00
Marc Gilleron
a3bad1af64
Register `VoxelToolBuffer` because otherwise it gets initialized lazily, causing crashes in threads
2021-01-17 22:18:41 +00:00
Marc Gilleron
973cf729cd
Added FastNoise2 for SIMD noise, but it won't be integrated yet.
...
It requires C++17, while Godot uses C++14. I was unable to override it,
and I'm not sure how compatible this will be with the runtime.
At least this would be doable in Godot 4.
2021-01-09 16:35:40 +00:00
Marc Gilleron
c8dcbc55e3
Added FastNoiseLite
2021-01-02 00:59:12 +00:00
Marc Gilleron
a34710f74c
Added VoxelInstancer. First working API, script only.
2020-12-29 22:25:22 +00:00
Marc Gilleron
6d9fd2f8a0
Voxel terrain nodes now have a common abstract base class. Also explicitely made a few other classes abstract
2020-12-18 22:58:41 +00:00
Marc Gilleron
2018625b34
Moved simple generators under a simple/ folder
2020-12-18 21:19:02 +00:00
Marc Gilleron
d52f882ae1
VoxelMap is no longer bound, it had no use in the API
2020-11-21 18:31:11 +00:00
Marc Gilleron
10d6e5bd8a
Script-based generators and streams have their own class, should fix C# API
2020-10-31 22:11:25 +00:00
Marc Gilleron
d158a92f57
Show bounds and octrees of VoxelLodTerrain with debug drawing
2020-10-24 00:08:14 +01:00
Marc Gilleron
6c80da0425
Moved VoxelBuffer and VoxelMemoryPool under storage/ directory
2020-09-14 19:33:02 +01:00
Marc Gilleron
7064f6e471
Color palette support in .vox loader and Cubes mesher
2020-09-13 02:17:11 +01:00
Marc Gilleron
e1b9a25db7
Added utility class to load MagicaVoxel .vox files
2020-09-12 21:10:05 +01:00
Marc Gilleron
79d73e3f5a
Added cubes mesher with greedy meshing support
2020-09-11 00:36:23 +01:00
Marc Gilleron
81e1872f8b
Implemented viewers for VoxelTerrain
2020-09-06 19:01:12 +01:00
Marc Gilleron
b8c97ebc55
Switch VoxelLodTerrain to VoxelServer
2020-08-31 21:51:30 +01:00
Marc Gilleron
aa2b848102
Workaround crash on exit because the GDScript module is freed before voxel
...
See https://github.com/Zylann/godot_voxel/issues/189
2020-08-29 22:55:52 +01:00
Marc Gilleron
d4d2b6fd9e
No longer copy voxels before scheduling threaded tasks. VoxelBuffers now have a lock.
2020-08-29 22:09:54 +01:00
Marc Gilleron
bcfc8ce04e
Add some stats
2020-08-26 21:17:57 +01:00
Marc Gilleron
56c2a0856a
Initial integration on VoxelTerrain with static camera, fixed a bunch of things
2020-08-25 23:00:38 +01:00
Marc Gilleron
23ce65d789
Show terrain in editor, with option to turn it off. A scripted stream will turn it off by default.
2020-08-14 20:33:09 +01:00
Marc Gilleron
7316e415dc
Implemented block events for VoxelTerrain
2020-08-10 20:57:03 +01:00
Marc Gilleron
27f37ea56c
Move voxel graph editor under its own folder
2020-07-30 18:50:45 +01:00
Marc Gilleron
0cdf5ea550
Added random tick API for blocky voxels
2020-07-28 20:32:33 +01:00
Marc Gilleron
4991b682d9
Exposed block serializer
2020-07-25 21:56:23 +01:00
Marc Gilleron
e7c720ceeb
Added barebones editor plugin to edit VoxelGeneratorGraph (does nothing for now)
2020-03-01 18:12:16 +00:00
Marc Gilleron
f4a5b36fe9
Moved node DB to its own file
2020-02-23 19:08:14 +00:00
Marc Gilleron
07905ba580
Renamed `evaluate` in ProgramGraph to a more descriptive name
2020-02-22 22:45:22 +00:00
Marc Gilleron
af09121c9f
Fixed a bunch of things
2020-02-19 21:59:41 +00:00
Marc Gilleron
515751a3e6
WIP VoxelGeneratorGraph, compiled and untested
2020-02-19 19:26:14 +00:00
Marc Gilleron
c33f46a437
Split VoxelGeneratorTest into VoxelGeneratorWaves and VoxelGeneratorFlat
2020-02-17 22:05:16 +00:00
Marc Gilleron
3ec2275ffb
Moved Voxel and VoxelLibrary under the blocky mesher directory, since that's what they are actually used for
2020-01-27 00:04:13 +00:00
Marc Gilleron
b937020d16
Rename files to match class names
2020-01-26 22:43:47 +00:00
Marc Gilleron
8879d9b2e7
Moved all generators under their own base class and folder
2020-01-26 22:34:26 +00:00
Marc Gilleron
0ac1b7e6dc
Moved edition-related classes to a sub-folder
2020-01-26 20:29:44 +00:00
Marc Gilleron
20dc0008f4
Removed legacy marching cubes mesher
2020-01-26 20:18:21 +00:00
Marc Gilleron
7161942ee1
Fix memory leak in VoxelBuffer::fill()
2020-01-26 01:59:53 +00:00