Share this topic on AskShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: [Script-Fu] Animated Snow  (Read 2736 times)

0 Members and 1 Guest are viewing this topic.

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
[Script-Fu] Animated Snow
« on: November 25, 2009, 11:55:44 PM »
Just in time for Christmas!

Animated Snow Script

This script takes a single RGB image and turns it into a winter wonderland, or you can add snow to an existing animation, or export the snow layers to separate images for use in other programs.  The concept for the script was developed from my tutorial here: Animated Snowfall in GIMP GAP

Here's an example:



  • Click the Download link to save to your computer.
  • Double-click the zip file to open
  • Copy and paste the AnimatedSnow.scm file to your GIMP scripts folder (ie.. C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts)
  • Refresh your scripts (Filters > Script-Fu > Refresh Scripts) or Start up GIMP
  • Open the desired image
  • Go to Filters > Animation > Animated Snow...
  • Choose the desired settings and hit OK. If you want to limit the areas where the snow falls, before running the script, create a selection at the desired location(s) and when you run the script, choose "Keep Selection".  (See my example in the zip file - red highlights for windows)
  • When the "Hurl" dialog window opens, set the amount of snow (I used 15 in my example....EXPERIMENT!)  Higher numbers means more snow.
  • Save as an animated gif

Keep in mind, the larger the background image and the more frames = BIG file sizes!

Enjoy!  Let me know if you have any problems with the script.

Art
« Last Edit: December 03, 2009, 11:29:41 AM by fencepost »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline PhotoComiX

  • Member
  • **
  • Posts: 86
  • Karma: 0
Re: [Script-Fu] Animated Snow
« Reply #1 on: November 26, 2009, 05:24:32 AM »
hy Fencepost

1)it seems as the download link went MIA i believe is http://fence-post.deviantart.com/art/GIMP-Animated-Snowfall-Script-144814233
2) is a new version of your previous script ..correct ?

Quote
Save as an animated gif

In case somebody want save/use for a video and has GAP i believe i found out how save painlessly as avi,and even get as result not only good quality
but a reasonable file size

1 Video/ Master Videoencoder

Now the trick seems simple, i believe in windows problem was the output path, simply output  path should not contain empty spaces
That basically means CAN'T be used the most commune directory (as Document/Images/ VIdeo and their subfolders ) because are all subset of "Documents and Settings"but something as simply " C "or even "C:/Video " will work
(this for XP not sure for Vista that instead then "Documents and Settings" has " Users" , ...but be aware of any empty space in the path)

Then chose AVI as format and MPEG4 as codec give me good results for quality and file size
#####################################################################

Thank for the update :)

« Last Edit: November 26, 2009, 05:29:30 AM by PhotoComiX »

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Snow
« Reply #2 on: November 26, 2009, 06:46:22 AM »
Thanks, PC for catching that about the link; I fixed it now and added the link to the script in the first post.  I was tired when I finally got it posted and thought I'd covered all the bases.  There was no previous script, only the tutorial, so the script is the newest option.

That's a nice find about the video.  I'll check that out and let you know if I can get it to work for me.  Thanks for the tip!
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline PhotoComiX

  • Member
  • **
  • Posts: 86
  • Karma: 0
Re: [Script-Fu] Animated Snow
« Reply #3 on: November 26, 2009, 07:18:26 AM »
Quote
There was no previous script,
ah right ..i get confused with the animated rain

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Snow
« Reply #4 on: November 27, 2009, 10:04:08 AM »
Script has been updated to allow snow to fall in a somewhat random fashion or straight down.  Straight down was the only option before, but the random gives it a sense of the flakes falling more naturally.  I've shown two examples just for reference.  Make sure you delete your other script to avoid conflicts.

Random



Straight Down

« Last Edit: November 27, 2009, 10:12:13 AM by fencepost »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.


Offline PhotoComiX

  • Member
  • **
  • Posts: 86
  • Karma: 0
Re: [Script-Fu] Animated Snow
« Reply #5 on: November 27, 2009, 01:36:01 PM »
cool update

did you get my last pm ?

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Snow
« Reply #6 on: November 27, 2009, 01:43:18 PM »
Thanks!   I did get the message but it was very early AM when I read it and I forgot.  I'm getting ready to go out for the evening, but I will reply.  Sorry about forgetting.
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline HippieKender

  • Global Moderator
  • Posts: 1,102
  • Karma: 0
  • I seem to lick circular things...
    • hippiekender.deviantart.com
    • hippiekender: PhotoBucket
    • @HippieKender:twitter
    • HippieKender.com
Re: [Script-Fu] Animated Snow
« Reply #7 on: November 27, 2009, 05:56:47 PM »
Thanks for this, fence!  I love how the snow looks through the window.

GimpDome dA Group ||  GimpDome's CafePress || @GimpDome on Twitter
The most precious thing one can make is a friend.

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Snow
« Reply #8 on: November 28, 2009, 12:19:29 PM »
You're welcome!  It does look pretty good, doesn't it?  ;)
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline PhotoComiX

  • Member
  • **
  • Posts: 86
  • Karma: 0
Re: [Script-Fu] Animated Snow
« Reply #9 on: November 28, 2009, 12:20:29 PM »
Hy i made  a quick experiment..hem  file is too big (about 1MB ) to be posted here directly

you may see here http://farm3.static.flickr.com/2788/4140816123_1c0f4eeb9e_o.gif

the idea was give the sensation of sudden wind blows moving the snow ...i just alternate layers with "random" and normal snows for that
(running the script on a image and on a image dup and then mixing the layers )

I was wondering if you may add a option to skip the merging of the layer with the BG (that will make easier mix or edit several snow layers)

But most will love as it is and i am not even sure (i did not look into the script code ) if there were "Snow layers" or if the effect is directly created on dups of the original (in case will be no a step to slkip...)

Anyway cool effect, a pity that gif do not allow to create more fluffy snow

#################################################################
PS in theory is possible increase the size of the snow dots ?
« Last Edit: November 28, 2009, 01:37:27 PM by PhotoComiX »


Tags:
 

anything