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.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,151

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

1

Tuesday, June 12th 2012, 4:55pm

compass.js

hi,

i made a barebone example for the compass.js

i find it a bit stuttering still. Especialy when you look up.

look this on your ipad or iphone..

http://virtualtuur.com/krpano/compass_test/

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<krpano version="1.0.8" logkey="true" showerrors="true" onstart="loadscene(get(scene[0].name), null, MERGE);" >

<plugin name="gyroscope" 
        url="gyro.js" 
        keep="true"
        enabled="true"
        camroll="true"
        friction="0.5"
        velastic="0"
		devices="mobile|tablet"
        />


<plugin name="compass" devices="html5"
        url="compass.js"
		enabled="true"
		keep="true"
        onavailability="copy(view.hlookat, heading);"
		onchange="copy(view.hlookat, heading);"
		    />
		

			
		
<progress showwait="none"/>
<progress showload="none" />
		

<scene name="scene_tulp" title="tulp" onstart="" thumburl="">

		<view hlookat="0" vlookat="0" limitview="auto" fovtype="MFOV" fov="80" maxpixelzoom="1.0" fovmax="120" />

		<preview url="../../singlepublish/Tulpen-2011/Tulpen-2011.tiles/preview.jpg" />
		
	<image>
	<cube url="../../singlepublish/Tulpen-2011/Tulpen-2011.tiles/pano_%s.jpg" />
		<tablet>
			<cube url="../../singlepublish/Tulpen-2011/Tulpen-2011.tiles/tablet_%s.jpg" />
		</tablet>
		<mobile>
			<cube url="../../singlepublish/Tulpen-2011/Tulpen-2011.tiles/mobile_%s.jpg" />
		</mobile>
	</image>		
	
</scene>

</krpano>


- is it possible to make it smoother?
- is it possible to move the picture according to the north?

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

2

Wednesday, October 17th 2012, 6:04pm

thanks for bringing this up. indeed - looks a bit stuttering on iPhone.
I´d like to join the search for a fix.

is it the compass.js or the interaction of compass.js and gyro.js?

how can I help? who needs a donation in order to adress this problem?

Similar threads