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, 11. Mai 2013, 18:10

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

2

Dienstag, 14. Mai 2013, 11:35

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:

    Quellcode

    1
    
    <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. look in the xml code for the hotspot - e.g. it will look like this:

    Quellcode

    1
    2
    3
    4
    5
    6
    7
    8
    
    <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':
    http://krpano.com/docu/xml/#hotspot
  14. add events to hotspot - e.g. onover, onout and onclick events...

Best regards,
Klaus

3

Sonntag, 18. August 2013, 09:12

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.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<events onkeydown="create" /> 

<action name="create"> 
if (keycode == 32, create_hs(get(hotspot.count))) 
</action> 

<action name="create_hs"> 
addhotspot("hs%1"); 
screentosphere(mouse.x, mouse.y, toh, tov); 
set(hotspot[hs%1].url, "images/point.png"); 
set(hotspot[hs%1].scale, "0.2"); 
set(hotspot[hs%1].ath, get(toh)); 
set(hotspot[hs%1].atv, get(tov)); 
trace('ath="', toh, '" atv="', tov,'"'); 
</action>

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Eugene« (18. August 2013, 09:58)


Ähnliche Themen