You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2013-01-14 09:20:07

Pheliciano
Member
Registered: 2012-09-26
Posts: 13

Hotspot on hotspot action

I have a pano where I'm using a polygon hotspot to highlight a building when a user moves their mouse over it, with a tooltip of the name of the building. I then have several hotspots on the building that I need to be able to click on to link to images.

The problem is that the polygon hotspot seems to effectively mask the other hotspots. Is there a way to make the other hotspots sit "higher" than the polygon hotspot so that they can be clicked on? Sort of as if they were on a layer above?

Thanks.

Offline

 

#2 2013-01-14 12:34:23

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9815
Website

Re: Hotspot on hotspot action

Pheliciano wrote:

I have a pano where I'm using a polygon hotspot to highlight a building when a user moves their mouse over it, with a tooltip of the name of the building. I then have several hotspots on the building that I need to be able to click on to link to images.

The problem is that the polygon hotspot seems to effectively mask the other hotspots. Is there a way to make the other hotspots sit "higher" than the polygon hotspot so that they can be clicked on? Sort of as if they were on a layer above?

Thanks.

It works for me using PTP 1.8 on Windows XP/32.

I drew the polygon hotspot first and then added point hotspots on top.

In what order did you create the hotspots?  I suspect the Z-order may depoend on the order in which you create the hotspots?


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#3 2013-01-16 06:18:00

Pheliciano
Member
Registered: 2012-09-26
Posts: 13

Re: Hotspot on hotspot action

That works to some extent, but it's still not working reliably.

I have one pano with a polygon hotspot which has 4 regular hotspots sitting on top of it. I created the polygon hotspot first and then the regular hotspots. When I publish the tour, one of the hotspots still sits "under" the polygon hotspot, making it unusable. This is where it gets interesting. If I then delete that hotspot, recreate it and then re-publish the tour it fixes that hotspot, but moves one of the other hotspots "under" the polygon hotspot.

If I continue to delete and recreate the hotspots as they are affected, the problem simply moves around each of the hotspots one by one in the order they were created, with one hotspot always sitting under the polygon hotspot. The same occurs when I delete one hotspot so there are a total of 3 regular hotspots over the polygon hotspot. However, if I reduce that to two regular hotspots, the problem is resolved

Is there a way of forcing the z-order of hotspots to ensure that the polygon hotspot always sits at the bottom?

Offline

 

#4 2013-01-16 10:46:13

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9815
Website

Re: Hotspot on hotspot action

Pheliciano wrote:

Is there a way of forcing the z-order of hotspots to ensure that the polygon hotspot always sits at the bottom?

Did you have a look at the XML files - I expect you'll spot an attribute for Z-order.


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#5 2013-01-16 11:58:14

Pheliciano
Member
Registered: 2012-09-26
Posts: 13

Re: Hotspot on hotspot action

There was nothing directly in teh XML created by panotour, but I managed to fix this after checking out the XML reference page on the KRpano site.

For anyone else having this issue, you need to add zorder="n" to each hotspot tag, where n is equal to the level you want the hotspot to sit.

Thanks for the help Mediavets!

Offline

 

#6 2013-01-21 14:02:20

panorama-reklame.de
Member
From: Berlin
Registered: 2012-03-07
Posts: 33
Website

Re: Hotspot on hotspot action

I have the same problem. Please look here on the virtual gallery.
picture number 8
Where I must add zorder="n"?

Thanks


