strange compass problems

  • Hi,

    i have sort of strange and difficult compass / map / aircompass / heading problem.
    i try to explain.

    I made a barebone example ONLY FOR IPAD:

    http://www.virtualtuur.com/krpano/compasstest2/

    so have a look, 3 pano's, radar on map is correct!
    aircompass is pointing to the right, real world, north in the first pano. But the photo is off. It points to hlookat 0.


    So... The photo and radar are right, to each other. The compass and aircompss are right to the real world.
    Easy you just say? Inthe next photo the deviation is different because of the zero of the photo.
    When i change heading, the radar is off...


    when i put 'header 180' the north on aircompass is right (real north) but not in the pano and radar. it's off.

    i played with numbers but can't get it.
    Also for the next pano's ths problem is even worse (same).

    So the north of the compass is not the 'north' (hlookat 0) of the photo.
    - when i put aircompass to the right point (north) in the photo, the absolute north is off
    - when i put aircompass to the right realworld north, the photo is off

    -so is there a deviation option in the compass plugin?
    -or how can i set a new header for each photo? (not sure if that makes sence)
    -can i change the photo hlookat just for aircompass. So aircompass thinks it's 0?

    as i didn't stitch with the north in the center these problems occure.

    problem 2 :

    when you put compass button and gyro button, so that they are both of. Then activate the gyro. all is fine.. but when you activate compass the gyro stops...


    edit;
    now i put the radar and the aircompass and the pano in the rigth possition. But still the compass.js takes a real north.

    here full code:

    Tuur *thumbsup*

  • ok really barebone

    http://www.virtualtuur.com/krpano/compasstest3/

    pano, radar and aircompass are right.
    How to synchronise with real world north?
    compass.js

    *confused*

    Full code:


    here you can see:
    radar and aircompas in combination with real north are ok. But the photo not..north is on like 55 degrees..

    http://www.virtualtuur.com/krpano/compasstest4/

    EDIT: I changed. radar, aircompass and photo are ok, but compass.js is 'off' (or the only one true.
    So both options (routes of settings) are not compatible. *unsure* *confused* *wacko*


    Tuur *cry*

  • This is not a related topic, but I have strange problems, too.
    I have tested the folowing code, and works very well in a just single pano.
    However, I can't understand why this does not work at multiple .


    <events name="aircompass" onviewchange="rotatecompass();" keep="true" />

    <hotspot name="fb" url="skin/fb.png" alpha="0.5" keep="ture" distorted="true" ath="0" atv="0" rx="0" ry="0" zorder="10" />
    <hotspot name="rl" url="skin/rl.png" alpha="0.5" keep="ture" distorted="true" ath="0" atv="0" rx="0" ry="0" zorder="10" />
    <hotspot name="ho" url="skin/ho.png" alpha="0.5" keep="ture" distorted="true" ath="0" atv="0" rx="0" ry="0" zorder="10" />

    <action name="rotatecompass">
    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));
    </action>
    I can't rememeber, but I have encountered similar situations several times.
    Are the environment different when a new scene has been loaded?

    Min

  • My problem is solved.

    now i have a new one.

    When i use aircompass in a tour, i have to include the aircompass.xml in every scene what makes the loading very slow..
    67 scenes

    is there an other way?

    Tuur *thumbsup*

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!