{"id":18048316,"url":"https://github.com/relintai/props_2d","last_synced_at":"2025-04-05T05:16:28.127Z","repository":{"id":107318581,"uuid":"431162943","full_name":"Relintai/props_2d","owner":"Relintai","description":"2D version of my props module.","archived":false,"fork":false,"pushed_at":"2023-01-09T20:02:18.000Z","size":663,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T13:14:09.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Relintai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-23T15:54:58.000Z","updated_at":"2021-11-24T13:02:36.000Z","dependencies_parsed_at":"2024-05-09T13:35:04.822Z","dependency_job_id":null,"html_url":"https://github.com/Relintai/props_2d","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relintai%2Fprops_2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relintai%2Fprops_2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relintai%2Fprops_2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relintai%2Fprops_2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Relintai","download_url":"https://codeload.github.com/Relintai/props_2d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289433,"owners_count":20914464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T20:12:24.878Z","updated_at":"2025-04-05T05:16:28.108Z","avatar_url":"https://github.com/Relintai.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prop2Ds Module\n\nThis is a c++ engine module for the Godot Engine.\n\nIt gives you props, and editor utilities to convert scenes to props.\n\n## Godot Version Support\n\nThis branch tries to follow godot's master branch (as much as I have time).\n\nFor different godot versions look at the other branches.\n\nStatus for this branch: Update for 4.0 is work in progress.\n\n# Pre-built binaries\n\nYou can grab a pre-built editor binary from the [Broken Seals](https://github.com/Relintai/broken_seals/releases) \nrepo, should you want to. It contains all my modules.\n\n# Optional Dependencies\n\n[Mesh Data Resource](https://github.com/Relintai/mesh_data_resource): Support for merged meshes, even in gles2.\\\n[Texture Packer](https://github.com/Relintai/texture_packer): Prop2D Instance will use this to merge textures.\\\n[Thread Pool](https://github.com/Relintai/thread_pool): Prop2D Instance will use this for multithreaded generation.\n\n# Prop2DData\n\nProp2Ds are basicly 3D scenes in a simple format, so other things can easily process them without instancing.\n\nFor example if you create a building from MeshDataInstances, and then convert that scene to a prop, Voxelman \ncan spawn it, merge it's meshes, and create lods without any scene instancing.\n\nProp2DData is the main class you'll use, it's main purpose it to store a list of Prop2DDataEntries.\n\n# Prop2DDataEntries\n\nThese are the classes that actually store data.\n\nThey contain 4 methods for scene-\u003eprop conversion, namely:\n\n```\n//Whether or not this Prop2DDataEntry can process the given Node.\nvirtual bool _processor_handles(Node *node);\n\n//Save the given Node into the given prop_data any way you like, at tranform.\nvirtual void _processor_process(Ref\u003cProp2DData\u003e prop_data, Node *node, const Transform \u0026transform);\n\n//Turn Prop2DDataEntry back into a Node\nvirtual Node *_processor_get_node_for(const Transform \u0026transform);\n\n//Whether the system should skip evaluating the children of a processes Node or not. See Prop2DDataScene, or Prop2DDataProp2D.\nvirtual bool _processor_evaluate_children();\n```\n\n# Prop2DInstances\n\nProp2DInstances are not yet finished.\n\nThey will be able to merge meshes, texture etc from a Prop2D, and also generate lods for it.\n\nEssentially they will be a more advanced MeshInstance.\n\nVoxelman implements all of this, just haven't finished porting it yet.\n\n# Prop2DUtils Singleton\n\nThe Prop2DUtils singleton helps with scene-\u003eprop conversion.\n\nYou can register new Prop2DDataEntries as processors, should you need to.\n\n# Scene conversion\n\nYou can either click the new \"To Prop2D\" button on the menubar of the 3D scene for a quick conversion, \nor look into Project-\u003eTools.\n\n# Building\n\n1. Get the source code for the engine.\n\nIf you want Godot 3.2:\n```git clone -b 3.2 https://github.com/godotengine/godot.git godot```\n\nIf you want Godot 4.0:\n```git clone https://github.com/godotengine/godot.git godot```\n\n\n2. Go into Godot's modules directory.\n\n```\ncd ./godot/modules/\n```\n\n3. Clone this repository\n\n```\ngit clone https://github.com/Relintai/props props\n```\n\n4. Build Godot. [Tutorial](https://docs.godotengine.org/en/latest/development/compiling/index.html)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelintai%2Fprops_2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelintai%2Fprops_2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelintai%2Fprops_2d/lists"}