{"id":13662459,"url":"https://github.com/sunsided/unity-procedural-cities","last_synced_at":"2025-03-18T22:31:07.852Z","repository":{"id":141993018,"uuid":"203026580","full_name":"sunsided/unity-procedural-cities","owner":"sunsided","description":"Some naive experiments with procedural city generation in Unity","archived":false,"fork":false,"pushed_at":"2020-02-21T11:25:27.000Z","size":1546,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T12:32:51.030Z","etag":null,"topics":["procedural-generation","udemy","unity","unity3d"],"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/sunsided.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}},"created_at":"2019-08-18T15:58:15.000Z","updated_at":"2024-05-28T18:18:47.000Z","dependencies_parsed_at":"2024-01-26T19:57:45.509Z","dependency_job_id":null,"html_url":"https://github.com/sunsided/unity-procedural-cities","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/sunsided%2Funity-procedural-cities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Funity-procedural-cities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Funity-procedural-cities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Funity-procedural-cities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunsided","download_url":"https://codeload.github.com/sunsided/unity-procedural-cities/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950927,"owners_count":20373664,"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":["procedural-generation","udemy","unity","unity3d"],"created_at":"2024-08-02T05:01:59.232Z","updated_at":"2025-03-18T22:31:07.314Z","avatar_url":"https://github.com/sunsided.png","language":"C#","funding_links":[],"categories":["C\\#"],"sub_categories":[],"readme":"# Procedural Cities\n\nA procedural house/city generator as described in the [Build a System that Generates Houses \u0026 Castles](https://www.udemy.com/course/unity-5-build-a-system-that-generates-houses-castles-auto) Udemy course.\nThis project also uses assets from the [Low Poly Nature Pack](https://free3d.com/3d-model/free-low-poly-nature-pack-16603.html).\n\n![](.readme/animation.webp)\n\nSo far, the following is implemented:\n\n- 3D grid sampling for starting positions,\n- Disconnected component suppression to encourage \"bigger\" houses\n- Randomized prefabs instantiation for\n  - Regular walls,\n  - Walls with doors on the ground floor, and\n  - Rooftops,\n  - Windows with balconies and flowers,\n  - Outdoor items (rocks, trees, flower patches),\n- Shared wall removal.\n\nSmaller villages at a 25% chance of\nclustering horizontally and a 25% chance\nof clustering vertically:\n\n![](.readme/added-outdoor-assets.jpg)\n\nLarger clusters of blocks at a 62% chance of clustering horizontally and a 11% chance of\nclustering vertically:\n\n![](.readme/bigger-clusters.jpg)\n\nA view from the inside:\n\n![](.readme/roofs-and-doors-interior.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Funity-procedural-cities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunsided%2Funity-procedural-cities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Funity-procedural-cities/lists"}