Coder Social home page Coder Social logo

petrbroz / forge-potree-demo Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 5.0 4.98 MB

Sample Autodesk Forge application showing the use of Potree pointclouds in the viewer.

License: MIT License

JavaScript 99.87% HTML 0.10% CSS 0.03%
forge-viewer autodesk-forge potree

forge-potree-demo's Introduction

forge-potree-demo

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

Screenshot

Usage

  • clone the repository
  • install Node.js dependencies: yarn install
  • configure the following 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 view
  • 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": {
                "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.

forge-potree-demo's People

Contributors

petrbroz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

forge-potree-demo's Issues

Scaling issue & resetting the pivot point

Great extension but I'm having an issue with keeping up the original position & scale of the point cloud & I couldn't find any prototype function that allows me to reset that, do you have any solution for this

Used with pointcloud 2.0

Hello
I need some help.
I am trying to add the pointlcoud 2.0's to a project with AutoDesk Forge Viewer that uses THREE 71.

I read the files well but the material is different for the THREE version and I get a figure with triangles and many blanks.

Capture

camera scale mismatch

There is a scale mismatch between the LMV camera and the Potree Camera, such that Potree is loading in too much detail (too many detailed tiles) even when the camera is far-far away.

Any clue how to calibrate the two ?

I tried changing to a perspective camera, but it still needs some serious tuning.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.