Page 1 of 1

Snow Effect General Questions

Posted: Thu Dec 20, 2018 4:54 am
by TheRealMojoJojo
It seems that I am the first with a question about the glorious snow effect. Looks fantastic on mobile devices as well. Great job :-)

In the "Snow Code" it says
to start and stop the effect, you can use a 'Go to URL' action and put the following piece of code into the URL field: "javascript: startSnow();" or "javascript: stopSnow();"
I have tried adding the code but either get nothing at all or I get a black screen once the tour is published which all depends on if I inserted the code before or after the node such as "{node2} javascript: stopSnow();" or "javascript: stopSnow(); {node2}"

I obviously have no idea what I am doing here :-) Could someone please show the proper syntax for as example, to turn off the snow for node 2.

Thanks all!

Re: Snow Effect General Questions

Posted: Thu Dec 20, 2018 12:42 pm
by Hopki
Hi,
In the attached project I am using a Node Marker.
I just tagged the node/s that should not display snow with "stop_snow".
The Node Marker then has the tag set in its properties.

Screenshot 2018-12-20 at 11.32.38.png
Screenshot 2018-12-20 at 11.32.38.png (18.18 KiB) Viewed 5141 times

It then has the actions:
Activated, Go to URL: javascript: stopSnow();
Deactivated, Go to URL: javascript: startSnow();

As the pano opens with the tag stop_snow the Node Marker becomes active and the URL Javascript call stops it.
When you move to a pano without the tag the Node Marker Deactivates so calls the Deactivated action to start it again.

If you do not want the snow to start on open, then in the text box "snow_code" at the top you will see:

Screenshot 2018-12-20 at 10.22.29.png
Screenshot 2018-12-20 at 10.22.29.png (28.46 KiB) Viewed 5141 times

Set var snowOnLoad = true; to read
var snowOnLoad = false;

Regards,
Hopki

Re: Snow Effect General Questions

Posted: Thu Dec 20, 2018 4:50 pm
by soulbrother
Hi Hopki and thanks for your fast answers.

Is there any way to hide the snow, while a fly in is active and ideally to fade in the effect either after the flyin is finished, or after a defined time (via timer)?
)I already tried to modify alpha of the image, but it does not show an effect.

The second wish (yepp it near to Xmas, so I write wishes here...):

Is there a possibility to use 2 of the snowflakes at the same time?

Like that in the screenshot, but I did not get it running...
Of course I treid several "usual" modifications, like different names and changing the names of the image inside the code, but no way...
snowflake-test.jpg
snowflake-test.jpg (28.8 KiB) Viewed 5133 times

Re: Snow Effect General Questions

Posted: Thu Dec 20, 2018 10:31 pm
by TheRealMojoJojo
Hopki wrote: Thu Dec 20, 2018 12:42 pm Hi,
In the attached project I am using a Node Marker.
I just tagged the node/s that should not display snow with "stop_snow".
The Node Marker then has the tag set in its properties.
Thanks Hopki! Works perfectly :-)

Re: Snow Effect General Questions

Posted: Fri Dec 21, 2018 1:24 am
by TheRealMojoJojo
Hi All,

Is it possible to make the snow effect appear IN FRONT of pinned objects? If so, how is this accomplished?

Thanks!

Re: Snow Effect General Questions

Posted: Fri Dec 21, 2018 11:50 am
by Hopki
Hi Guys
@ soulbrother:
You can not for the moment, to keep the speed its one graphic which we then use the texture.
This is processed in GPU so no slowdown.


@1uv3:
Again not at the moment.
The snow effect has been a bit of a distraction from the normal development path but I know the developers still have some ideas for it.
What and when is down to the devs.

Regards,
Hopki

Re: Snow Effect General Questions

Posted: Sat Dec 22, 2018 4:05 am
by TheRealMojoJojo
No worries Hopki......it's a great effect even as it is.

Thanks!

Re: Snow Effect General Questions

Posted: Sat Dec 22, 2018 7:33 am
by Sergey Burov
Thanks Hopki! Happy New Year!

Re: Snow Effect General Questions

Posted: Thu Dec 27, 2018 5:24 pm
by linkaran17
I realy like the snow EF and for Next Xmas would be nice enough having different kinda snow density/shapes per pana in a tour :mrgreen:
The snowFX worked fine for this year season greetings: http://xpoisure.com/seasons-greatings-2018/

Re: Snow Effect General Questions

Posted: Thu Jan 24, 2019 10:41 pm
by TheRealMojoJojo
Hi,

I notice that when the snow effect is turned off for certain nodes that while the node is loading the snow effect is still turned on. Once the node is loaded then the snow effect shuts off. Here is a video showing what I mean.....you can see the snow till the node loads.

https://www.youtube.com/watch?v=uSkMRSDvra4

Thanks!