Sie sind nicht angemeldet.

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

1

Samstag, 20. Dezember 2014, 00:06

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

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

2

Samstag, 20. Dezember 2014, 01:07

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

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

3

Samstag, 20. Dezember 2014, 09:15

Thanks Tuur and Happy Christmas *thumbsup*

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

4

Samstag, 20. Dezember 2014, 10:42

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??

5

Samstag, 20. Dezember 2014, 16:29

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

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

6

Samstag, 20. Dezember 2014, 17:22

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 :(

7

Sonntag, 21. Dezember 2014, 14:26

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

Dienstag, 23. Dezember 2014, 09:28

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