Commit Graph

145 Commits

Author SHA1 Message Date
e2916f12b3 Initial TiledWall cleanup. 2021-08-17 17:41:22 +02:00
874c84e631 Removed texture rects from TiledWallData. I realized it's not going to work like this. 2021-08-17 17:32:59 +02:00
68d448f5e1 Small temporary notes. 2021-08-17 16:31:51 +02:00
5a584fa578 Added a small comment. 2021-08-17 14:56:11 +02:00
97759a63ea Added custom rect support for textures into TiledWallData. Also implemented _setup_rects. 2021-08-17 13:47:34 +02:00
e0c9ff44e9 Added setup_cache and setup_rects methods to the TiledWallData. 2021-08-17 13:10:37 +02:00
72e25437bd Fix missing include, and missing binds. 2021-08-17 12:48:42 +02:00
e7e50c0e8a Add material cache storage for TiledWalls into PropCache. 2021-08-17 12:46:20 +02:00
c68671ff94 Added materials to the TiledWallData. 2021-08-17 12:40:19 +02:00
b95ebbda75 Fail if tiled_wall_data is not valid, and also copy the new tiling type property. 2021-08-17 12:30:57 +02:00
b057e8d9af Added a tiling type enum to TiledWallData. Also removed the now unused members and renamed a parameter. 2021-08-17 02:24:32 +02:00
362f8f803b Removed the unneeded properties from TiledWallData. 2021-08-17 02:08:48 +02:00
b311a2656c Make Ref parameters references wherever possible in TiledWallData. 2021-08-17 01:15:20 +02:00
acf1af1e77 Added an another set of getters/setters for flavour textures into TiledWallData. 2021-08-17 01:12:56 +02:00
b292a387cb Rename the prop getters to texture getters in TiledWallData. 2021-08-17 01:04:00 +02:00
fbafc568d7 Added TiledWall and TiledWallData classes. Just a skeleton for now. 2021-08-16 17:44:28 +02:00
2c7ce2fc07 Added PropDataPortal. It can be used to save Portal data into props. 2021-08-14 19:01:47 +02:00
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