Difference between revisions of "Scene viewer"

From ElphelWiki
Jump to: navigation, search
(Created page with "==<font color="blue">Description</font>== View 3D models made by [https://blog.elphel.com/2017/09/long-range-multi-view-stereo-camera-with-4-sensors/ 4-sensor stereo camera (3...")
 
 
(4 intermediate revisions by the same user not shown)
Line 33: Line 33:
 
   <model name='1502241323_909309' 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>
 
  </Document>
 +
[[File:Sv menu.png|thumb|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 ===
 +
[[File:Sv load extra models.png|thumb|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 ===
 
=== Adjust position/orientation of loaded models ===
* Load extra models
 
  
* Enable mode
+
* 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
 +
 
 +
{|
 +
|valign='top'|[[File:Sv mpr dialog2 a.png|thumb|500px|Fig.3 Loaded extra models dialog]]
 +
|valign='top'|[[File:Sv settings 3.png|thumb|400px|Fig.4 Settings]]
 +
|}

Latest revision as of 11:27, 5 October 2017

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