项目作者: moritzsalla
项目描述 :
React + threejs + GLTFLoader boilerplate
高级语言: JavaScript
项目地址: git://github.com/moritzsalla/photogrammetry-threejs-boilerplate.git
Photogrammerty three.js Boilerplate
Building a model in Regard3d

This should take ~40 min. Duration is highly dependent on your computers performance and the amount of images you take.
Instructions
- Take 20–50 pictures. When taking pictures, move by small amount around your scene. Wide angle lenses work best.
- Download Regard3d : https://sourceforge.net/projects/regard3d/files/latest/download
- Create a new project
- Import your images (for some cameras, sensor width (not diagonal) and focal length needs to be set manually. If you don’t know it, you can search for it on google)
- Please select these settings
- Compute Matches Stage

- Triangulation Stage

- Surface Generation Stage

- Export as .obj (this generates .pngs, and obj and an mtl file)
- Dump all files here: https://www.creators3d.com/online-viewer
- Under optimizations, turn on image, mesh and „compress as png“.
- Download GLB
- Upload the .glb file here with your name in the title: https://drive.google.com/drive/folders/1xkkB2qXrySHoB-rO1nPJrzq1p-QvHMDm?usp=sharing.
Troubleshooting
- If it takes too long to compute, try less images and/or less depth at the surface generation stage
- There’s no .mtl file: you likely forgot to check „textures“ during step 5.3.
- Contact me here: moritz.salla@hotmail.de
Running the app
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.