Commit Graph

  • 8cd5c05cb9 Updated the readme. master Relintai 2023-01-09 20:59:08 +0100
  • df35c65995 Work on fixing compile. Relintai 2023-01-09 20:03:37 +0100
  • 0fd63f6cb6 Work on fixing compile. Relintai 2023-01-09 14:10:10 +0100
  • 7ccb1b7819 Work on fixing compile. Relintai 2023-01-09 01:16:33 +0100
  • a0ba4f2cab Updated register_types.h and cpp to the current godot 4 style. Relintai 2023-01-08 15:55:22 +0100
  • 983090d21a Don't deallocate meshes on exit tree if the job is running. 3.x Relintai 2022-02-19 22:28:53 +0100
  • 303343211f Fix early return in _setup_material_albedo. Relintai 2022-02-16 20:50:41 +0100
  • 165048ded4 Get the dimensions from the texture instead of the image in texture_get_uv_rect of the material cache. This fixes some of the uv related issues on the webgl backend. Relintai 2022-02-16 20:48:55 +0100
  • 401666b560 Move job creation from PropInstanceMerger's constructor to a virtual method. Relintai 2022-02-14 12:56:28 +0100
  • deb664c781 Also check whether a job is valid before calling enter tree on it. Relintai 2022-02-14 12:50:17 +0100
  • 10dbb857ce PropInstanceMerger: Set job's cancelled flag in build. Also call job's enter tree in set_job, and call it in enter tree if the job is valid, not the prop. Relintai 2022-02-14 12:49:12 +0100
  • ce369408ca Fix compile after recent changes in Terraman. Relintai 2022-02-08 14:00:25 +0100
  • 73dae84e9b Work on fixing compile for 4.0. Relintai 2022-02-07 00:19:52 +0100
  • d66c8c4ac7 Updated copyright headers. Relintai 2022-01-12 22:15:58 +0100
  • 1c59be4575 Re-extracted the class docs. Relintai 2022-01-12 22:15:46 +0100
  • 2afd6eff45 Fix compile for older versions of the engine than 3.x. Relintai 2021-08-29 18:55:51 +0200
  • d9d157bf37 Make sure to set job's state to incomplete before building in PropInstanceMerger. This fixes complex mesh builds when threading is disabled. Relintai 2021-08-28 11:28:52 +0200
  • 4cc187303b Make sure PropInstancePropJob generates mesh when the prop only has tiled walls. Relintai 2021-08-27 19:26:16 +0200
  • 0bfe718d03 Also copy _is_room and _room_bounds in PropData::copy_from. Relintai 2021-08-26 20:51:16 +0200
  • 6fe7427b03 Check whether the cache has materials instead of whether it's initialized or not in PropInstanceMerger::_build. Relintai 2021-08-25 23:42:23 +0200
  • 5f915d4dd2 Cleanups to the collision shape code in TiledWall. Still unfinished though. Relintai 2021-08-25 22:54:00 +0200
  • cd4f9adfd9 Added collision layers to TiledWall aswell. Relintai 2021-08-25 22:29:49 +0200
  • 6f7b618622 Reverse the order of the getter and setter to match the style I use. Relintai 2021-08-25 22:29:00 +0200
  • c6f6871fc2 Added collision layer and mask support to PropInstance. Relintai 2021-08-25 22:21:34 +0200
  • 7ccdbd474c Fixed collision shape positions in PropInstanceMerger. Also improved it's collision shape / physics body handling. Relintai 2021-08-25 20:37:37 +0200
  • 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. Relintai 2021-08-25 17:24:25 +0200
  • 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. Relintai 2021-08-25 01:20:12 +0200
  • a0153bbe0b Started work on collision support for the TIledWall. Relintai 2021-08-18 21:16:58 +0200
  • 19b182dd71 Don't build if not in tree. Relintai 2021-08-18 20:41:10 +0200
  • 681cdb21c6 Collider support for TiledWalls in PropInstanceMerger. Relintai 2021-08-18 20:35:12 +0200
  • 5baba6436f Moved the cache setup code from PropInstanceMerger to the prop job this makes the texture merge actually threaded. Relintai 2021-08-18 18:57:19 +0200
  • 1143adf7ee Moved phase_physics_process and phase_prop in file. Relintai 2021-08-18 18:50:52 +0200
  • 51e3254bfc Tiled Wall support for PropInstance and PropinstanceMerger. Also fixed a double transform multiplication with MeshDataResources in PropInstanceMerger. Relintai 2021-08-18 18:48:13 +0200
  • f2d1383ba8 Only transform the normal with the basis. Relintai 2021-08-18 18:45:40 +0200
  • 2fcab242f9 Now TiledWalls can be serialized into props. Relintai 2021-08-18 18:06:09 +0200
  • b18fc92ebb Make sure to call initial_setup_default in cache. Relintai 2021-08-18 17:24:48 +0200
  • 9d26fd35f2 Implemented flavours. Relintai 2021-08-18 17:10:45 +0200
  • 9c970bbed5 Make sure to duplicate the materials before adding them to the cache in _setup_cache. Relintai 2021-08-18 16:57:11 +0200
  • 1f45f626d3 Call emit_changed() in TiledWallData in every setter. Relintai 2021-08-18 16:55:30 +0200
  • e23382ac75 Fix mesh indices. Relintai 2021-08-18 16:52:02 +0200
  • 97b6897429 Make sure to clear the mesh when the width of the height changes. Relintai 2021-08-18 16:28:36 +0200
  • 12a4e03376 Fix the normal's directions. Relintai 2021-08-18 16:19:05 +0200
  • 104a1c63d0 Implemented texture rects for the tiled wall mesher. Relintai 2021-08-18 16:16:09 +0200
  • 67e9407188 Fix collision property. Relintai 2021-08-18 16:09:56 +0200
  • 4d7d66e969 Implemented TiledWall meshing. Relintai 2021-08-18 16:07:03 +0200
  • 78f049e8c9 Fixed binding for tiling_type. Relintai 2021-08-18 16:06:49 +0200
  • 3c3e057182 Check for the VERSION_MAJOR define instead of the GODOT4. Relintai 2021-08-17 20:03:57 +0200
  • 2e4ab17d2e More cleanups/initial setup for TiledWall. Relintai 2021-08-17 18:07:17 +0200
  • e2916f12b3 Initial TiledWall cleanup. Relintai 2021-08-17 17:41:22 +0200
  • 874c84e631 Removed texture rects from TiledWallData. I realized it's not going to work like this. Relintai 2021-08-17 17:32:59 +0200
  • 68d448f5e1 Small temporary notes. Relintai 2021-08-17 16:31:51 +0200
  • 5a584fa578 Added a small comment. Relintai 2021-08-17 14:56:11 +0200
  • 97759a63ea Added custom rect support for textures into TiledWallData. Also implemented _setup_rects. Relintai 2021-08-17 13:47:34 +0200
  • e0c9ff44e9 Added setup_cache and setup_rects methods to the TiledWallData. Relintai 2021-08-17 13:10:37 +0200
  • 72e25437bd Fix missing include, and missing binds. Relintai 2021-08-17 12:48:42 +0200
  • e7e50c0e8a Add material cache storage for TiledWalls into PropCache. Relintai 2021-08-17 12:46:20 +0200
  • c68671ff94 Added materials to the TiledWallData. Relintai 2021-08-17 12:40:19 +0200
  • b95ebbda75 Fail if tiled_wall_data is not valid, and also copy the new tiling type property. Relintai 2021-08-17 12:30:57 +0200
  • b057e8d9af Added a tiling type enum to TiledWallData. Also removed the now unused members and renamed a parameter. Relintai 2021-08-17 02:24:32 +0200
  • 362f8f803b Removed the unneeded properties from TiledWallData. Relintai 2021-08-17 02:08:48 +0200
  • b311a2656c Make Ref parameters references wherever possible in TiledWallData. Relintai 2021-08-17 01:15:20 +0200
  • acf1af1e77 Added an another set of getters/setters for flavour textures into TiledWallData. Relintai 2021-08-17 01:12:56 +0200
  • b292a387cb Rename the prop getters to texture getters in TiledWallData. Relintai 2021-08-17 01:04:00 +0200
  • fbafc568d7 Added TiledWall and TiledWallData classes. Just a skeleton for now. Relintai 2021-08-16 17:44:28 +0200
  • 2c7ce2fc07 Added PropDataPortal. It can be used to save Portal data into props. Relintai 2021-08-14 19:01:47 +0200
  • 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. Relintai 2021-08-14 18:35:53 +0200
  • d8f32eaf59 Now the room hull calculation tool works. Relintai 2021-08-14 12:54:14 +0200
  • 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. Relintai 2021-08-13 22:58:12 +0200
  • 0b42390563 Work on room to prop conversion. Relintai 2021-08-12 21:45:28 +0200
  • faec727b11 Added room data related properties to PropData. A PropData will only be able to have one room. Relintai 2021-08-12 21:06:42 +0200
  • 067008bb90 Fix moving PropInstanceMerger even when it's parent is moved. Relintai 2021-08-12 20:24:39 +0200
  • 7643391f80 Don't turn on internal processing in PropInstanceMerger's constructor. Relintai 2021-08-12 19:29:44 +0200
  • 4d3c87bb09 Add missing return. Now auto lods will properly be turned off when there are no, or just one mesh in PropInstanceMerger. Relintai 2021-08-12 19:23:30 +0200
  • 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. Relintai 2021-08-12 18:45:12 +0200
  • fb9513c911 Implemented lod level switching support for PropInstanceMerger. Also implemented toggling the meshes with visibility. Relintai 2021-08-12 17:56:38 +0200
  • cb3aa0b1b0 Now the editor can properly handle without a restart when an already existing PropData gets re-serialized with the scene conversion tool. Relintai 2021-08-11 20:33:41 +0200
  • 1d4e05b5a1 Finished light baking. Relintai 2021-08-11 19:12:03 +0200
  • 5dd5db80ec Use the proper transform in _prop_preprocess for the meshes aswell. Relintai 2021-08-11 18:30:46 +0200
  • db6171c48f Addes api for lights to PropInstancePropJob. Also now PropInstanceMerger will process lights. Relintai 2021-08-11 18:29:52 +0200
  • 51ee053eed Now PropLights can be added into the mesher. Relintai 2021-08-11 18:20:29 +0200
  • 00536c9596 Renamed the world position property to just position in PropLight. Relintai 2021-08-11 18:18:03 +0200
  • a5ab7ca180 Added a new PropLight class. Relintai 2021-08-11 17:10:41 +0200
  • cbbedf9128 Added a new bake_colors methods to PropMesher. Contains commented out code for now. Relintai 2021-08-11 17:04:17 +0200
  • fb2e63702f Removed the now unneeded build flags from PropMesher. Relintai 2021-08-11 16:48:48 +0200
  • 3d1faef5ac Reimplement get_random_ao in PropMesher. Now it just returns the RAO value for that position. Relintai 2021-08-11 16:44:49 +0200
  • 308d8e0baf Re-implemented/fixed collider support. Also fixed the debug draw colliders option. Relintai 2021-08-10 17:34:17 +0200
  • 80f5a3ee86 Fix texture processing for sub props. Relintai 2021-08-10 17:12:55 +0200
  • 21379908e5 Fix re-baking meshes after prop data assing. Relintai 2021-08-10 17:10:05 +0200
  • 498b289c36 Implement NOTIFICATION_TRANSFORM_CHANGED. Relintai 2021-08-10 16:40:46 +0200
  • 6e5836a859 Fixed more issues. Now meshes actually get built. Relintai 2021-08-10 15:06:10 +0200
  • 36663e46ae Actually use the vector write proxy in PropMesher's build_mesh. Relintai 2021-08-10 12:31:28 +0200
  • 924b32e70a Fixed quite a few issues with the prop instance merger's logic. Relintai 2021-08-10 12:23:53 +0200
  • 6a4c4ad1aa Also clear the nodes if _prop_data is not valid. Relintai 2021-08-10 10:55:49 +0200
  • 9320f0c3c4 Reset the meshes even if _prop_data is not valid. Relintai 2021-08-10 10:53:22 +0200
  • 4ee6f2b033 Remove private _prop_data property. Relintai 2021-08-10 10:41:14 +0200
  • ccc94053d6 Fix ref's type. Relintai 2021-08-10 10:40:56 +0200
  • ef7b217b6a Actually queue the build in queue_build. Relintai 2021-08-10 10:29:52 +0200
  • 8e9c865285 Fix build. Relintai 2021-08-10 10:20:27 +0200
  • 7c815f26b0 Removed the merge_textures property from PropInstanceMerger. Relintai 2021-08-10 10:19:03 +0200
  • 0d4d55278f Set up job steps in PropInstanceMerger. Relintai 2021-08-10 10:13:16 +0200