|
71f69666cd
|
Moved VoxelJob to a new folder. Also added generate_ao and generate_random_ao from voxel chunk into it.
|
2020-10-01 20:18:43 +02:00 |
|
|
6f8e54879b
|
Added channel allocation queries to VoxelChunk.
|
2020-09-05 20:06:23 +02:00 |
|
|
142809d0cb
|
Add an alternative type and isolevel to the default channels enum.
|
2020-08-21 20:02:47 +02:00 |
|
|
5938f7f783
|
Now the type and isolevel channels are customizable in the meshers.
|
2020-08-21 20:02:22 +02:00 |
|
|
5358c99646
|
Now VoxelChunkDefault supports coloring MeshDataResources that span multiple chunks.
|
2020-08-16 18:20:16 +02:00 |
|
|
d8cf2af059
|
Same change to BUILD_PHASE_MESH_DATA_RESOURCES aswell.
|
2020-08-04 15:36:03 +02:00 |
|
|
6af711322d
|
BUILD_PHASE_TERRARIN_MESH now can also distribute it's calculations onto multiple frames.
|
2020-08-04 15:30:34 +02:00 |
|
|
469927cc3b
|
Now BUILD_PHASE_COLLIDER, and BUILD_PHASE_LIGHTS can both distribute their work onto multiple frames.
|
2020-08-04 14:53:10 +02:00 |
|
|
0a4d07c582
|
The terrarin mesh setup phase can now distribute it's calculations onto multiple frames.. Also small fixes to the single threaded logic.
|
2020-08-04 14:40:40 +02:00 |
|
|
b0a888d595
|
Removed limit execution time, and made everything a simple stub when ThreadPool is not present.
|
2020-08-04 10:52:27 +02:00 |
|
|
f1bee24803
|
Set start time in execute().
|
2020-08-04 10:21:01 +02:00 |
|
|
919620031b
|
Fix compile if ThreadPool is not present.
|
2020-08-04 10:08:04 +02:00 |
|
|
10b588f576
|
Cancel the job if complete is false.
|
2020-08-04 09:51:16 +02:00 |
|
|
bf58b94a99
|
Removed the thread from VoxelChunkDefault.
|
2020-08-04 09:49:40 +02:00 |
|
|
cff203fc49
|
Now the threading is handled by ThreadPool.
|
2020-08-04 09:44:18 +02:00 |
|
|
b95f055acd
|
Add lod falloff property to VoxelWorldDefault. Also improved _update_lods().
|
2020-08-03 19:05:40 +02:00 |
|
|
768728139e
|
Fix compile for 4.0.
|
2020-07-29 00:02:42 +02:00 |
|
|
f8663879dd
|
bake_mesh_array_uv in VoxelChunk now can't index outside the image's size.
|
2020-07-20 21:21:09 +02:00 |
|
|
c9ee935af3
|
Added an add_mesh_data_resource variant to VoxelChunk, also added the apply_voxel_scale parameter to them. Also added a few transform helpers.
|
2020-07-20 01:06:34 +02:00 |
|
|
698f6083ea
|
Add MESH_DATA_RESOURCE_PRESENT around a piece of code.
|
2020-07-18 14:19:13 +02:00 |
|
|
18ad178b1e
|
Moved the create_meshers call from BUILD_PHASE_SETUP to _build. This causes it to run on the main thread. This is the first time I got a crash related to this, also the engine docs suggests that only scenetree manipulation is unsafe from threads, so this might have been caused by something else.
|
2020-07-18 13:12:29 +02:00 |
|
|
dee38b1588
|
Fix light's position, as it expects it's coordinates in voxel world data space. Will probably change this eventually.
|
2020-07-07 18:01:21 +02:00 |
|
|
5ee5b12a4e
|
Update _bake_light in VoxelChunkDefault to use the new apis.
|
2020-07-07 17:35:44 +02:00 |
|
|
eac68265c1
|
Fix transforms in add_prop.
|
2020-07-07 17:02:30 +02:00 |
|
|
b8aaaf499b
|
Implemented add_prop in VoxelWorld. (Some of the transform calculations still need to be fixed.)
|
2020-07-07 02:22:45 +02:00 |
|
|
6f7c4fbc8a
|
Removed VoxelChunkPropData, the api of VoxelWorld, and VoxelChunk now uses PropDatas directly.
|
2020-07-07 01:06:46 +02:00 |
|
|
1355c301e8
|
Update draw_debug_mdr_colliders's logic to use the new api. Also fix error spam when a mesh data doens't have a collider.
|
2020-06-30 20:28:37 +02:00 |
|
|
3190217284
|
Moved simple collider storage from VoxelChunkDefault to VoxelChunk and separated it from the mesh data resource api.
|
2020-06-30 18:55:50 +02:00 |
|
|
138614f743
|
Update MeshDataResource offsets, as now they are Transforms.
|
2020-06-30 15:24:11 +02:00 |
|
|
a4b5400a4e
|
Fix debug collider offsets.
|
2020-06-30 15:10:48 +02:00 |
|
|
7777056af3
|
Fix collider transform.
|
2020-06-30 11:59:22 +02:00 |
|
|
bb2f13b075
|
Small improvements. Also added commented out code for debugging the terrarin meshes (They will need to be converted be lines).
|
2020-06-29 23:44:54 +02:00 |
|
|
b54a1021d4
|
Moved away from using ImmediateGeometry for debug meshes. Also implemented debugging mdr colliders.
|
2020-06-29 23:08:52 +02:00 |
|
|
2e69796d08
|
Implement collider transforms.
|
2020-06-28 21:55:00 +02:00 |
|
|
9e2d71169b
|
Add prop uv rect query into the library, and make add_mesh_data_resource use it.
|
2020-06-28 21:31:26 +02:00 |
|
|
1996f60f0f
|
Fix indexing.
|
2020-06-28 21:30:26 +02:00 |
|
|
21d135fb0b
|
Now chunk can only have one prop mesher.
|
2020-06-28 20:04:40 +02:00 |
|
|
70d9cdf6db
|
Removed unused member.
|
2020-06-28 19:16:11 +02:00 |
|
|
0138c02bf8
|
Implemented meshing chunk's mesh data resources.
|
2020-06-28 19:02:49 +02:00 |
|
|
cb6d8f5156
|
Added mesh data resources to VoxelChunk.
|
2020-06-28 16:57:53 +02:00 |
|
|
be4876c2f1
|
Fix compile if the props module isn't present.
|
2020-06-27 18:25:23 +02:00 |
|
|
a991de9d2e
|
Moved PropData to the props modue.
|
2020-06-27 17:04:40 +02:00 |
|
|
78be4a6666
|
A bit more work on props.
|
2020-06-23 19:32:37 +02:00 |
|
|
7aa0edf98e
|
Work on updating the prop meshing implementation (does not work yet).
|
2020-06-23 14:30:49 +02:00 |
|
|
19a255c4dd
|
Fix typo.
|
2020-06-23 01:13:04 +02:00 |
|
|
15659929b2
|
Added a few const qualifiers.
|
2020-06-23 01:05:41 +02:00 |
|
|
88ab910eb8
|
Brought back the old Prop implementation, and PropTool, because not only this implementation was already done, it will work better than spawning possibly thousands of nodes with the props module, but I also found a way to eventually make it more user friendly.
|
2020-06-22 21:49:58 +02:00 |
|
|
b88e430950
|
Remove unused import.
|
2020-06-20 22:07:50 +02:00 |
|
|
7219d7b2d4
|
Added a Cubic chunk and World.
|
2020-06-12 19:34:47 +02:00 |
|
|
7c95171944
|
Added a MarchingCubes World and Chunk.
|
2020-06-12 18:36:00 +02:00 |
|
|
7c93cc8f52
|
VoxelWorldDefault will not update lods automatically for now.
|
2020-05-23 21:59:58 +02:00 |
|
|
1d51be2f0b
|
Moved 4.0 compatibility code into a new defines.h (like in ESS).
|
2020-05-23 10:34:47 +02:00 |
|
|
703acd1b56
|
Fix world to voxel calculations when the voxel scale is not 1.
|
2020-05-19 00:50:19 +02:00 |
|
|
edce32b190
|
Fix compile for 4.0.
|
2020-05-16 21:32:02 +02:00 |
|
|
19f3c1f8ff
|
Fix compile for javascript.
|
2020-04-26 00:34:34 +02:00 |
|
|
af0c4d6586
|
add_chunk will error out now if a chunk is already owned by an another world. Also smaller improvements to set_chunks and the exit tree notification.
|
2020-04-22 15:57:00 +02:00 |
|
|
a2a9c1f714
|
Fix an in-editor scene-saving related crash.
|
2020-04-22 12:35:48 +02:00 |
|
|
9475986ee0
|
Added is_inside_tree() property to VoxelChunk.
|
2020-04-22 12:33:14 +02:00 |
|
|
b970c86264
|
Hide a few properties from the editor, and also from serialization.
|
2020-04-22 12:26:53 +02:00 |
|
|
49af0c9f30
|
Fix potential crash.
|
2020-04-22 12:23:49 +02:00 |
|
|
efd08f69bf
|
Allow the level generator to be null, without failing.
|
2020-04-22 12:21:50 +02:00 |
|
|
a34ceedf6a
|
Now merge_mesh_array and bake_mesh_array_uv will work properly even if the supplied arrays don't have all the expected channels.
|
2020-04-22 12:20:33 +02:00 |
|
|
a306f8cf91
|
Add queued generation the VoxelChunkDefault.
|
2020-04-22 12:16:31 +02:00 |
|
|
f00dd13c43
|
Fix typo.
|
2020-04-20 18:19:33 +02:00 |
|
|
5235641122
|
Only build liquid colliders inside the editor.
|
2020-04-20 17:41:37 +02:00 |
|
|
61c246c069
|
Disabled area generation for now.
|
2020-04-20 17:33:04 +02:00 |
|
|
9635ef064c
|
A bit more work on areas. They don't work properly yet, they might need to have a closed mesh.
|
2020-04-20 17:30:22 +02:00 |
|
|
ed990caa32
|
Fix threaded ingame area generation.
|
2020-04-20 13:59:37 +02:00 |
|
|
70c884d273
|
Fix a few in-editor crashes.
|
2020-04-20 13:54:24 +02:00 |
|
|
5748179d66
|
The temp collider arrays are now properly cleared.
|
2020-04-20 13:40:27 +02:00 |
|
|
289c456428
|
Now VoxelChunkDefault can create area colliders aswell, liquids are created using these in the running game. (Only there because the editor needs raycasting.) Also fixed setting liquid visibility.
|
2020-04-20 01:01:24 +02:00 |
|
|
6e9a952a2a
|
Implemented liquid meshing.
|
2020-04-20 00:31:46 +02:00 |
|
|
21ad01ca80
|
Removed separate liquid surfaces. They will be contained inside the normal voxel arrays.
|
2020-04-19 23:35:47 +02:00 |
|
|
4a2321b161
|
Some settings in world will now get distributed to chunks. is_build_threaded has been moved from coxel chunk default to voxel chunk. ALso fixed a few crashes.
|
2020-04-18 02:15:01 +02:00 |
|
|
23d9acb5d4
|
Ported the lod level updater code from broken seals.
|
2020-04-17 22:09:55 +02:00 |
|
|
2d5b9ed029
|
Removed build_deferred, and build_prioritized methods from the default chunk.
|
2020-04-17 20:24:50 +02:00 |
|
|
bee499d951
|
The library now has an initialized bool. Also the world editor will refresh rects in the library if needed.
|
2020-04-17 19:21:46 +02:00 |
|
|
c382dac3ff
|
Added a new tool to the world editor, it adds a block to the location of the spatial editor's camera.
|
2020-04-17 18:36:14 +02:00 |
|
|
5c0ab27715
|
Added 3 more helper functions to voxel world.
|
2020-04-17 10:15:50 +02:00 |
|
|
9cdd107565
|
Added the surface lists into scroll containers. Also text is now aligned to the left on the buttons.
|
2020-04-17 02:39:23 +02:00 |
|
|
35863196d7
|
Now the world editor will use the channel reported by world's get_channel_index_info. Also it now has support for liquid channels (based on the currently selected tab).
|
2020-04-17 02:09:24 +02:00 |
|
|
f43e4a2cc4
|
Implemented add and remove tool mode selectors in world editor. Also added shortcuts (a, s).
|
2020-04-17 01:52:16 +02:00 |
|
|
7c0390de74
|
The air block is not required anymore. Also Implemented the sidebar for world editor. And fixed a naming error for a virtual method in the merger library.
|
2020-04-17 00:37:22 +02:00 |
|
|
76f9011c24
|
Added an overrideable fonction to VoxelWorld, so the editor plugin will be able to query the correct channel ids, for any particular world. returning -1 will mean not supported.
|
2020-04-16 21:59:30 +02:00 |
|
|
b21030ae89
|
More const qualifiers.
|
2020-04-16 17:54:32 +02:00 |
|
|
367c203cc6
|
Added lots of const qualifiers to world and chunk.
|
2020-04-16 17:10:04 +02:00 |
|
|
135b34c8a8
|
Moved the chunk position calculations from the world editor into VoxelWorld.
|
2020-04-16 14:44:22 +02:00 |
|
|
06d3b0ae32
|
Add property for voxel structures.
|
2020-04-16 14:07:10 +02:00 |
|
|
d985610574
|
Cleaned up VoxelStructure, and added an api for them into VoxelWorld.
|
2020-04-16 13:40:39 +02:00 |
|
|
dd0fa1d7ea
|
Cleaned up the prop spawning api in chunk and world.
|
2020-04-15 13:06:45 +02:00 |
|
|
a63ae2183a
|
Removed _THREAD_SAFE_CLASS_ from VoxelChunk as its not used aywhere right now.
|
2020-04-15 12:44:16 +02:00 |
|
|
7a3e4ecbe3
|
Cleaned up the light baking api.
|
2020-04-15 12:41:52 +02:00 |
|
|
c752086bdd
|
A bit more work on the world editor.
|
2020-04-10 16:28:33 +02:00 |
|
|
fd24639e26
|
The world editor now won't use right click, as it makes navigation awful.
|
2020-04-10 16:13:04 +02:00 |
|
|
acf2d2d701
|
Fix 2 multithreading related crashes.
|
2020-04-10 15:50:53 +02:00 |
|
|
1f23f61b3a
|
Ran clang format, as apparently I had it off.
|
2020-04-10 13:55:27 +02:00 |
|
|
01c57c30e6
|
Fix error when the data margins are 0.
|
2020-04-10 13:43:49 +02:00 |
|
|
17dfbb4cab
|
Fix voxel index calculations in the world editor.
|
2020-04-10 13:40:07 +02:00 |
|
|
03f9041eb8
|
Added get_or_create_chunk to VoxelWorld.
|
2020-04-10 13:39:11 +02:00 |
|
|
a722f807fe
|
Fix building for 3.2.
|
2020-04-09 15:45:51 +02:00 |
|