{"id":17447279,"url":"https://github.com/eanders-ms/pxt-3d","last_synced_at":"2025-03-28T03:42:02.412Z","repository":{"id":123946452,"uuid":"266923712","full_name":"eanders-ms/pxt-3d","owner":"eanders-ms","description":"MakeCode extension for 3d transformation and projection - beta","archived":false,"fork":false,"pushed_at":"2020-06-18T22:54:43.000Z","size":14171,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T04:45:05.127Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/eanders-ms.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":"2020-05-26T02:16:22.000Z","updated_at":"2024-10-28T03:21:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f35ee76-e6e6-4760-b14a-95be02e4d71b","html_url":"https://github.com/eanders-ms/pxt-3d","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/eanders-ms%2Fpxt-3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eanders-ms%2Fpxt-3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eanders-ms%2Fpxt-3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eanders-ms%2Fpxt-3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eanders-ms","download_url":"https://codeload.github.com/eanders-ms/pxt-3d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245966929,"owners_count":20701759,"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-17T19:24:59.412Z","updated_at":"2025-03-28T03:42:02.386Z","avatar_url":"https://github.com/eanders-ms.png","language":"TypeScript","readme":"# pxt-3d ![Build status badge](https://github.com/eanders-ms/pxt-3d/workflows/MakeCode/badge.svg)\n\n\n![](./media/demo.gif)\n\nThis library implements a perspective 3D renderer for MakeCode Arcade. Practical? No. Fun? Yes!\n\n## Features\n\n- Renders 3D objects from the perspective of a camera.\n- Lighting models: None, Flat, Dither. Maybe more will come: greyscale/monochrome, dramatic multi-color dithering, additional dithering patterns, others?\n- Primitives: Cube. More possibly coming: Sphere, diamond, cylinder, quad, ...\n- Depth buffer (only works in simulator due to device memory constraints -- I'm in search of a solution).\n- Frustum clipping (partially implemented).\n- Backface culling.\n- Fixed point (Fx8) linear algebra and trigonometric functions.\n\n## TODO\n\n- [ ] Improve perspective projection.\n- [ ] Find a way to support depth buffer on device -- currently getting an out-of-memory error (panic 22).\n- [ ] Proper triangle/view frustum clipping (need to split triangles when partially clipped).\n- [ ] Child objects / object hierarchies.\n- [ ] Make a better looking demo scene. Maybe a spaceship flying through a city ala https://youtu.be/XezcZVu66QI?t=485 ?. Requires depth buffer.\n- [ ] Experiment with other types of lighting. More creative palettes, greyscale, etc.\n- [ ] Find performance problems and try to improve them. Goal: 30 fps when writing color to every pixel, with depth buffer.\n- [ ] Or, maybe this is fine as-is, and I'll move on to the next thing :).\n\n## Use this extension\n\nThis repository can be added as an **extension** in MakeCode.\n\n* open https://arcade.makecode.com/\n* click on **New Project**\n* click on **Extensions** under the gearwheel menu\n* search for the URL of this repository and import\n\n## Edit this extension\n\nTo edit this repository in MakeCode.\n\n* open https://arcade.makecode.com/\n* click on **Import** then click on **Import URL**\n* paste the repository URL and click import\n\n## Blocks preview\n\nThis image shows the blocks code from the last commit in master.\nThis image may take a few minutes to refresh.\n\n![A rendered view of the blocks](https://github.com/eanders-ms/pxt-3d/raw/master/.makecode/blocks.png)\n\n## Supported targets\n\n* for PXT/arcade\n* for PXT/arcade\n(The metadata above is needed for package search.)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feanders-ms%2Fpxt-3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feanders-ms%2Fpxt-3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feanders-ms%2Fpxt-3d/lists"}