You are not logged in.

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

1

Saturday, December 20th 2014, 12:06am

Snow Effect

Hi, I have added the snow plugin to tour but I cannot seem to get it to work.

I have added the snow.js and snow.swf to my plugins folder and images to the same folder as the xml.

I have added the code as follows:

<!-- the snow plugin -->
<plugin name="snow" zorder="100"
url="%SWFPATH%/plugins/snow.swf"
alturl="%SWFPATH%/plugins/snow.js"
floor="0.7"
onloaded="snowballs();"
/>

<action name="defaultsnow">
set(plugin[snow].mode,snow);
set(plugin[snow].blendmode,normal);
set(plugin[snow].flakes,4000);
set(plugin[snow].color,0xFFFFFF);
set(plugin[snow].speed,1.0);
set(plugin[snow].shake,4.0);
set(plugin[snow].speedvariance,2.0);
set(plugin[snow].spreading,4.0);
set(plugin[snow].wind,0.0);
</action>


<action name="snowballs">
set(plugin[snow].mode,image);
set(plugin[snow].imageurl,'snowball.png');
set(plugin[snow].blendmode,normal);
set(plugin[snow].flakes,2000);
set(plugin[snow].imagescale,0.5);
set(plugin[snow].speed,1.0);
set(plugin[snow].shake,4.0);
set(plugin[snow].speedvariance,2.0);
set(plugin[snow].spreading,2.0);
set(plugin[snow].wind,0.0);
</action>


You can see the full code here
The html here

Any ideas what I might have done wrong?

Many thanks in anticipation :)

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Saturday, December 20th 2014, 1:07am

I guess you want the snow just in the full tour?
Make sure all the snow stuff is outside the scenes and add keep="true" to the plugin.

Hope it helps...
Tuur *thumbsup*

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

3

Saturday, December 20th 2014, 9:15am

Thanks Tuur and Happy Christmas *thumbsup*

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

4

Saturday, December 20th 2014, 10:42am

Sound problem

I have now managed to get the snow now I need the sound :)

I have added the plugins soundinterface.swf and .js and added the following code to the xml but still nothing:

<!-- load/preload the soundinterface plugin -->
<plugin name="soundinterface"
url="plugins/soundinterface.swf"
alturl="plugins/soundinterface.js"
rootpath="%CURRENTXML%"
preload="true"
keep="true"
/>

<events name="currentpano" onnewpano="playsound(bgsnd, 'http://krpano.com/panos/xmas/ding_dong_merrily_on_high.mp3|

http://krpano.com/panos/xmas/ding_dong_merrily_on_high.ogg', 0);" onremovepano="stopsound(bgsnd);"/>



<!-- button to pause the sound: -->
<plugin name="snd" url="plugins/soundonoff.png" align="leftbottom" x="50" y="50" alpha="0.25" scale="0.5" onover="tween(alpha,1);" onout="tween

(alpha,0.25);" crop="0|0|50|50" onloaded="if(ismobile,set(scale,1));" onclick="pausesoundtoggle(bgsnd); switch(crop, 0|0|50|50, 0|50|50|50);"/>

You can see the full xml here
Actual tour here

Any ideas where I am going wrong??

andrew22222

Intermediate

Posts: 397

Location: Australia

  • Send private message

5

Saturday, December 20th 2014, 4:29pm

I just tried the link in Chrome with Flash disabled and the audio started playing fine. No audio in Flash though.

Might help you narrow down the issue ;-)

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

6

Saturday, December 20th 2014, 5:22pm

Thanks Andrew, yes you are right it plays on my ipad fine but not on windows pc - very strange and I cannot work out why :(

andrew22222

Intermediate

Posts: 397

Location: Australia

  • Send private message

7

Sunday, December 21st 2014, 2:26pm

Hold on ..... I just noticed the audio files are not even located where your tour is? Your linking to the audio files on the krpano website. That's probably causing issues with Flash.

See if you can get your own audio and upload it with the tour so the path is something like this from your tour.xml

audio/mychristmastune.mp3|audio/mychristmastune.ogg

8

Tuesday, December 23rd 2014, 9:28am

Hi,

right - the problem is the loading the sound file from the krpano page.

That's not allowed ;-) and will be blocked in Flash by the crossdomain.xml settings on the krpano page.

Just use an own sound file on your own webspace and it will work.

Btw - the 'Ding Dong Merrily On High' music from the krpano examples is not free - to be able to use it, a license need to be bought - see here:
http://www.soundtaxi.net/en/Christmas/Di…y-On-High::3620

Best regards,
Klaus