Commit Graph

32 Commits

Author SHA1 Message Date
Relintai 2afd6eff45 Fix compile for older versions of the engine than 3.x. 2021-08-29 18:55:51 +02:00
Relintai 2568178b42 Only call initial_setup_default on the main thread, and document that shader duplication can crash if done from a different thread. Removed the material mutex from the prop cache as it's not needed anymore. 2021-08-25 17:24:25 +02:00
Relintai 4be30142fb Added a mutex to ensure_materials_loaded in PropCache. This fixes potential "ERROR: Another resource is loaded from path" when spawning lots of PropInstanceMergers for the first time. 2021-08-25 01:20:12 +02:00
Relintai 72e25437bd Fix missing include, and missing binds. 2021-08-17 12:48:42 +02:00
Relintai e7e50c0e8a Add material cache storage for TiledWalls into PropCache. 2021-08-17 12:46:20 +02:00
Relintai 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
Relintai d8f32eaf59 Now the room hull calculation tool works. 2021-08-14 12:54:14 +02:00
Relintai 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
Relintai 0b42390563 Work on room to prop conversion. 2021-08-12 21:45:28 +02:00
Relintai 5477c38e3f Added missing material_get to PropCache. 2021-08-10 10:01:41 +02:00
Relintai f526e99239 Fix error message copy paste. 2021-08-10 09:22:13 +02:00
Relintai d670f8a968 Implement material_cache_unref and material_cache_custom_key_unref aswell. 2021-08-10 09:21:32 +02:00
Relintai 9ea2951c66 Added ensure_materials_loaded method to PropCache. 2021-08-09 21:05:36 +02:00
Relintai cbad187673 Implement material loading. 2021-08-09 21:01:46 +02:00
Relintai 4bde4a4638 Prop cache now also can store the materials themselves. 2021-08-09 20:55:40 +02:00
Relintai 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
Relintai d59047eb7c Added texture packer options for PropMaterialCachePCM to the PropCache singleton. It reads default values from the project settings. 2021-08-09 20:35:28 +02:00
Relintai 11b82bded3 Removed the old TexturePacker based api from PropCache. 2021-08-09 17:16:05 +02:00
Relintai b15ac01225 Added an api to get MaterialCaches from the PropCache singleton. Also changed toe default_prop_material_cache_class property's type to stringname. 2021-08-09 16:56:11 +02:00
Relintai e0db2189be Added default_prop_material_cache_class property to the PropCache singleton. 2021-08-09 16:18:34 +02:00
Relintai fea813eae3 Renamed the PropTextureCache singleton to PropCache. 2021-08-09 15:57:21 +02:00
Relintai aca6a61c3d Added a PropTextureCache singleton, and a PropTextureJob class. 2021-05-17 22:27:10 +02:00
Relintai 1adae716dd Removed stray voxelman include. 2021-04-19 10:12:23 +02:00
Relintai f4bc70c94e Fix compile for 4.0. 2021-02-06 11:54:57 +01:00
Relintai 0ed644e4a4 Fix compile for 4.0. 2020-07-29 00:03:05 +02:00
Relintai bbca47424e convert tree now ignores hidden nodes in the editor. 2020-07-06 20:11:23 +02:00
Relintai 217abb5491 Now processors can stop PropUtils from evaluating their children. 2020-07-06 13:30:21 +02:00
Relintai 85670797de Removed PropDataProcessor, moved it's functionality into PropDataEntry. 2020-07-05 21:55:08 +02:00
Relintai d6d034b8e9 Implement prop conversion logic. 2020-07-02 23:04:25 +02:00
Relintai d1a782c37c Added PropDataProcessor. This will enable scene to PropData conversion to be easily scriptable. Added an api for it into PropUtils. 2020-07-02 17:57:11 +02:00
Relintai 8258fb7cfa Set up an editor plugin. 2020-06-27 23:13:26 +02:00
Relintai e274c2d4f6 Added the PropUtils singleton. Removed PropMeshUtils. 2020-06-27 22:29:19 +02:00