Skip to content

APS/Unity Prototype:Prototype application used to preview Autodesk Platform Services models in Unity.

License

Notifications You must be signed in to change notification settings

autodesk-platform-services/aps-unity-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APS/Unity Prototype

platforms node.js npm license

Model Derivative

Prototype application allowing you to load and preview your Autodesk Platform Services models in Unity.

thumbnail

The sample code consists of two projects:

  • Simple Node.js server used to list 3D models in a pre-configured APS bucket, and convert the models into the glb format with meshopt compression. To enable picking, the conversion process also embeds 32-bit object IDs in the color channel of the output geometry.

  • Unity application that communicates with the Node.js server, and uses glTFast to load and preview the generated glb files. It includes a "pointer" game object that can identify whatever object it is pointing at by parsing the object ID from the color channel.

Development

Prerequisites

Setup & Run

  • Clone this repository
  • Install dependencies: yarn install
  • Setup env. variables:
    • APS_CLIENT_ID - your APS application client ID
    • APS_CLIENT_SECRET - your APS application client secret
    • APS_BUCKET - APS bucket with designs to load and display
  • Run the server app: yarn start
  • Open the Unity project in the unity/DesignPreview subfolder
  • 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

Troubleshooting

Submit your question via APS Support Form.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for more details.

Author

Petr Broz (@ipetrbroz), Developer Advocate

About

APS/Unity Prototype:Prototype application used to preview Autodesk Platform Services models in Unity.

Topics

Resources

License

Stars

Watchers

Forks