Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
This post has been edited 1 times, last edit by "Tuur" (Jan 16th 2012, 11:47pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<!-- events - show a compass --> <events onviewchange=" sub(hfbang,0,get(view.hlookat)); set(hotspot[fb].ath,get(view.hlookat)); set(hotspot[fb].atv,get(view.vlookat)); set(hotspot[fb].rx,get(view.vlookat)); set(hotspot[fb].ry,get(hfbang)); sub(hrlang,90,get(view.hlookat)); set(hotspot[rl].ath,get(view.hlookat)); set(hotspot[rl].atv,get(view.vlookat)); set(hotspot[rl].rx,get(view.vlookat)); set(hotspot[rl].ry,get(hrlang)); add(vhoang,-90,get(view.vlookat)); set(hotspot[ho].ath,get(view.hlookat)); set(hotspot[ho].atv,get(view.vlookat)); set(hotspot[ho].rx,get(vhoang)); " /> |
It completed now.
"aircompass" can be moved simultaneously with a gyroscope.
http://www.dowjow.com/panorama/2012pano/…aircompass.html
I would like to harness this result in movement of panorama tour.
・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・
Thank you MR.Tuur
Please wait a little longer about public presentation.
|
|
Source code |
1 2 3 4 5 |
<plugin name="compass" devices="html5"
url="compass.js"
onavailability="copy(view.hlookat, heading);"
onchange=""
/>
|
This post has been edited 2 times, last edit by "Tuur" (Jun 7th 2012, 4:20pm)

|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<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);"
/>
|
This post has been edited 1 times, last edit by "Tuur" (Jun 7th 2012, 7:37pm)