hi,
i made a barebone example for the compass.js
i find it a bit stuttering still. Especialy when you look up.
look this on your ipad or iphone..
http://virtualtuur.com/krpano/compass_test/
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<krpano version="1.0.8" logkey="true" showerrors="true" onstart="loadscene(get(scene[0].name), null, MERGE);" >
<plugin name="gyroscope"
url="gyro.js"
keep="true"
enabled="true"
camroll="true"
friction="0.5"
velastic="0"
devices="mobile|tablet"
/>
<plugin name="compass" devices="html5"
url="compass.js"
enabled="true"
keep="true"
onavailability="copy(view.hlookat, heading);"
onchange="copy(view.hlookat, heading);"
/>
<progress showwait="none"/>
<progress showload="none" />
<scene name="scene_tulp" title="tulp" onstart="" thumburl="">
<view hlookat="0" vlookat="0" limitview="auto" fovtype="MFOV" fov="80" maxpixelzoom="1.0" fovmax="120" />
<preview url="../../singlepublish/Tulpen-2011/Tulpen-2011.tiles/preview.jpg" />
<image>
<cube url="../../singlepublish/Tulpen-2011/Tulpen-2011.tiles/pano_%s.jpg" />
<tablet>
<cube url="../../singlepublish/Tulpen-2011/Tulpen-2011.tiles/tablet_%s.jpg" />
</tablet>
<mobile>
<cube url="../../singlepublish/Tulpen-2011/Tulpen-2011.tiles/mobile_%s.jpg" />
</mobile>
</image>
</scene>
</krpano>
|
- is it possible to make it smoother?
- is it possible to move the picture according to the north?
Tuur