Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Photo to 3d: Creates 3d models from photos using Node.js

License

NotificationsYou must be signed in to change notification settings

Autodesk-Forge/reality.capture-nodejs-photo.to.3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlatformsNode.jsnpmLicense

Forge API:oAuth2Reality-Capture

Basic

Description

This sample illustrates theForge Reality Capture API's photogrammetry workflow:

  • Create a photo scene
  • Add photos to a scene
  • Generate a 3D mesh model
  • Obtain a download link for the model

Thumbnail

thumbnail

Setup

Prerequisites

  1. Forge Account: Learn how to create a Forge Account, activate subscription and create an app atthis tutorial;
  2. Node.Js and basic knowledge of JavaScript;
  3. Visual Studio Code or any other code editor.

For using this sample, you need an Autodesk developer credentials. Visit theForge Developer Portal, sign up for an account, thencreate an app. For this new app, usehttps://localhost:3000/api/forge/callback/oauth as Callback URL. Finally take note of theClient ID andClient Secret.

##Running locally

For localhost testing:

  • FORGE_CLIENT_ID and set it to above-mentionedClient ID
  • FORGE_CLIENT_SECRET and set it to above-mentionedClient Secret
  • FORGE_CALLBACK_URL and set it tohttps://localhost:3000/api/forge/callback/oauth
  1. Clone this project or download it. It's recommended to installGitHub desktop. To clone it via command line, use the following (Terminal on MacOSX/Linux,Git Shell on Windows):

     git clone https://github.com/Autodesk-Forge/reality.capture-nodejs-photo.to.3d.git
  2. Using the command line, go into newly createdreality.capture-nodejs-photo.to.3d folder (make sure sure that the current directory containspackage.json) and type:

     npm install

    to install all the dependencies.

  3. Using the command line, type

     node index.js

    to start the local server

  4. Open a browser and navigate to:

     http://localhost:3000

Deployment

To deploy this application to Heroku, theCallback URL for Forge must use your.herokuapp.com address. After clicking on the button below, at the Heroku Create New App page, set your Client ID, Secret and Callback URL for Forge.

Deploy

Watchthis video on how deploy samples toHeroku.

Further Reading

Documentation:

Tutorials:

Blogs:

Other samples:

License

This sample is licensed under the terms of theMIT License. Please see theLICENSE file for full details.

Written by

Eugene Chuaeugene.chua@autodesk.com

Updated By

About

Photo to 3d: Creates 3d models from photos using Node.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp