petrbroz / forge-potree-demo

Sample Autodesk Forge application showing the use of Potree pointclouds in the viewer.
MIT License
15 stars 5 forks source link
autodesk-forge forge-viewer potree

forge-potree-demo

Sample APS application showing the use of Potree pointclouds in the viewer.

Screenshot

Usage

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": {
                "APS_CLIENT_ID": "<your APS application client ID>",
                "APS_CLIENT_SECRET": "<your APS application client secret>",
                "APS_BUCKET": "<your APS bucket>"
            }
        }
    ]
}

Development

For more information about how the Potree data is loaded here, see public/scripts/potree/README.md.