{"id":22869935,"url":"https://github.com/autodesk-platform-services/aps-unity-poc","last_synced_at":"2025-05-05T22:10:43.905Z","repository":{"id":80611569,"uuid":"562903243","full_name":"autodesk-platform-services/aps-unity-poc","owner":"autodesk-platform-services","description":"APS/Unity Prototype:Prototype application used to preview Autodesk Platform Services models in Unity.","archived":false,"fork":false,"pushed_at":"2024-09-11T11:57:56.000Z","size":2398,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-31T00:11:12.684Z","etag":null,"topics":["autodesk-model-derivative","nodejs","sample","unity"],"latest_commit_sha":null,"homepage":"","language":"ShaderLab","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/autodesk-platform-services.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":"2022-11-07T13:56:09.000Z","updated_at":"2025-02-16T13:03:11.000Z","dependencies_parsed_at":"2024-09-11T15:57:07.032Z","dependency_job_id":"3a73f5ce-4a76-491a-aa80-e64513392048","html_url":"https://github.com/autodesk-platform-services/aps-unity-poc","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/autodesk-platform-services%2Faps-unity-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autodesk-platform-services%2Faps-unity-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autodesk-platform-services%2Faps-unity-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autodesk-platform-services%2Faps-unity-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autodesk-platform-services","download_url":"https://codeload.github.com/autodesk-platform-services/aps-unity-poc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584329,"owners_count":21771945,"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":["autodesk-model-derivative","nodejs","sample","unity"],"created_at":"2024-12-13T13:12:47.929Z","updated_at":"2025-05-05T22:10:43.890Z","avatar_url":"https://github.com/autodesk-platform-services.png","language":"ShaderLab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# APS/Unity Prototype\n\n![platforms](https://img.shields.io/badge/platform-windows%20%7C%20osx%20%7C%20linux-lightgray.svg)\n[![node.js](https://img.shields.io/badge/node.js-16.17-blue.svg)](https://nodejs.org)\n[![npm](https://img.shields.io/badge/npm-8.15-blue.svg)](https://www.npmjs.com/)\n[![license](https://img.shields.io/:license-mit-green.svg)](https://opensource.org/licenses/MIT)\n\n[![Model Derivative](https://img.shields.io/badge/Model%20Derivative-v2-green.svg)](https://aps.autodesk.com/en/docs/model-derivative/v2/overview/)\n\nPrototype application allowing you to load and preview your [Autodesk Platform Services](https://aps.autodesk.com) models in Unity.\n\n![thumbnail](./thumbnail.png)\n\nThe sample code consists of two projects:\n\n- Simple Node.js server used to list 3D models in a pre-configured APS bucket, and convert the models\ninto the glb format with [meshopt](https://github.com/zeux/meshoptimizer/blob/master/gltf/README.md) compression.\nTo enable picking, the conversion process also embeds 32-bit object IDs in the color channel of the output geometry.\n\n- Unity application that communicates with the Node.js server, and uses [glTFast](https://github.com/atteneder/glTFast)\nto load and preview the generated glb files. It includes a \"pointer\" game object that can identify whatever object\nit is pointing at by parsing the object ID from the color channel.\n\n## Development\n\n### Prerequisites\n\n- APS credentials (see the [Create an App](https://aps.autodesk.com/en/docs/oauth/v2/tutorials/create-app) tutorial)\n- [Node.js](https://nodejs.org) (recommended version: LTS), and [yarn](https://yarnpkg.com)\n- [Unity](https://unity.com) (recommended version: 2020.3.29f1)\n- Terminal (for example, [Windows Command Prompt](https://en.wikipedia.org/wiki/Cmd.exe), or [macOS Terminal](https://support.apple.com/guide/terminal/welcome/mac))\n\n### Setup \u0026 Run\n\n- Clone this repository\n- Install dependencies: `yarn install`\n- Setup env. variables:\n  - `APS_CLIENT_ID` - your APS application client ID\n  - `APS_CLIENT_SECRET` - your APS application client secret\n  - `APS_BUCKET` - APS bucket with designs to load and display\n- Run the server app: `yarn start`\n- Open the Unity project in the `unity/DesignPreview` subfolder\n- Run the Unity project; the dropdown in the UI should be populated with designs available in your configured bucket, and after selecting one of the designs from the dropdown the server will download the design, preprocess it, and finally load it into the 3D scene\n\n## Troubleshooting\n\nSubmit your question via [APS Support Form](https://aps.autodesk.com/en/support/get-help).\n\n## License\n\nThis sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT).\nPlease see the [LICENSE](LICENSE) file for more details.\n\n## Author\n\nPetr Broz ([@ipetrbroz](https://twitter.com/ipetrbroz)), Developer Advocate\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk-platform-services%2Faps-unity-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautodesk-platform-services%2Faps-unity-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk-platform-services%2Faps-unity-poc/lists"}