0.0.3 • Published 3 months ago

@ulb-darmstadt/photogrammetry-viewer v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Photogrammetry-Viewer

npm i photogrammetry-viewer

This library provides an HTML web component that displays photogrammetric data. The component consists of a combined 3D and 2D viewer. For each view of the 3D model, the 2D image closest to the view is loaded. For this to be possible, the camera positions created during the photogrammetric calculations must be exported. At the moment only the xml format from Agisoft is accepted.

Basic usage

<html>
  <head>
    <!-- load viewer web component -->
    <script src="https://cdn.jsdelivr.net/npm/@ulb-darmstadt/photogrammetry-viewer/dist/photogrammetry-viewer.js" type="module"></script>
  </head>
  <body>
    <photogrammetry-viewer isYupTransformApplied
      srcScanInformation='http://localhost:8000/Leptinotarsa_decemlineata_NOKI_metashape_cameras.xml' 
      src3D = 'http://localhost:8000/Yup.gltf'
      src2D = 'http://localhost:8000/edof/'>
    </photogrammetry-viewer>
  </body>

</html>

Element data attributes

AttributeDescription
isYupTransformAppliedindicates whether a z-up to y-up coordinate transformation has been subsequently performed.
srcScanInformationExported cameras in xml file from Agisoft
src3D3D model in gltf file format
src2DFolder where all 2D images are located. Currently these must be in png format.