Sample Autodesk Forge application showing the use of Potree pointclouds in the viewer.
- clone the repository
- install Node.js dependencies:
yarn install
- configure the following env. variables:
FORGE_CLIENT_ID
- your Forge application client IDFORGE_CLIENT_SECRET
- your Forge application client secret
- run the serve:
yarn start
When using Visual Studio Code, consider adding the following configuration to your .vscode/launch.json:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Server",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/server.js",
"env": {
"FORGE_CLIENT_ID": "<your Forge application client ID>",
"FORGE_CLIENT_SECRET": "<your Forge application client secret>"
}
}
]
}
For more information about how the Potree data is loaded here, see public/scripts/potree/README.md.