https://github.com/petrbroz/forge-unity-poc
Prototype application used to preview Autodesk Forge models in Unity.
https://github.com/petrbroz/forge-unity-poc
Last synced: 6 months ago
JSON representation
Prototype application used to preview Autodesk Forge models in Unity.
- Host: GitHub
- URL: https://github.com/petrbroz/forge-unity-poc
- Owner: petrbroz
- Created: 2022-07-04T15:56:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-04T15:56:36.000Z (over 3 years ago)
- Last Synced: 2025-02-17T20:41:48.759Z (8 months ago)
- Language: ShaderLab
- Size: 1.89 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# forge-unity-poc
Prototype application allowing you to load and preview your [Autodesk Forge](https://forge.autodesk.com) models in Unity.

The sample code consists of two projects:
- Simple Node.js server used to list 3D models in a pre-configured Forge bucket, and convert the models
into the glb format with [meshopt](https://github.com/zeux/meshoptimizer/blob/master/gltf/README.md) 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](https://github.com/atteneder/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.