Scene viewer

From ElphelWiki
Revision as of 11:58, 5 October 2017 by Oleg (talk | contribs)
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).


Adjust position/orientation of loaded models

  • Load extra models
  • Enable mode