You are not logged in.

1

Tuesday, December 8th 2015, 10:37am

Polygon Hotspots disappearing on load

I have edited a virtual tour to include the slide-blend-cubes slider, my problem is when Include this option any polygon hotspots appear then once the pano loads they disappear. When moving the slider the polygon fades in slightly, so it is there??

Any ideas anyone? I have tried adding zorder but nothing seems to work.


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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<scene name="scene_1" title="1" onstart="updateradar();start();" lat="" lng="" heading=""> 
<action name="updateradar"> 
set(layer[activespot].parent, mapspot1); 
set(layer[radar].parent, mapspot1); 
set(layer[radar].heading, -90); 
</action> 
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" /> 
<include url="xml_plugins/compass/compass.xml" /> 
<hotspot name="temp_spot" visible="true" url="skin/x.png" scale="0.5" ath="0" atv="0" ondown="draghotspot();" zorder="1"></hotspot> 
<hotspot name="hs1" visible="true" zorder="11" fillcolor="0xaaaaaa" fillalpha="0.5" borderwidth="2.0" bordercolor="0xff0000" borderalpha="1.0" > 
<point ath="0" atv="0"/> 
<point ath="-49.919787" atv="-5.83232"/> 
<point ath="-49.919787" atv="-5.83232"/> 
</hotspot> 


<image> 
<cube url="panos/1.tiles/pano_colour_%s.jpg" /> 
</image> 
<action name="addface"> 
addhotspot(%1); 
set(hotspot[%1].url, %2); 
set(hotspot[%1].ath, %3); 
set(hotspot[%1].atv, %4); 
set(hotspot[%1].zorder, 0); 
set(hotspot[%1].width, 1000); 
set(hotspot[%1].height, 1000); 
if(device.html5, if(device.desktop, 
<!-- desktop html5 browsers need overlapping cube faces --> 
set(hotspot[%1].width, 1002); 
set(hotspot[%1].height, 1002); 
)); 
set(hotspot[%1].distorted, true); 
set(hotspot[%1].enabled, false); 
if(isflash, set(hotspot[%1].visible, false)); 
set(hotspot[%1].alpha, 0.0); 
set(hotspot[%1].details, 16); 
</action> 
<action name="addcube"> 
addface(face_%1_F, 'panos/1.tiles/%1_f.jpg', 0, 0); 
addface(face_%1_L, 'panos/1.tiles/%1_l.jpg', -90, 0); 
addface(face_%1_R, 'panos/1.tiles/%1_r.jpg', +90, 0); 
addface(face_%1_B, 'panos/1.tiles/%1_b.jpg', +180, 0); 
addface(face_%1_Z, 'panos/1.tiles/%1_u.jpg', 0, -90); 
addface(face_%1_N, 'panos/1.tiles/%1_d.jpg', 0, +90); 
</action> 
<action name="setalpha" devices="flash"> 
set(%1.alpha, %2); 
if(%1.alpha == 0.0, set(%1.visible,false), set(%1.visible,true)); 
</action> 

<action name="setalpha" devices="html5"> 
<!-- safari has some framerate stops/problems when toggling the visibility - so keep here the spots always visible --> 
set(%1.alpha, %2); 
</action> 


<action name="setcubealpha"> 
setalpha(hotspot[face_%1_F], %2); 
setalpha(hotspot[face_%1_L], %2); 
setalpha(hotspot[face_%1_R], %2); 
setalpha(hotspot[face_%1_B], %2); 
setalpha(hotspot[face_%1_Z], %2); 
setalpha(hotspot[face_%1_N], %2); 
</action> 


<action name="start"> 
addcube(pano_mono); 
addcube(pano_colour); 
setblend(0); 
</action> 


<action name="setblend" devices="flash"> 
sub(blend2, 1.0, %1); 
setcubealpha(pano_mono, get(blend2)); 
setcubealpha(pano_colour, %1); 
</action> 

