Scene viewer

From ElphelWiki
Jump to: navigation, search

Description

View 3D models made by 4-sensor stereo camera (393)

Working with multiple models

Enable extra models for the current scene

Done manually, must have write access to the server.

  • Add extra.xml to the model root folder, example:
models
└── 1502241339_511232
    ├── 1502241339_511232.kml
    ├── extra.xml
    ├── marks.xml
    ├── rating.txt
    ├── thumb.jpeg
    └── v1/
  • Edit, example:
<?xml version="1.0" encoding="UTF-8"?>
<Document>
  <model name='1502241144_558169' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241192_370517' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241208_379788' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241221_790020' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241238_215143' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241251_555958' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241264_932252' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241277_133145' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241291_000749' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241305_924517' version='v1' translation='0,0,0' rotation='0,0,0'></model>
  <model name='1502241323_909309' version='v1' translation='0,0,0' rotation='0,0,0'></model>
</Document>
Fig.1 Load extra models button

where,

name - model name which, also a part of the path: models/model-name

version - model version, also a part of the path: models/model-name/version

After creating extra.xml - reload the viewer with the current model opened - a new button for loading extra models will appear in the top right corner - with the white + (see Fig.1).

Load extra models

Fig.2 Load models dialog
  • Click on the adding button
  • Select the models of interest
  • Press Load, click in the gray window area to close - there might be lagging while models are being loaded.

Adjust position/orientation of loaded models

  • Enable mode:
    • Menu > check Edit mode' > check Position and orientation dialog > close
  • Select a pair of overlapping models:
    • r1 - the one that will be rotated but will appear as not moving. Select a newly loaded model (e.g. 1502241323_909309).
    • r2 - will not be rotated but will appear as moving. Select the model that was loaded earlier (e.g. 1502241339_511232).
    • ctrl+left-click - place/remove a pair of marks, save marks when done.
    • shift-key - pressing while rotating alternates the displayed models
    • save kmls - updates all kmls in the list
Fig.3 Loaded extra models dialog
Fig.4 Settings