You are not logged in.

1

Thursday, May 24th 2012, 3:58am

How to setup darkmask for vtour

Hi Gurus,

Could anyone tell me how to setup darkmask, main logo to show until pano loads and clickable logo as watermark and promotion for my site. I got help here, so I am able to use all this on single panos, but I don't know what file to edit to have these functions on a vtour.

Thanks,
vik3d

This post has been edited 1 times, last edit by "vik3d" (May 24th 2012, 4:10am)


2

Friday, May 25th 2012, 8:23am

Hi,

it depends where and how you include elements,

e.g. when an <plugin> or <hotspot> element is defined inside a <scene> element,
then it should be there and working,

but when defined outside a <scene> element,
then it would need to have keep="true" set to avoid getting removed,

note - in the default vtour templates the first action call is to call loadscene() to load the first scene,
and when loading a new pano/scene all current <plugin> and <hotspot> elements without keep=true will be removed,

so just add:
<plugin ... keep="true" />

see also:
http://krpano.com/docu/actions/#loadpano
http://krpano.com/docu/xml/#plugin.keep

best regards,
Klaus

3

Friday, June 8th 2012, 5:51am

Thanks Klaus,
It works the way I wanted! Thanks for your help! ;-)
I just did a few tests and I got what I wanted once I inserted these lines just before each </scene> tag

Source code

1
2
3
4
5
6
	<plugin name="mask" url="darkmask.jpg" blendmode="multiply" width="100%" height="100%" enabled="false" />
	<plugin name="logo" url="logo.png" align="center" enabled="false" />
	<plugin name="copyright" url="copyright.png" align="rightbottom" alpha="0" enabled="true" onclick="openurl(http://www.mywebsite.com,_blank);" />
	<events onloadcomplete="tween(plugin[mask].alpha, 0, 1.0, default, removeplugin(mask));
						tween(plugin[logo].alpha, 0, 1.0, default, removeplugin(logo));
                  		tween(plugin[copyright].alpha, 1.0, 0, default);" />


Best regards,
vik3d