<!--************** Hotspots und Lensflares ****************************************************-->
    <hotspot name="spot0" handcursor="false" bordercolor="0xffffff" borderalpha="1" fillcolor="0xffffff" fillalpha="0.25098" bordercolorhover="0xffffff" borderalphahover="1" fillcolorhover="0xffffff" fillalphahover="0.25098" alturl="virtualtourdata/graphics/spots/spot0.png" altscale="1.0" frame="0" lastframe="19" frameheight="64" framewidth="64" altonloaded="set(crop,0|0|64|64);set(stopSequence,false);animate(spot0,0.1);" ath="86.4552" atv="1.35402" width="64" height="64">
        <point ath="34.709" atv="-1.66805"/>
        <point ath="138.4" atv="-1.90409"/>
        <point ath="138.4" atv="4.61213"/>
        <point ath="34.5103" atv="3.60996"/>
    </hotspot>
    <hotspot name="spot1" handcursor="false" bordercolor="0xffffff" borderalpha="1" fillcolor="0xffffff" fillalpha="0.25098" bordercolorhover="0xffffff" borderalphahover="1" fillcolorhover="0xffffff" fillalphahover="0.25098" alturl="virtualtourdata/graphics/spots/spot0.png" altscale="1.0" frame="0" lastframe="19" frameheight="64" framewidth="64" altonloaded="set(crop,0|0|64|64);set(stopSequence,false);animate(spot1,0.1);" ath="-83.4193" atv="0.0983914" width="64" height="64" onhover="showtext(acryle);">
        <point ath="-149.441" atv="-2.85335"/>
        <point ath="-17.3976" atv="-1.39633"/>
        <point ath="-17.3976" atv="2.41185"/>
        <point ath="-149.413" atv="3.05013"/>
    </hotspot>
    <hotspot name="spot2" onclick="closeallobjects();set(plugin[spot2object].visible,true);tween(plugin[spot2object].alpha, 1);" url="virtualtourdata/graphics/spots/spot1.jpg" onhover="showtext(le baiser);" distorted="true" ath="-141.175" atv="0.152849" width="75" height="40" rx="-0.487683" ry="51.3979" rz="0.750923"/>
    <plugin name="spot2object" visible="false" url="virtualtourdata/graphics/spots/object0.jpg" align="center" alpha="0" onclick="closespot2object();" width="746" height="600"/>
    <action name="closespot2object">
        if(plugin[spot2object].visible,
        tween(plugin[spot2object].alpha, 0);
        delayedcall(0.5,set(plugin[spot2object].visible,false));
        );
    </action>
    <hotspot name="spot3" onclick="closeallobjects();set(plugin[spot3object].visible,true);tween(plugin[spot3object].alpha, 1);" url="virtualtourdata/graphics/spots/spot2.jpg" onhover="showtext(on the road);" distorted="true" ath="-133.393" atv="0.232875" width="80" height="47" rx="0.735133" ry="41.3579" rz="-0.317696"/>
    <plugin name="spot3object" visible="false" url="virtualtourdata/graphics/spots/object1.jpg" align="center" alpha="0" onclick="closespot3object();" width="896" height="600"/>
    <action name="closespot3object">
        if(plugin[spot3object].visible,
        tween(plugin[spot3object].alpha, 0);
        delayedcall(0.5,set(plugin[spot3object].visible,false));
        );

Offline

 

#7 2013-01-21 14:22:06

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9815
Website

Re: Hotspot on hotspot action

panorama-reklame.de wrote:

I have the same problem. Please look here on the virtual gallery.
picture number 8
Where I must add zorder="n"?

zorder is a hotspot attribute so I think you would add these attributes along with other attributes for each hostpot.

Where"n" is an integer that determines the zorder of each hotspot.


Uploaded Images

Last edited by mediavets (2013-01-21 14:22:33)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#8 2013-01-21 15:46:57

panorama-reklame.de
Member
From: Berlin
Registered: 2012-03-07
Posts: 33
Website

Re: Hotspot on hotspot action

thanks mediavets, but it´s wrong. You have another idea?

Offline

 

#9 2013-01-21 16:12:26

panorama-reklame.de
Member
From: Berlin
Registered: 2012-03-07
Posts: 33
Website

Re: Hotspot on hotspot action

thanks, now i found the error...

Last edited by panorama-reklame.de (2013-01-21 23:03:59)

Offline

 

#10 2013-01-21 18:30:24

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9815
Website

Re: Hotspot on hotspot action

panorama-reklame.de wrote:

thanks, now i founded the error...

Which was?


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#11 2013-01-21 23:04:45

panorama-reklame.de
Member
From: Berlin
Registered: 2012-03-07
Posts: 33
Website

Re: Hotspot on hotspot action

I confused the correct number when inserting. Thanks for the help.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson