|
6518bba651
|
Now the room hull generation tool will generate a bit more optimized meshes. It's not too bad but the meshes can still be optimized a bit. The commit contains some commented out code for now. I'll try to think up a way to remove all unneeded points from the hull.
|
2021-08-14 18:35:53 +02:00 |
|
|
d8f32eaf59
|
Now the room hull calculation tool works.
|
2021-08-14 12:54:14 +02:00 |
|
|
66f4a662c6
|
A stab at generating room points. This might need to be thrown out. Committing for fututre reference. Also fixed the other tools menu options.
|
2021-08-13 22:58:12 +02:00 |
|
|
0b42390563
|
Work on room to prop conversion.
|
2021-08-12 21:45:28 +02:00 |
|
|
faec727b11
|
Added room data related properties to PropData. A PropData will only be able to have one room.
|
2021-08-12 21:06:42 +02:00 |
|
|
067008bb90
|
Fix moving PropInstanceMerger even when it's parent is moved.
|
2021-08-12 20:24:39 +02:00 |
|
|
7643391f80
|
Don't turn on internal processing in PropInstanceMerger's constructor.
|
2021-08-12 19:29:58 +02:00 |
|
|
4d3c87bb09
|
Add missing return. Now auto lods will properly be turned off when there are no, or just one mesh in PropInstanceMerger.
|
2021-08-12 19:23:30 +02:00 |
|
|
10256f556c
|
Implemented automatic lod checks against the active camera. Can be turned off with the new auto_lod property. Also tweaked the default distance values.
|
2021-08-12 18:45:12 +02:00 |
|
|
fb9513c911
|
Implemented lod level switching support for PropInstanceMerger. Also implemented toggling the meshes with visibility.
|
2021-08-12 17:56:38 +02:00 |
|
|
cb3aa0b1b0
|
Now the editor can properly handle without a restart when an already existing PropData gets re-serialized with the scene conversion tool.
|
2021-08-11 20:33:41 +02:00 |
|
|
1d4e05b5a1
|
Finished light baking.
|
2021-08-11 19:12:03 +02:00 |
|
|
5dd5db80ec
|
Use the proper transform in _prop_preprocess for the meshes aswell.
|
2021-08-11 18:30:46 +02:00 |
|
|
db6171c48f
|
Addes api for lights to PropInstancePropJob. Also now PropInstanceMerger will process lights.
|
2021-08-11 18:29:52 +02:00 |
|
|
51ee053eed
|
Now PropLights can be added into the mesher.
|
2021-08-11 18:20:29 +02:00 |
|
|
00536c9596
|
Renamed the world position property to just position in PropLight.
|
2021-08-11 18:18:03 +02:00 |
|
|
a5ab7ca180
|
Added a new PropLight class.
|
2021-08-11 17:10:41 +02:00 |
|
|
cbbedf9128
|
Added a new bake_colors methods to PropMesher. Contains commented out code for now.
|
2021-08-11 17:04:17 +02:00 |
|
|
fb2e63702f
|
Removed the now unneeded build flags from PropMesher.
|
2021-08-11 16:48:48 +02:00 |
|
|
3d1faef5ac
|
Reimplement get_random_ao in PropMesher. Now it just returns the RAO value for that position.
|
2021-08-11 16:44:49 +02:00 |
|
|
308d8e0baf
|
Re-implemented/fixed collider support. Also fixed the debug draw colliders option.
|
2021-08-10 17:34:17 +02:00 |
|
|
80f5a3ee86
|
Fix texture processing for sub props.
|
2021-08-10 17:12:55 +02:00 |
|
|
21379908e5
|
Fix re-baking meshes after prop data assing.
|
2021-08-10 17:10:05 +02:00 |
|
|
498b289c36
|
Implement NOTIFICATION_TRANSFORM_CHANGED.
|
2021-08-10 16:40:46 +02:00 |
|
|
6e5836a859
|
Fixed more issues. Now meshes actually get built.
|
2021-08-10 15:06:10 +02:00 |
|
|
36663e46ae
|
Actually use the vector write proxy in PropMesher's build_mesh.
|
2021-08-10 12:31:28 +02:00 |
|
|
924b32e70a
|
Fixed quite a few issues with the prop instance merger's logic.
|
2021-08-10 12:23:53 +02:00 |
|
|
6a4c4ad1aa
|
Also clear the nodes if _prop_data is not valid.
|
2021-08-10 10:55:49 +02:00 |
|
|
9320f0c3c4
|
Reset the meshes even if _prop_data is not valid.
|
2021-08-10 10:53:22 +02:00 |
|
|
4ee6f2b033
|
Remove private _prop_data property.
|
2021-08-10 10:41:14 +02:00 |
|
|
ccc94053d6
|
Fix ref's type.
|
2021-08-10 10:40:56 +02:00 |
|
|
ef7b217b6a
|
Actually queue the build in queue_build.
|
2021-08-10 10:29:52 +02:00 |
|
|
8e9c865285
|
Fix build.
|
2021-08-10 10:20:27 +02:00 |
|
|
7c815f26b0
|
Removed the merge_textures property from PropInstanceMerger.
|
2021-08-10 10:19:03 +02:00 |
|
|
0d4d55278f
|
Set up job steps in PropInstanceMerger.
|
2021-08-10 10:13:16 +02:00 |
|
|
33cc53c881
|
Implement initial_setup_default for PropMaterialCache and PropMaterialCachePCM.
|
2021-08-10 10:06:13 +02:00 |
|
|
5477c38e3f
|
Added missing material_get to PropCache.
|
2021-08-10 10:01:41 +02:00 |
|
|
387c6fdedd
|
Set cache to the job and implement cache initialization for in PropInstanceMerger's _build.
|
2021-08-10 09:57:37 +02:00 |
|
|
604d895ac9
|
Improve stage logic a bit.
|
2021-08-10 09:49:22 +02:00 |
|
|
6ec8e40ea0
|
Get the material from the material cache.
|
2021-08-10 09:46:59 +02:00 |
|
|
34492756cd
|
Removed the old (commented out) lod generation code, and the mesh setup code. phase_steps handles this .
|
2021-08-10 09:45:25 +02:00 |
|
|
64e6447d9c
|
Removed the texture packer from PropInstancePropJob. The code now uses the material cache instead.
|
2021-08-10 09:39:18 +02:00 |
|
|
35cf1962d0
|
Undef PROPS_PRESENT just in case.
|
2021-08-10 09:29:08 +02:00 |
|
|
8805d63f4a
|
Added a material_cache property to PropInstancePropJob.
|
2021-08-10 09:28:06 +02:00 |
|
|
f526e99239
|
Fix error message copy paste.
|
2021-08-10 09:22:13 +02:00 |
|
|
d670f8a968
|
Implement material_cache_unref and material_cache_custom_key_unref aswell.
|
2021-08-10 09:21:32 +02:00 |
|
|
9ea2951c66
|
Added ensure_materials_loaded method to PropCache.
|
2021-08-09 21:05:36 +02:00 |
|
|
cbad187673
|
Implement material loading.
|
2021-08-09 21:01:46 +02:00 |
|
|
4bde4a4638
|
Prop cache now also can store the materials themselves.
|
2021-08-09 20:55:40 +02:00 |
|
|
f9d5a4c29a
|
Added a material_paths property to the PropCache, can be used to store resource paths to the materials.
|
2021-08-09 20:43:53 +02:00 |
|