You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2012-11-04 05:18:52

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2356
Website

How to add Snow and Rain

Hi..

After receiving heaps of emails asking how to add Snow and Rain, here it is....
Its really easy as long as you have purchased the krpano licence. I believe it comes with (ptp) Pano Tour Pro.. Its been a long time since I purchased it all... roll
You can download the latest version of krpano from here.. http://krpano.com/download/

Step 1. After you have created your tour, open up your main xml file.. "virtualtour.xml" for example when using ptp. Copy the code below shown in RED, and past it into your main xml file. It doesn't matter where you past it as long as you keep it in a separate nested code area.. if you do not want the Snow/Rain in every pano, then simple copy this code ONLY into the xml files associated with the pano tours you want Snow/Rain in.. You can achieve different effect in each pano if you want... A trickle in one and a blizard in another.. lollol

Step 2. Copy the snow.swf file from the krpano plugin folder and then create your own plugin folder, as in the image below. Past your show.swf into that.

Done.. big_smile You can now edit your parameters to achieve the effect you want... smile

Destiny..


<?xml version="1.0" encoding="UTF-8"?>
<!-- for xml compliance -->
<!-- Generated By Kolor Panotour 1.8.0 -->
<krpano version="1.0.8.14" logkey="false">
    <action name="mainloadpano">
        closepanoobjects();
        ifnot(stopSequence === undefined,interruptAnimation()wink;
        loadpano(%1,NULL,NULL,BLEND(1));
    </action>
    <!--************** KrPano plugins and datas ***************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" keep="true"/>
    <!--************** Open the first pano ********************************************************-->
    <include url="virtualtour0.xml"/>
    <autorotate enabled="false"/>
    <!--************** Fonts **********************************************************************-->
    <textstyle name="DEFAULT" bold="false" font="Arial" fontsize="16" italic="false" textcolor="0xff000000"/>
    <!--************** Introduction ***************************************************************-->
    <action name="firstloadcompleteaction">
        if(plugin[data].firstPanoHasBeenPlayed==false,
            set(plugin[data].firstPanoHasBeenPlayed,true);
            set(autorotate.enabled,true);
        );
    </action>
     <!--**************Your krpano Snow and Rain here ***********************************************************************-->
    <plugin name="snow"
        url="plugin/snow.swf"
        blendmode="normal"
        mode="snow"
        imageurl=""
        imagescale="1.0"
        flakes="4000"
        color="0xFFFFFF"
        floor="0.3"
        speed="1.0"
        spreading="4.0"
        shake="4.0"
        speedvariance="2.0"
        wind="0.0"
        winddir="0.0"
        rainwidth="0.5"
        rainalpha="0.5"
        />

    <!--************** Menu ***********************************************************************-->
My menu code is below this line.. Yours can be anywhere..


Uploaded Images


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#2 2012-11-04 10:07:26

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2356
Website

Re: How to add Snow and Rain

Oh and.... When it Snows over the Kolor offices and the team looks out of their windows, they get to see this.. lol

http://members.westnet.com.au/dps/ptpSn … ltour.html

Destiny...


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#3 2012-11-04 21:51:56

firefire
Member
From: UK
Registered: 2011-07-24
Posts: 77
Website

Offline

 

#4 2012-11-04 21:53:53

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2356
Website

Re: How to add Snow and Rain

No worries, my favourite fireman..!! wink

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#5 2012-12-12 10:01:36

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2356
Website

Re: How to add Snow and Rain

Hi..

Thank you to those who sent me a nice emails regarding the Snow/Rain, again lol .. There is a lot of info on the krpano forum on how to use this plugin, however I will put together a better tutorial for those who have asked me for it..  It’s a really cleaver bit of coding by krpano… What I really like is the illusion of 3D space within the pano..  I am trying to achieve a 3D Fog plugin but its causing me issues.. I will have to do it next week when school break up.. wink Yippee, holiday...!!

http://members.westnet.com.au/dps/Snow/virtualtour.html

Basically, the code is simple to use but you must include the snow.swf plugin and put in into the plugin folder as shown below. If you just need the snow, you can use the ‘mode’  with “snow” but if you want to use a graphic for fun, then you can change that to “image” and then add a png into a folder and provide the imageurl as below.  This example pano above I changed the colour of the snow from white, FFFFFF to blue. The rest of the parameters you can play with to achieve the desired effect...

You just need to copy and past this code below into your main xml file. If you get really stuck, send me your main xml file and I will do it for you with the edited code and the swf plugin. If you do this, you will need to advise me if you need an image png or just the snow/rain effect..

Destiny..

<plugin name="snow"
  url="plugin/snow.swf"   
   blendmode="normal"   
   mode="snow"   
   imageurl=""   
   imagescale="0.3"
   flakes="8000"
   color="0x66FFFF"
   floor="0.3"   
   speed="1.0"
   spreading="4.0" 
   shake="4.0" 
   speedvariance="2.0"   
   wind="0.5"   
   winddir="0.5"
   rainwidth="0.5" 
   rainalpha="0.5"
    />


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#6 2012-12-30 00:46:22

cristianortv
New member
From: São Paulo - Brasil
Registered: 2012-09-01
Posts: 5

Re: How to add Snow and Rain

Thank you very much!!!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson