iphone4 gyroscope plugin

  • I just replaced all my krpano files and now it seems to work. I was sure they all were up to date but apparently they were not. Thanks for your help and sorry for the trouble. *smile*

    0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

  • Thx for the Gyro-Support. Works perfect!

    I got the Problem, that when i put the iPad on a table it always shows the Nadir of my panorama and that is ugly.
    Is there any possible solution that the gyro works only at s certain degree? Or when the gyro doesn't move, it shows a defined view.
    Would be nice.

    Thanks for the good work!

    Greets.

  • Thanks.
    I've tried it like this on a Button in JS:

    Code
    var krpano = document.getElementById("krpanoSWFObject");
    	 krpano.set("gyro.enabled", "false");

    Is this the right way?
    Thanks in advance.

  • Since the gyro plugin is now a "proper" plugin, there is no longer a global "gyro" object. Instead you access its properties like any other object.
    So if you use this to include the plugin in your xml...

    Code
    <plugin name="mygyro" src="gyro.js" />


    ...you would use this from your js:

    Code
    var krpano = document.getElementById("krpanoSWFObject");
    krpano.set("plugin[mygyro].enabled", "false");
  • I am total novice, can't figure out how to make gyro.js plugin to work, please help! What I understand from reading posts in this thread, that I need to place the following code:

    Code
    <plugin name="gyro"  url="gyro.js"  keep="true" enabled="true" camroll="false" friction="0.5" velastic="0"
    />

    Question is, where does it go? Inside the html document or the xml document? Also where in the document does it go (after what code, before what code should I place the above code)?

    "gyro.js" plugin is in the root directory of the pano, along with the html, xml and the pano.swf files.

    Thanks in advance

  • Hi VN2011, thanks for replying

    I did what you said, iserted the code just before </krpano>. when I try in my iPad2 it says

    "ERROR: plugin[gyro] loading error: gyro.js

    I am using latest version of krpanotools (krpanotools-1.0.8.12-mac64-2010-11-24) and gyro.js (creation date June 2nd, 2011)

    any idea?

  • Here is my folder structure:

    and here is the xml:

    But it is not working!!!

    Please help!

    TIA

  • I have not tested this, but try setting control.usercontrol to "off"

    Code

    I tried to put this in the XML, but did not work. Do i need to change the gyro.JS file?

    <plugin name="gyro" url="gyro.js" keep="true" enabled="true" camroll="true" friction="0.5" velastic="0.2" control usercontrol="off"/>
    <plugin name="gyro" url="gyro.js" keep="true" enabled="true" camroll="true" friction="0.5" velastic="0.2" usercontrol="off"/>

  • works great, now my next wall is getting a hotspot to activate no user control.

    I have failed on getting this to function.

    Thanks for the help you all!

    -Zack

    I got it, for anyone interested.

    onclick="set(control.usercontrol,off)"

    Edited once, last by zackyd (October 2, 2011 at 7:46 AM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!