Sie sind nicht angemeldet.

1

Freitag, 12. April 2013, 11:25

setting hotspot in 360 video in a particular frames

seen an interesting 360 video show here: http://projet.loop-in.com/smart/

the hotspots of various cars are actually moving when the camera move along a path, and may disappear after certain time or when out of scene. Does anyone know how can we set visibility rules to hotspots in a 360 video with krpano? thanks.

p.s. it seems there are many special hotspot swf file for controlling the hotspots
Regards,
Rich

2

Donnerstag, 18. April 2013, 07:54

having studied the xml file, there is a trackhotspot function there. It control the timing and the shifting position of the hotspot, but have no clue how do the ath & atv parameter work. here are some extraction:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<plugin name="trackhotspot"  url="%SWFPATH%/plugins/trackhotspot.swf" keep="false">
		
		
			<hotspot 	name="vvspot2"  
						start="0" stop="42" 
						ath="y = 0,000000646148x6 - 0,000079647405x5 + 0,003461609432x4 - 0,064631649058x3 + 0,623944265120x2 - 1,941108111554x + 17,510169605754" 
						atv="y = 0,000000110369x6 - 0,000006653932x5 - 0,000058531221x4 + 0,008590138491x3 - 0,125196426692x2 + 0,797665511884x + 6,263276939848" />		
					
		</plugin>
		
<!-- hotspots Go to car -->
<!-- hotspots A 180 -->
<hotspot name="vvspot1" style="skin_hotspotstyle_video" ath="35.026" atv="-20.490" linkedscene="scene_f_a180" car="Classe A 180 Sensation" />
		
<!-- hotspots B 220 CDI DCT -->
<hotspot name="vvspot2" style="skin_hotspotstyle_video" ath="35.123" atv="-17.725" linkedscene="scene_g_b220cdidct" car="Classe B 220 CDI DCT Fascination"/>
		


I've contacted the author and he said the code is not for sale at the moment *pinch* Really looking forward to his new release.

3

Donnerstag, 18. April 2013, 09:56

Hi!
Main idea is:

It can be done by setting some array of ath atv values for each frame for each hotspot
<hotspot name="bla" ....>
<frames from="20" to="40">
<frame name="f1" no="20" ath="10" atv="0" />
<frame name="f2" no="25" ath="12" atv="0" />
<frame name="f3" no="30" ath="15" atv="0" />
<frame name="f4" no="35" ath="20" atv="0" />
<frame name="f5" no="40" ath="25" atv="0" />
</frames>
</hotspot>

And main action:
check if current video frame in from/to range then set this hotspot visible=true
and tween position when exact frame reached

Hope it help ;-)

Regards
Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN