You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, September 27th 2010, 5:59pm

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 :

Source code

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

Beginner

Posts: 37

Location: Romania

Occupation: Virtual Tours

  • Send private message

2

Monday, September 27th 2010, 7:30pm

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.

This post has been edited 1 times, last edit by "booghy08" (Sep 27th 2010, 7:59pm)


3

Tuesday, September 28th 2010, 3:52pm

Quoted

u can create your own excel table,


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

z