Hallo Gemeinde,
habe jetzt mal das Gyroskop-Plugin in einem Pano umgesetzt aber leider gibt es massive Probleme.
Sobald das Pano geladen wird schwenkt der Blickwinkel zum Nadir-Bild und fängt an sich zu drehen. Autorotation habe ich keine integriert.
Hier mal mein einfacher Code:
Code
<krpano version="1.0.8" onstart="startup();">
<action name="startup">
<!-- load the first scene -->
loadscene(get(scene[0].name), null, MERGE);
</action>
<view hlookat ="-40"
vlookat ="0"
/>
<plugin name="gyro"
url="gyro.js"
enabled="true"
camroll="false"
friction="0.5"
velastic="0.2"
devices="html5"
keep="true" />
<!-- Szene Buero Start -->
<scene name="buero" title="buero" onstart="" thumburl="../images/Wohnung/Buero.tiles/thumb.jpg">
<preview type="CUBESTRIP" url="../images/Wohnung/Buero.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="1000">
<level tiledimagewidth="1000" tiledimageheight="1000">
<left url="../images/Wohnung/Buero.tiles/pano_l_%0v%0h.jpg" />
<front url="../images/Wohnung/Buero.tiles/pano_f_%0v%0h.jpg" />
<right url="../images/Wohnung/Buero.tiles/pano_r_%0v%0h.jpg" />
<back url="../images/Wohnung/Buero.tiles/pano_b_%0v%0h.jpg" />
<up url="../images/Wohnung/Buero.tiles/pano_u_%0v%0h.jpg" />
<down url="../images/Wohnung/Buero.tiles/pano_d_%0v%0h.jpg" />
</level>
<!-- mobile phone / iphone images -->
<mobile>
<left url="../images/Wohnung/Buero.tiles/mobile_l.jpg" />
<front url="../images/Wohnung/Buero.tiles/mobile_f.jpg" />
<right url="../images/Wohnung/Buero.tiles/mobile_r.jpg" />
<back url="../images/Wohnung/Buero.tiles/mobile_b.jpg" />
<up url="../images/Wohnung/Buero.tiles/mobile_u.jpg" />
<down url="../images/Wohnung/Buero.tiles/mobile_d.jpg" />
</mobile>
<!-- tablet pc / ipad images -->
<tablet>
<left url="../images/Wohnung/Buero.tiles/tablet_l.jpg" />
<front url="../images/Wohnung/Buero.tiles/tablet_f.jpg" />
<right url="../images/Wohnung/Buero.tiles/tablet_r.jpg" />
<back url="../images/Wohnung/Buero.tiles/tablet_b.jpg" />
<up url="../images/Wohnung/Buero.tiles/tablet_u.jpg" />
<down url="../images/Wohnung/Buero.tiles/tablet_d.jpg" />
</tablet>
</image>
</scene>
<!-- Szene Buero Ende -->
</krpano>
Display More
Aktuellste Version der krpanotools (1.0.8.14) sind runtergeladen und auf dem Server!
Hab mit sämtlichen Parametern von gyro rumgespielt aber immer schwenkt der Blick nach unten und rotiert.
Weiß jemand Rat?
Danke für euer Hilfe!
Grüße
Matthias