Sie sind nicht angemeldet.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

1

Dienstag, 12. Juni 2012, 16:55

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/

Quellcode

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*

2

Mittwoch, 17. Oktober 2012, 18:04

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?

Ähnliche Themen