how to create a pologynal hotspot?

  • Hello all

    I am new to krpano and i want to try some of the examples shown here by the use of the tutorials of some

    I want to try and replicate the hover or a hotspot panorama but i do not know what to do at step 4 Load that hotspot image into krpano:

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


    I have done all the ptgui steps.

    I want to achieve the demotour-weingut/tour effect in the examples folder where if you hover over a hotspot it opens the curtain.

    If someone has an example folder that i can download and study it will be cool. Sorry if i miss the obvious in these forums, its just all so cool to see and i really would like to be alble to achieve these effects on my own
    i have krpanotools 1.16.1 for mac

    Thanks
    JAcob

  • Hi,

    if you want to use polygonal hotspots (but note - Flash-only) you don't need to create an image hotspot.

    Do it that way:

    1. include the editor plugin in the xml:

      Code
      <plugin url="editor.swf" keep="true" />
    2. start the pano (with Flash)
    3. click the [editor] button
    4. click the [hotspots] button
    5. click the [add / edit polygonal hotspot] button
    6. do a double-click to start drawing the polygonal hotspot
    7. do single-clicks to add new points
    8. do a double-click again to finish the hotspot drawing
    9. click the [back] button
    10. click the
      XML
      button
    11. XML
      look in the xml code for the hotspot - e.g. it will look like this:
      [code]<hotspot name="hs1">
      	<point ath="-49.58" atv="-17.02" />
      	<point ath="9.51" atv="-26.98" />
      	<point ath="27.68" atv="14.47" />
      	<point ath="8.00" atv="38.95" />
      	<point ath="-49.80" atv="31.56" />
      	<point ath="-58.99" atv="14.02" />
      </hotspot>
    12. copy that hotspot xml code and insert it with an text editor into your xml
    13. adjust the look/style of the hotspot by adding/setting custom settings,
      for all available settings look here at 'polygonal hotspot structure':
      https://krpano.com/docu/xml/#hotspot
    14. add events to hotspot - e.g. onover, onout and onclick events...


    Best regards,
    Klaus

  • I have a problem.

    When I create a polygonal hotspot plugin editor, I get the coordinates of the points with an accuracy of 1 decimal places, and you have some example of 2 decimal places.

    How did this happen? I need more accuracy in describing the hotspot.

    After 1 hour:
    I solved the problem by writing xml.
    I used the command trace, copy the data, and edited in a text editor.

    Einmal editiert, zuletzt von Eugene (18. August 2013 um 09:58)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!