Hello again,
Is there a good simple example of using a hotspot icon to open a jpg or png? Sorry I've been scouring the forum but can seem to find anything that works.
Thanks in advance.
Robert
Hello again,
Is there a good simple example of using a hotspot icon to open a jpg or png? Sorry I've been scouring the forum but can seem to find anything that works.
Thanks in advance.
Robert
Hello again everyone,
Managed to get something working based on an example but not exactly as I wanted it. Basically I have an icon for my hotspot and it opens an image. Right now i'm using the onclick command but for some reason the hostspot only becomes active when I pan to a certain spot in the pano and then the image opens. Would like to the image to really appear where in the area that the hotspot was clicked and then I need to figure out a way to close image by clicking on it.
<action name="open">
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1);
</action>
<plugin name="openimage"
url="introimage.png"
align="center" x="10" y="10"
alpha="0"
/>
<hotspot name="fyi"
url="fyi.png"
ath="0"
atv="0"
scale="0.6"
alpha="0.3"
onover="tween(alpha,1);tween(scale,0.6);"
onout="tween(alpha,1);tween(scale,0.6);"
onclick="action(open,openimage);"
/>
Hi,
good example, but I would recommend also adding - visible="false" - to the image definition,
otherwise the image is still there and clickable (but invisible)
<plugin name="openimage"
url="introimage.png"
align="center" x="10" y="10"
alpha="0"
visible="false"
/>
best regards,
Klaus
Ah! That worked, any good examples of how to close an image by clicking the image?
here:
<action name="open">
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1);
</action>
<action name="close">
tween(plugin[%1].alpha,0,0.5,default, set(plugin[%1].visible,false) );
</action>
<plugin name="openimage"
url="introimage.png"
align="center" x="10" y="10"
alpha="0"
onclick="action(close,get(name));"
/>
<hotspot name="fyi"
url="fyi.png"
ath="0"
atv="0"
scale="0.6"
alpha="0.3"
onover="tween(alpha,1);tween(scale,0.6);"
onout="tween(alpha,1);tween(scale,0.6);"
onclick="action(open,openimage);"
/>
Alles anzeigen
Thanks Klaus, You're a star!
here:
Code Alles anzeigenset(plugin[%1].visible,true); tween(plugin[%1].alpha,1); tween(plugin[%1].alpha,0,0.5,default, set(plugin[%1].visible,false) ); <plugin name="openimage" url="introimage.png" align="center" x="10" y="10" alpha="0" onclick="action(close,get(name));" /> <hotspot name="fyi" url="fyi.png" ath="0" atv="0" scale="0.6" alpha="0.3" onover="tween(alpha,1);tween(scale,0.6);" onout="tween(alpha,1);tween(scale,0.6);" onclick="action(open,openimage);" />
</plugin>
Works very well, but it takes like 3minutes to load the open action
Do you know what's wrong? it's the exact same code just with another hotspotimage
Is your image optimised for web? It may have to do with the image having a large file size and is taking a while to load.
Is your image optimised for web? It may have to do with the image having a large file size and is taking a while to load.
No I found the problem.I didn't do the visible="false", it works perfectly now
Still thx for the help
Hello,
My next problems is, that i can't set 2 different image hotspots in the same pano...
When i try to load my vtour, this is what i get
There's a typo or mistake in xml code, so parser throws an error. Drag and drop 'tour.xml" directly into your browser and it must show where the mistake in xml code is. This is the common and easy way to check xmls for any xml code errors.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!