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

Sunday, September 19th 2010, 6:55pm

looktohotspot not centered

Hello, i't trying to do something very easy but is the first time i have a problem with looktohotspot.
I'm using look to hotspot , but when we look, is not centered the fov is ok, but is centered at the top of the hotspot, so we can't see all the hotspot !!

http://www.doppelart.com/gallerie/egrego…ede/gallerie/1/

I use basically the looktohotspot(hs-name) , so the foc is on auto.


So any suggestion is welcomed !!

2

Sunday, September 19th 2010, 7:41pm

I never used polygonal hotspots yet, but it seems to be centering as close as possible to the first vertex such that the black area (outside the pano) doesn't show?

EDIT: No, that's wrong. It seems to be calculating the average between all vertices in order to obtain the focus point. Since your polygons have 3 points above and only 2 below, it centers nearer the top. Or at least that's how it seems to me.

Did you try adding a position in the <hotspot> tag yet? Maybe that will override this behavior.

3

Sunday, September 19th 2010, 8:09pm

the problem is that in some picture i have 200 hot-spot so it will be very difficult to edit all them !! Like in this one http://www.hyper-photo.com/hyperpano/bib…eale-1/indexnom

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

4

Sunday, September 19th 2010, 8:13pm

Hi,

About this hotspot behaviour , have a look to the code that pinsane created while drinking beer *thumbsup* ...
Find polygon center coordinates?


SAlut.

5

Sunday, September 19th 2010, 9:31pm

Do you have something a big more complex ? The code is so simple !! Lol
Seriously do you have something more easy !!

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

6

Sunday, September 19th 2010, 9:50pm

Hi,

Try doing your hotspots with 4 points instead of 5...

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
	<hotspot name="hs5"
	     	keep="false"
	     	visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	     	zorder="0"
	     	fillcolor 	="0xffffff" fillalpha 	="0.00" borderwidth 	="0.0" bordercolor 	="0xffffff" borderalpha 	="0.00"
	     	fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" bordercolorhover="0xffffff" borderalphahover="0.80"
	     	fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
	     	onover=""
	     	onhover="showtext(Portrait 3 (5) 1948)"	     	onout=""
	     	ondown=""
	     	onup=""
	     	onclick="looktohotspot(get(name));"
	     	details="8"
	     	effect=""
	     	flying="0"
	     	inverserotation="false"
	     	usecontentsize="false"
		>
		<point ath="  5.5011" atv="-25.6230" />
		<point ath="  5.3875" atv="  1.7663" />
		<point ath=" 23.8898" atv="  1.6768" />
		<point ath=" 24.7611" atv="-25.1540" />
	</hotspot>


Erased this point: <point ath=" 14.4347" atv="-25.8668" />

SAlut.

7

Sunday, September 19th 2010, 9:58pm

A new lookathotspot command/mode should be added (for polygon hotspots) that looks at the average point between only the vertex with highest atv and lowest atv (vertically) and highest ath and lowest ath (horizontally).

8

Sunday, September 19th 2010, 10:52pm

I try to edit the hotpot as you say , i better, but in some other picture is the same issue, just with 4 hot-spots !

But thanks for the solution !!

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

9

Sunday, September 19th 2010, 11:00pm

Or try adding an 6th point at the opposite...

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
	<hotspot name="hs5"
	     	keep="false"
	     	visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	     	zorder="0"
	     	fillcolor 	="0xffffff" fillalpha 	="0.10" borderwidth 	="0.0" bordercolor 	="0xffffff" borderalpha 	="0.00"
	     	fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" bordercolorhover="0xffffff" borderalphahover="0.80"
	     	fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
	     	onover=""
	     	onhover="showtext(Portrait 3 (5) 1948)"
	     	onout=""
	     	ondown=""
	     	onup=""
	     	onclick="looktohotspot(hs5);"
	     	details="8"
	     	effect=""
	     	flying="0"
	     	inverserotation="false"
	     	usecontentsize="false"
		>
		<point ath="  5.5011" atv="-25.6230" />
		<point ath="  5.3875" atv="  1.7663" />
		<point ath="  6.3875" atv="  1.7663" />
		<point ath=" 23.8898" atv="  1.6768" />
		<point ath=" 24.7611" atv="-25.1540" />
		<point ath=" 14.4347" atv="-25.8668" />
	</hotspot>

The idea is trying to equilibrate the given points *whistling* ...

Hope this help...

SAlut.

Posts: 119

Location: Portland, Oregon

  • Send private message

10

Tuesday, September 21st 2010, 8:19am

ToutcoolPedro that is an excellent panorama. I love it : )

11

Friday, September 24th 2010, 4:54pm

Thanks Castillonis, but i have a lot of work, i dream (i can) to make something witch is really useful and beautifully, and the road is long ... But an realy thank for ours encouragement.

Some of the best webdesing are here : http://www.thefwa.com/

Similar threads