Sie sind nicht angemeldet.

1

Sonntag, 17. November 2013, 21:15

Animierter Hotspot bewegt sich falsch

Hallo zusammen
Bin gerade am Testen eines animierten Hotspots (oder auch Chrono-Panorama).
Das Ganze basiert auf der Idee, die Hotspots zu überblenden, das Script habe ich auf dem Forum gefunden.
Nun habe ich aber das Problem, dass sich der Hotspot teilweise nicht verschiebt, wenn ich mich im Pano bewege.
Kennt jemand das Problem und weiss eine Lösung? Oder gibts eine Alternative? (Das Skript ist eben praktisch, da es mit Sequenzen arbeitet und keine Bildnnamen eingegeben werden müssen)

Das Beispiel ist unter
http://virtualdesignunit.com/peclard/panos/hotel/index.php

XML Code sieht folgendermassen aus:

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
48
49
50
51
52
53
<krpano onstart="go();" fov="50.0">
    		<view hlookat="0" vlookat="0" maxpixelzoom="1.0" fovmax="150" limitview="auto"  fov="65.0" />

    	<action name="go">
        	
       	animate('feuer', 'set1_', 4, 1 , 0.3, -103.5276073619632, 1.533742331288344, 194.7852760736196, 154.9079754601227); 
    	</action>
    	<image> 
        	<left url="pano1.tiles/pano_l.jpg" /> 
        	<front url="pano1.tiles/pano_f.jpg" /> 
        	<right url="pano1.tiles/pano_r.jpg" /> 
        	<back url="pano1.tiles/pano_b.jpg" /> 
        	<up url="pano1.tiles/pano_u.jpg" /> 
        	<down url="pano1.tiles/pano_d.jpg" /> 
        	
    	</image> 
    	<action name="animate"> 
    	
        	addhs("%1f", %6, %7, %8, %9, 0, 0, 2); 
        	addhs("%1b", %6, %7, %8, %9, 0, 0, 1);
        	
        	delayedcall(%4, reloop("%1f","%1b",%2,%3,%4,%5,0));
       	
    	</action> 
    	<action name="addhs"> 
        	addhotspot(%1); 
        	set(hotspot[%1].ox, %2); 
        	set(hotspot[%1].oy, %3); 
        	set(hotspot[%1].width, %4); 
        	set(hotspot[%1].height, %5); 
        	set(hotspot[%1].ath, %6); 
        	set(hotspot[%1].atv, %7); 
        	set(hotspot[%1].zorder, %8); 
        	set(hotspot[%1].enabled, false); 
        	set(hotspot[%1].distorted, true); 
        	set(hotspot[%1].edge, "lefttop");
        	
          	
    	</action> 

    	<action name="reloop"> 
         	
        	set(hotspot[%1].alpha, 0); 
        	set(hotspot[%1].url, "%3%7.jpg"); 
        	tween(hotspot[%1].alpha, 1.0, %6, linear, set(hotspot[%2].url, "%3%7.jpg") ); 
        	set(hotspot[%1].i, %7); 
        	inc(hotspot[%1].i); 
        	if(hotspot[%1].i EQ %4, set(hotspot[%1].i, 0););
        	delayedcall(%5, reloop(%1,%2,%3,%4,%5,%6,get(hotspot[%1].i))); 
          	
    	</action> 
  
</krpano>