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

Dienstag, 13. Juli 2010, 03:45

locate the coordinate of Video hotspot?

Hi all,
while I was trying to add video hotspot in my pano, I was curious if there is easier way to locate the coordinates... I meant if there is way like the editor plugin turns on and double click to locate coordinate for hotspot.... (indeed, I found the code generated by "editor" plugin could not be used for the coordinate set for video hotspot...

do you have any idea to do it easier? thanks.

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

2

Dienstag, 13. Juli 2010, 09:42

All file hotspots work the same, so the coordinates should work.

What I do is place the hotspot random somewhere like ath="0" atv="0" in my xml and give it a logical name.

then open the tour, open the editor. drag the hotspot and while dragging I press d to put it in distort mode. You now can use R, space and Shift to rotate it on the z axis, xy axis and scale it. Remember to keep the leftmouse button pressed.

You then open the xml and press ctrl + a, then ctrl + v it in your notepad editor (I use notepadd++ cause It uses syntaxcoloring). And then look up the name of the hotspot.

I did this for my childrens game:

Quellcode

1
2
3
4
5
6
7
8
9
<style name="video_hotspotstyle" url="%SWFPATH%/assets/plugins/videoplayer.swf" pausedonstart="true" keep="false" zoom="true" distorted="true" details="2" scale="1" edge="center" flying="0.0"/>
<hotspot name="fire_4"
	         style="video_hotspotstyle"
		     videourl="%SWFPATH%/assets/animation/fire.flv"	 
	         ath="-60.97208550373287" atv="-18.402708646832437"
	         scale="0.8659500526870615" 
	         rx="-23.25" ry="-8.25" rz="7.592770470658956"
			 visible="true" alpha="0" enabled="true" onclick="enablefire();" onhover="tooltip(lightson)"
	 />

3

Dienstag, 13. Juli 2010, 14:50

hi, thanks for reply.
I have enabled the editor and draw a polygonal hotspot, the result becomes:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
	<hotspot name="hs1"
	     	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=""
	     	onout=""
	     	ondown=""
	     	onup=""
	     	onclick=""
	     	details="8"
	     	effect=""
	     	flying="0"
	     	inverserotation="false"
	     	usecontentsize="false"
		>
		<point ath="-39.4111" atv=" -5.6568" />
		<point ath=" 11.7934" atv=" -7.0183" />
		<point ath=" 17.3006" atv=" 21.4479" />
		<point ath="-40.6416" atv=" 30.0734" />
	</hotspot>

I don't have similar code as yours... I can't even find "rx, ry, rz" in my code... is there any wrong I did?? thanks!

4

Dienstag, 13. Juli 2010, 15:46

Hi,
I have enabled the editor and draw a polygonal hotspot, the result becomes:
use "add image hotspot" instead of "add polygonal hotspot"
(and be sure to use the latest editor.swf plugin to have that button)

best regards,
Klaus

5

Dienstag, 13. Juli 2010, 16:05

Hi klaus,
thanks for your reply, oh, I got that done.

BTW, will you consider adding the add video hotspot in editor in next release?? thanks.

6

Dienstag, 13. Juli 2010, 16:08

Hi,

a video hotspot and a image hotspot is technically the same,
just with the videoplayer.swf and a "videourl" instead the normal image,

best regards,
Klaus