Sie sind nicht angemeldet.

1

Montag, 27. September 2010, 17:59

Utility to calculate hotspot image placement ?

Hi,

after seeing this topic : Example/Tutorial - interactive area in the pano (aligned distorted hotspot)
Example/Tutorial - interactive area in the pano (aligned distorted hotspot)

i'm wondering if someone has already made a flash utility to calculate the
hotspot.width
hotspot.height
hotspot.ox
hotspot.oy
and output in a dynamic textfield, the krpano code we just have to copy/paste in the .xml

i mean simple input fields where you enter cubeface size, cubeface type (l,r,fb,u,d),cropped area x,y,width,height,
and a ouput text result like :

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
	<hotspot name="car"
	         url="interactive_spot.jpg"
	         enabled="false"
	         zorder="1"
	         distorted="true"
	         ath="0"
	         atv="0"
	         width="263.636364"
	         height="117.272727"
	         edge="lefttop"
	         ox="-137.727273"
	         oy="-252.727273"
	         alpha="0.0"
	         />

then we just have to open the hotspot_calculator.swf and report values to obtain our code...

seems pretty handy , no ?

z

booghy08

Anfänger

Beiträge: 37

Wohnort: Romania

Beruf: Virtual Tours

  • Nachricht senden

2

Montag, 27. September 2010, 19:30

or ... u can create your own excel table, input the values( from photoshop for example) and your ready to go . Simple and fast. i made one and i only have to insert
.width.height .ox .oy and excel calculates the output values.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »booghy08« (27. September 2010, 19:59)


3

Dienstag, 28. September 2010, 15:52

Zitat

u can create your own excel table,


already done *g*
but with flash u can output the full code, that's better ;-)

z