Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the scripts without model-viewer as the exported ones #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ srcScanInformation | Exported cameras in xml file from Agisoft
src3D | 3D model in gltf file format
src2D | Path where all 2D images are located. Currently these must be in png format.
loadMeasurement | If this attribute is set, the viewer will try to load measurement data from the file `measurement.json` located in the same path as the GLTF file. See section [Measurements](#Measurements)
viewSettings | An object with additional settings to adjust the viewer. Currently, it may have a property `skyBoxImage` with an URL to the image to be used for the sky-box in the 3D viewer, and a method `async resolve2dFileURL(key: string)`, that resolves the identifier from the XML file to an URL of the 2D image.

## Measurements

Measurements can be downloaded as CSV or JSON from within the measurement tool. In conjunction with the attribute `loadMeasurement`, the JSON file can be used to annotate the 3D model.
Measurements can be downloaded as CSV or JSON from within the measurement tool. In conjunction with the attribute `loadMeasurement`, the JSON file can be used to annotate the 3D model.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "@ulb-darmstadt/photogrammetry-viewer",
"version": "0.0.10",
"type": "module",
"main": "dist/photogrammetry-viewer.js",
"module": "dist/photogrammetry-viewer.js",
"main": "dist/photogrammetry-without-modelviewer.js",
"module": "dist/photogrammetry-without-modelviewer.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/photogrammetry-viewer.js",
"require": "./dist/photogrammetry-viewer.js"
"import": "./dist/photogrammetry-viewer-without-modelviewer.js",
"require": "./dist/photogrammetry-without-modelviewer.js"
}
},
"files": [
Expand Down