{"id":25932508,"url":"https://github.com/randomgamingdev/greedy-meshing-js-demo","last_synced_at":"2026-05-29T20:31:38.312Z","repository":{"id":280345155,"uuid":"941682975","full_name":"RandomGamingDev/greedy-meshing-js-demo","owner":"RandomGamingDev","description":"A demonstration of greedy meshing in Javascript with p5.js used for voxels and more","archived":false,"fork":false,"pushed_at":"2025-03-02T21:24:14.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T22:22:22.831Z","etag":null,"topics":["algorithm","algorithms","basic","demo","example","greedy-algorithm","greedy-algorithms","greedy-meshing","javascript","p5js","quickstart","simple"],"latest_commit_sha":null,"homepage":"https://randomgamingdev.github.io/greedy-meshing-js-demo","language":"JavaScript","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/RandomGamingDev.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":"2025-03-02T21:12:29.000Z","updated_at":"2025-03-02T21:24:16.000Z","dependencies_parsed_at":"2025-03-02T22:22:24.523Z","dependency_job_id":"ef351c04-734d-4088-b85d-c60065d95fa0","html_url":"https://github.com/RandomGamingDev/greedy-meshing-js-demo","commit_stats":null,"previous_names":["randomgamingdev/greedy-meshing-js-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2Fgreedy-meshing-js-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2Fgreedy-meshing-js-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2Fgreedy-meshing-js-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2Fgreedy-meshing-js-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RandomGamingDev","download_url":"https://codeload.github.com/RandomGamingDev/greedy-meshing-js-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241763766,"owners_count":20016161,"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":["algorithm","algorithms","basic","demo","example","greedy-algorithm","greedy-algorithms","greedy-meshing","javascript","p5js","quickstart","simple"],"created_at":"2025-03-04T00:37:55.286Z","updated_at":"2026-05-29T20:31:37.101Z","avatar_url":"https://github.com/RandomGamingDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Greedy Meshing Javascript Demo\n\n### Greedy Meshing is a concept meant to adapt voxels, which are hard to compute, into large quads, making them easier and in many cases possible at all. \u003cbr/\u003e\nNote: This example uses iteration per block for the column comparisons necessary for 2nd dimension (in this case x axis) expansion which is **NOT** the optimal method in terms of performance.\nIn the future, if asked I might create an example of efficiently doing it via bitwise operators, but to be very honest there are much better languages (e.g. C/C++, Rust, etc.) for demonstrating that and countless examples in them too.\n\nThis demo generates an image out of noise and then greedily meshes it into rectangles.\n![Greedy Meshing Image](https://github.com/user-attachments/assets/0e0366c8-df27-45e5-8cf5-7597427ca0ae)\n\nIf you'd like to see how expanding down one dimension (in this demo the `y`) before expanding that down the other dimension (in this demo the `x`) works just enable the `DEBUG_VISUALS` to see \u003cbr/\u003e\n![Greedy Meshing DEBUG_VISUALS Image](https://github.com/user-attachments/assets/454a1ddd-a9db-4808-a01e-e7401f01500f)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomgamingdev%2Fgreedy-meshing-js-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandomgamingdev%2Fgreedy-meshing-js-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomgamingdev%2Fgreedy-meshing-js-demo/lists"}