• Hi,
    I'm trying to use the compass plugin into a tour but with no success.
    I have obviously seen the example in the 'examples' section of this site but do not understand how to incorporate the files.

    Here's what I've tried:
    The compass files are in the main tour folder and I've put ' <included url="compass.xml"/>' in the main xml.
    compass.js is in the main tour folder and I've added '<script src="compass.js"></script>' in the tour.html file (I suspect this is where I'm going wrong....?)

    Everything is from the same build version of krpano (1.8.4) and my licence is up to date but I just get a black screen and after a while a message that shockwave plugin has stopped working.
    Without the above additions to the code, everything runs as it should.
    I'm testing locally in Chrome(fully updated) on OS X Yosomite version 10.10.5. (iMac)


    Off topic: There's only so far one can go with educating one's self through trial and error and I'm getting a bit fed up with bothering the community with requests like the one above which is obviously a problem concerning my ignorance rather than a system error! *wacko*
    So, can anyone point me to any good online coding courses?

    I know there are many tutorials/courses out there for all kinds of coding (html, js, css, jquery, xml etc), but I'm looking for something more specific to what we do here in krpano.
    The xml tutorials I've found bear little, or no, resemblance to the xml file that runs a tour.

    Any advice would be gratefully received.

    Thanks

    Kev

  • Hi,

    the compass.js is a very special plugin for iOS-only to get the real north direction of the device.

    And the compass.xml is a self-contained example and not intended or made for directly embedding into other examples.

    The compass there is basically build out of several images and where the one image will be rotated when the viewer rotates. In xml code this is done by using the onviewchange event and using the view.hlookat value to set the image rotation.

    The easiest way for learning should be looking at the xml code of the examples and searching the names and values from there here in the online reference:
    https://krpano.com/docu/xml/#top
    https://krpano.com/docu/actions/#top
    https://krpano.com/docu/quickref/#top

    Best regards,
    Klaus

  • Thanks Klaus,

    I have spent many hours looking through the documentation here on krpano. But, without some sort of background knowledge, there's a lot that I just can't make sense of.
    I am really looking for some sort of online course for beginners that specifically targets the type of coding we use.

    Got the compass sorted by the way.... cheers *thumbup*

Participate now!

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