c16c5d35f4
Bind is_priority_generation bool in TerrainWorld. Also set it to false in the constructor, but set it to true when eneteeing tree if the world already has chunks loaded.
2025-04-12 22:53:18 +02:00
9289351284
Also check whether chunks are building when doing a priority generation.
2025-04-08 09:17:12 +02:00
82218be991
Fix visibility toggling in TerrainChunkDefault even if lods are disabled.
2025-04-08 08:58:21 +02:00
97380e3f53
Only build the chunk in TerrainWorld::chunk_add() if the world is in the tree.
2025-04-08 08:32:37 +02:00
d99577365c
Call chunk's enter_tree and set voxel world on entering the tree in TerrainWorld.
2025-04-08 08:31:53 +02:00
4d23866ac5
Call TerrainWorldDefault's _create_chunk() and _setup_chunk() in TerrainWorldBlocky.
2025-04-08 08:31:00 +02:00
4c2ae4dc8b
Fix error message on startup.
2025-04-07 22:13:14 +02:00
bd476c1d66
Split _create_chunk() to _create_chunk() and _setup_chunk() in TerrainWorld.
...
Unfortunately this is a breaking change. (Very slight though.)
Now _create_chunk() should be used to initialize serialized properties
in chunks. The new _setup_chunk() virtual should be used to initialize
other non/serialized properties (like meshers).
Fortunately the only thing that needs to be done is to split old
_create_chunk() into two.
Note that when using procedural generation, the old way should just work
without any updates necessary. This change is only needed when loading
of chunks is desired.
2025-04-07 22:06:04 +02:00
32487af081
Implement TerrainWorldChunkDataManagerStaticFolderResources.
2025-04-07 22:01:12 +02:00
bb32eab4ca
Fix typo.
2025-04-07 22:01:04 +02:00
b7bfd13ec4
Added a force save all chunks button to TerrainWorld's inspector if a TerrainWorldChunkDataManager is set.
2025-04-07 17:37:26 +02:00
9fefe64c3b
Added force_save_all_chunks() method to TerrainWorld.
2025-04-07 17:30:29 +02:00
c64e9e1131
Added chunk saving api to TerrainWorldChunkDataManager.
2025-04-07 17:27:47 +02:00
117f6cffd1
Now TerrainWorld won't save it's chunks into scenes in the editor anymore if a TerrainWorldChunkDataManager is set.
2025-04-07 17:04:57 +02:00
5dbfdac48e
Now TerrainWorld uses TerrainWorldChunkDataManagers if they are available.
2025-04-07 12:53:51 +02:00
e88789ba9e
Added TerrainWorldChunkDataManager class to support loading and saving TerrainWorld chunks dynamically to and from disk.
2025-04-07 12:53:00 +02:00
9bb5495776
Re-extracted class doc for PropInstance.
2025-04-07 12:49:51 +02:00
7e999a3d5d
Added a simple gizmo for PropInstances. This makes PropInstances selectable with the mouse in the Spatial editor.
2025-04-07 01:46:01 +02:00
7cfebd1eaf
Now PropInstance inherits from VisualInstance. Set up it's AABB calculation.
2025-04-07 01:44:43 +02:00
8cc8c4c7b4
Return the actual AABB in TiledWall::get_aabb().
2025-04-07 01:43:42 +02:00
23f6e7b4df
Bump version.
2025-04-05 11:05:39 +02:00
7c9ccf81f5
Updated changelog.md. Trying a different style.
2025-04-04 19:39:45 +02:00
aacd20d9dd
Re-extracted class docs.
2025-04-04 19:03:05 +02:00
f878be9792
Set version to stable.
2025-04-04 18:57:54 +02:00
c094e070c7
Now TerrainChunks will register their lights into the VertexLights3DServer if use_vertex_lights_3d is enabled in world.
2025-04-04 18:15:33 +02:00
1ac803de1c
Make use of the VertexLights3DServer in TerrainChunkDefault::_bake_lights() if enabled.
2025-04-04 17:45:11 +02:00
a4ff7e9e66
Added use_vertex_lights_3d property to TerrainWorld.
2025-04-04 17:44:42 +02:00
83e68549d5
Added VertexLight3D baking tool to TerrainWorldEditor.
2025-04-04 16:25:41 +02:00
20f5439a82
Fix TerrainChunk::light_remove_index() not actually remoing lights.
2025-04-04 16:24:48 +02:00
ffa4cf938f
Added more helper methods to TerrainWorld.
2025-04-04 16:24:30 +02:00
7a50eedd5a
Added item_cull_mask property to TerrainLight.
2025-04-04 16:24:12 +02:00
4f0050f019
Added light_mode property to TerrainLight.
2025-04-04 15:44:53 +02:00
d37176539e
Removed OWNER_TYPE_VERTEX_LIGHT_3D from TerrainLight.
2025-04-04 15:36:37 +02:00
538a17950b
Small tweaks to the info outputs in TerrainWorldEditor.
2025-04-04 15:13:37 +02:00
a8c47eed08
Fix method call in TerrainWorldEditor.
2025-04-04 15:08:32 +02:00
62a5bc1be8
Added MeshDataInstance baking tool to TerrainWorldEditor.
2025-04-04 15:06:06 +02:00
74ddba1eb1
Added mesh_data_resource_add() helper method to TerrainWorld.
2025-04-04 15:05:31 +02:00
f770c598ed
Now TerrainChunks can also store a name and material for MeshDataResources.
2025-04-04 15:05:05 +02:00
a0219e12e6
Don't create prop baking tool buttons if the Props module is disabled.
2025-04-04 12:42:03 +02:00
77d9f5debd
Added a scene baking tool to TerrainWorldEditor.
2025-04-04 12:39:37 +02:00
3f817947c7
Fix logic in TerrainChunk::scenes_set() and TerrainChunk::props_set().
2025-04-04 12:39:21 +02:00
f9172bddd5
Fix typo.
2025-04-04 10:55:27 +02:00
dc4de19aaf
Return and set the name with the props property in TerrainChunk.
2025-04-04 10:54:54 +02:00
0847706fa2
Implement setting a name to scenes in TerrainChunk.
2025-04-04 10:53:12 +02:00
5d036590dd
Fix typo.
2025-04-04 09:20:06 +02:00
dd98d9e7e5
Added tooltips for the bake props tool's buttons in TerrainWorldEditor.
2025-04-04 09:18:45 +02:00
7e52eb6b43
Now props added to TerrainWorld can also have a name. The prop bake editor tool uses it to save and restore node names.
2025-04-04 01:27:22 +02:00
474ab893d6
Implemented Bake Props tool for TerrainWorldEditor.
2025-04-04 01:14:53 +02:00
5d3aa83ffa
Rebuild chunks in TerrainWorld::prop_add().
2025-04-04 01:14:23 +02:00
fb08c49ab6
Make sure the prop meshes are cleared from previous runs before returning early in TerrainPropJob.
2025-04-04 01:13:50 +02:00