You are not logged in.

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.

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

1

Sunday, September 13th 2015, 12:08pm

compass

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

2

Tuesday, September 15th 2015, 11:20am

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:
http://krpano.com/docu/xml/#top
http://krpano.com/docu/actions/#top
http://krpano.com/docu/quickref/#top

Best regards,
Klaus

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

3

Wednesday, September 16th 2015, 1:35pm

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*