<action name="setblend" devices="html5"> 
set(blend1, %1); 
sub(blend2, 1.0, %1); 
copy(hotspot[face_pano_mono_F].alpha, blend1); 
copy(hotspot[face_pano_mono_L].alpha, blend1); 
copy(hotspot[face_pano_mono_R].alpha, blend1); 
copy(hotspot[face_pano_mono_B].alpha, blend1); 
copy(hotspot[face_pano_mono_Z].alpha, blend1); 
copy(hotspot[face_pano_mono_N].alpha, blend1); 
copy(hotspot[face_pano_colour_F].alpha, blend2); 
copy(hotspot[face_pano_colour_L].alpha, blend2); 
copy(hotspot[face_pano_colour_R].alpha, blend2); 
copy(hotspot[face_pano_colour_B].alpha, blend2); 
copy(hotspot[face_pano_colour_Z].alpha, blend2); 
copy(hotspot[face_pano_colour_N].alpha, blend2); 

</action> 

<action name="show_add_item"> 
if(layer[target_spot].visible == false, 
set(layer[target_spot].visible, true); 
, 
set(layer[target_spot].visible, %1); 
); 
</action> 

</scene>

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Tuesday, December 8th 2015, 3:47pm

Try using

Source code

1
zorder2="1.0"
to make polygonal spots above the distorted spots (cubefaces).

Read here: http://krpano.com/docu/xml/#hotspot.zorder2

I guess, this must work.
Regards,

Alexey

3

Wednesday, December 9th 2015, 12:28pm

Unfortunately that didn't work, normal hotspots appear above already, it is just the polygon hotspot that appears then dissapears.

I tried adding zorder2 to the polygon hotspot, but no luck

4

Monday, December 21st 2015, 11:13am

Anyone got any other ideas on this one?

5

Wednesday, December 23rd 2015, 9:09am

Do you have a link to your example?

6

Friday, January 15th 2016, 11:54am

Klaus

Still working on it on a testing server at the moment, but I added a line into the demo slider and it does the same

https://www.starnetisite.com/krtest/slider.html

The line appears but when you move the slider it dissappears.

Thanks

benji33

Intermediate

Posts: 244

Location: France

Occupation: Senior Software engineer

  • Send private message

7

Monday, January 18th 2016, 9:30am

Keep attribute is set to true on the line ?

8

Monday, January 18th 2016, 10:50am

I've added the Keep attribute to the line but still no joy...

9

Tuesday, January 19th 2016, 9:03pm

Hi,

add a zorder setting to your polygonal hotspot to move it above the 'pano hotspots' - e.g. see:
https://www.starnetisite.com/krtest/slid…line1].zorder=1

Best regards,
Klaus

10

Wednesday, January 20th 2016, 10:53am

Thanks Klaus

This works in fine this example, but in my virtual tour I already have a zorder on the lines, and my lines are still fading out.

11

Thursday, January 21st 2016, 10:57am

Do you have a link to your tour?

12

Thursday, January 21st 2016, 1:43pm

Klaus

Below is a link to the tour, I'm having trouble with

https://www.starnetisite.com/krtest/main_panoramic.html

Thanks

Tuur

Sage

Posts: 3,839

Location: Netherlands

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

  • Send private message

13

Thursday, January 21st 2016, 4:02pm

Hi,

Funny to see you also working on measurements, i think (?).
We already have this working, measure real life distance/sizes from panos.
Very nice. Curious where you will go with this and how.
Please get us updated.

I'll have a look in the code.

edit:

i see this:

Source code

1
2
3
4
<hotspot name="line145" polyline="true" zorder="1" enabled="false" group="measurements" visible="true" keep="true" fillcolor="0xaaaaaa" fillalpha="0.5" borderwidth="2.0" bordercolor="0xff0000" borderalpha="1.0" >
	<point ath="-23.112682330144196" atv="23.811584008357385" />
	<point ath="-8.193024782834982" atv="28.757984957828022" />
</hotspot>


can you set that to zorder2="10" or so and let us see with clean cache?

not sure but i think:
http://www.krpano.com/forum/wbb/index.ph…57404#post57404

*cry*

Tuur *thumbsup*

This post has been edited 1 times, last edit by "Tuur" (Jan 21st 2016, 4:18pm)