Hi,
maybe i overlook something but i have a strange problem.
I use the new 'default' interface code and want the gyro to be enabled from the start.
I also have this nadirlogo that does not turn with the pano.
and i made a button to switch the gyro enabled..
added code for nadir:
<events onviewchange="if(hotspot[nadirlogo].rotatewithview, set(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
/>
<hotspot name="nadirlogo"
url="../skin/nadirlogo.png"
ath="0"
atv="90"
distorted="true"
scale="1"
rotate="0.0"
rotatewithview="true"
keep="true"
enabled="false"
/>
Alles anzeigen
check on iPad!
- http://www.virtualtuur.com/krpano/gyro/2/
gyroscope enabled="true" but the switch button does not work (?)
- http://www.virtualtuur.com/krpano/gyro/3/
gyroscope enabled="false" (not what i want).... but every thing seems to work nice
- http://www.virtualtuur.com/krpano/gyro/4/
deleted : <events onviewchange="if(hotspot[nadirlogo].rotatewithview, set(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
/>
everything works nice but nadir logo does not turn off course
- http://www.virtualtuur.com/krpano/gyro/5/
same as last one friction set to 0.75 seems ok (nadir does not turn offcourse)
- http://www.virtualtuur.com/krpano/gyro/6
activated: <events onviewchange="if(hotspot[nadirlogo].rotatewithview, set(hotspot[nadirlogo].rotate,get(view.hlookat)) );"
/>
friction set to 0.75 ... now the pano turn 360 degrees when you turn ipad 180 degrees..
So, i thought friction has to do something with the smoothness of the reaction of the gyro..
it seems that the onviewchange makes big problems..
anybody?
Tuur