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 1308 times)

0 Members and 1 Guest are viewing this topic.

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Snow
« Reply #10 on: November 28, 2009, 01:42:49 PM »
Don't know if you saw my response to your question at GT, but you've added a few extras here so I'll respond again, addressing your new comments.  Your experiment looks good and it would be easy enough to code. 

It wouldn't be difficult at all to give the option to avoid merging the layers, but it would require the merging off all layers manually (or with GAP)....at least until I can get my script written that does merging of multiple layers.

The snow is actually 2 separate layers: one with "larger" snow and one with "smaller" snow (hoping to give some perception of depth although it probably doesn't work well).  At any rate, each layer is moved independently of one another and then merged with the background.

Here's the steps I use to create the snow:

Transparent layer filled with noise using the "hurl" tool.  Amount is set by the user, but default is 10.
Threshold is run on the layer with the black set to 0 and the white at 255. (converts all colors of noise to white)
The cubism plugin is then run on each snow layer to give the noise more of a 'flake' look rather than just a dot.  However, I run a different setting on each layer.  For the larger "flakes" I run it with a Tile Size of 4.0, Tile Saturation of .7, and the Use Background Color checked (background is set to white).  For the smaller "flakes", the only change I make is setting the Tile Size to 2.0.

That's it.

I could code it to allow the user to set the flake size.  And, could add in a blur option.  Wouldn't be a problem, just take a little longer.

Would it be ok if I send you a test script to experiment with?

Art
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 #11 on: November 28, 2009, 02:48:13 PM »
yes thank Art

Sorry for the crossposting
I think a bit of blur will be nice but will risk to make less visible the dots at current size

And also on larger image then usual gif (i told you seems i finally found how convert to video painlessly ) will be needed bigger dots

yes sure you may send the script a will be happy to test it (and to use it :) )

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Snow
« Reply #12 on: November 28, 2009, 03:31:39 PM »
I sent you a PM with a link to the test script.  It allows you to decide whether or not to merge the snow layers, the option to blur the snow layers, the option to set the flake size, and the combined random/straightdown capability.  Run it through its paces and let me know if you run into any errors or think it could use some other functions.

Art

P.S.  I can't get GAP to export anything video-wise.  I get some weird errors in the GAP export dialog.  However, we'll discuss that in PM's.

« Last Edit: November 28, 2009, 04:23:45 PM 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 #13 on: November 29, 2009, 09:59:28 PM »
Result of my first experiment with the new script ...just few seconds

http://www.vimeo.com/7888675

scroll the page to the very bottom if you wish to download at higher quality

I did another at bigger size to confront random and mixed snow but for some reason on vimeo is displayed just as solid black ...
No wait... now it works ,  just is slow  to load
well ...if you use a widescreen try to push the button on the bottom right corner once is loaded !
(the first is not for screen size but this  second is 1600X 1060 )

http://vimeo.com/7889407

again scroll a lot the page  if you prefer download the AVi

PS for the second experiment, first part random snow,

and..hem...second part is  random+ vertical but on a frame already edited with random snow
« Last Edit: November 29, 2009, 10:25:02 PM by PhotoComiX »

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Snow
« Reply #14 on: December 03, 2009, 11:25:34 AM »
I'll check out the high quality version tonight, but it looks good so far.  I also sent you a PM to discuss another option for the script.

Posted on: November 30, 2009, 11:00:31 AM
One last update.....well, at least until my next update!    Click on the link in my first post to download.

I'm pleased with this script and have added some additional functions as requested by PhotoComix, as well as my own.  The updated script allows you to specify the snowflake size, the option to blur the flakes, and you can do three main things with the script: create an animation from a single image, add snow to an existing animation (convert it to RGB type first), or you can export the individual snowflake layers to 2 separate images for use in other programs or within GAP.

Thanks for the suggestions, PC!

Let me know if you have any problems with the script.  Make sure you delete your previous script to avoid conflicts.

Art
« Last Edit: December 03, 2009, 11:27:54 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 #15 on: December 04, 2009, 03:58:40 PM »
No problem works as a charm 

that option to add snow to a existing animation do some magic and is a time saver !

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Snow
« Reply #16 on: December 04, 2009, 05:00:01 PM »
Glad you like it!  There's one major "potential" flaw with adding snow to an existing animation: if there's a pause in any of the frames, the animation won't look right because the snow would appear to be suspended in mid-air.  I have a way to solve the problem, but it would generate extra frames in the animation, which, in turn, would create a large file sizes.  I may or may not add this solution.  The easiest way to get around it is to have no pauses! ;)  Thanks for the kind words and helpful assistance with moving this script forward.
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 Darth_Gimp

  • Number One
  • *****
  • Posts: 2,833
  • Karma: 0
  • Faith, Folk, Family!
    • lds-jedi.deviantart.com
    • Odinic Rite
Re: [Script-Fu] Animated Snow
« Reply #17 on: December 04, 2009, 05:12:41 PM »
the snow would appear to be suspended in mid-air.

Light snow does that often. Its near magical.
GimpDome Group: http://gimpdome.deviantart.com/
My DeviantArt: http://lds-jedi.deviantart.com/

There's no worse feeling than that millisecond you're sure you are going to die after leaning your chair back a little too far.

Offline PhotoComiX

  • Member
  • **
  • Posts: 86
  • Karma: 0
Re: [Script-Fu] Animated Snow
« Reply #18 on: December 05, 2009, 09:28:52 AM »
i just saw on TV a "IronMan" (but protagonist was on a son of the original Marvel's Iron Man)sort of 3d animation with some action on the North Pole

Just to remark that the snow in that animation was just crap this script does a much better work

PS
the standing snow may even be a cool effect
« Last Edit: December 05, 2009, 09:30:26 AM by PhotoComiX »

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Snow
« Reply #19 on: December 05, 2009, 10:30:11 AM »
Light snow does that often. Its near magical.

Well that makes my script near magical too! ;)
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.


Tags:
 

anything