Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Samstag, 15. Februar 2014, 15:01

Broken Hotspot that fills the whole screen

I have a problem with a hotspot that works when you pass the mouse over a place outside of it. You can use this hotspot as normal but, if you drag the pano with the mouse to move it, there is a point where the screen is filled with this hotspot, as if this hotspot occupies everything.

I think the problem is because its width is slightly greater than 180 degrees. I have edited it with the editor plugin and if I make it shorter it works fine. How can I fix it?

Thanks!

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Samstag, 15. Februar 2014, 15:59

Hi! Any link or any code example? Hard to guess about the problem judging only by words.
Regards,

Alexey

3

Samstag, 15. Februar 2014, 18:47

I uploaded a version of the panorama with only this hotspot here: http://testpano.hostoi.com/krpano.html
You can find the XML I use here: https://drive.google.com/file/d/0B2gPumL…dit?usp=sharing

The error can be found if you click on the sky and slowly move the panorama to the right. There is a point at which everything gets orange.
I left on the hotspot editor, so you can edit it. If you move the two right points of the hotspot and you make it smaller the error disappears.

Thank you very much!

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

4

Sonntag, 16. Februar 2014, 07:15

Hi! Firstly, I recommend do the following: drag and drop your .xml onto any browser (so it opens the .xml locally) and the browser will report xml parsing mistakes. If there are no errors left, the browser will open it just fine. Flash is more tolerant to these errors, and it works fine. But in Chrome with Flash off I can't open the pano, just black screen.

Regarding the hotspot, it's really strange *confused* If I remember correctly, something similar was discussed (or just asked) on the forum regarding too big polygonal hotspots (Yeap, here it is: Problem: polygon hotspot changing inside out). Seems like a bug of too stretched polygonals.

What if instead using the overlaid distorted hotspots like shown in this tutorial?

Example/Tutorial - Extract a Distorted Hotspot from any kind of Pano Image (with perfect pixel alignment)

this kind of hotspots would work both in Flash and html5 whereas polygonal spots are Flash-only at the moment.
Regards,

Alexey

5

Sonntag, 16. Februar 2014, 23:48

Thank you for your answer.
I have tried to use a distorted Hotspot but I would need an image so big it would not be feasible *cry*

6

Dienstag, 18. Februar 2014, 20:38

Hi,

hotspots that span more than 180° degree field of view are not supported and can work wrong.

Try splitting the hotspot into several smaller hotspots.

To let them still react like one single hotspot this trick can be used - use onover/onout events and set the hovering setting from the other hotspots - e.g.

Quellcode

1
2
<hotspot name="spot1" ... onover="set(hotspot[spot2].hovering,true);" onout="set(hotspot[spot2].hovering,false);" />
<hotspot name="spot2" ... onover="set(hotspot[spot1].hovering,true);" onout="set(hotspot[spot1].hovering,false);" />


Best regards,
Klaus