It is currently Mon Jul 08, 2024 1:38 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 122 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 10:48 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Apr 05, 2020
Posts: 41
Hello, :)

I'm a french guy, newly registered on the website.
I have finished today a Scheme script to make a multi-frames animation with falling snow effect :

Parameters allow to choose :
- frames number in the animation : 5 to 50
- delay between two frames : 40 to 100 ms
- number of flakes layers : 1 to 10
- first size of snow flakes : 1 to 10
- size difference between two layers : 1 or 2
- brush rotation : left or no or right
- direction and force of wind : -3 (strong left) to 3 (strong right)
- blur level applied on snow layer : 0 to 5
- rainy blur effect level : 0 to 20
- opacity of snow flakes : 1 to 100
- snow flakes layer display mode : 28 modes

Falling snow effect can also be applied on selected parts.
Animation display automatically open in the end of script to show what it looks like.

To create a windy rain using 5 frames, or peacefull falling snow on 50 frames, have fun with all the combinations proposed.

Good game. ;)
@+++


Attachments:
File comment: Gimp Script to give snow effect on a picture.
falling-snow-anim.scm [10.07 KiB]
Downloaded 603 times

_________________
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 11:31 am  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Hello JimmyMarco and welcome to Gimp Chat.
:jumpclap :jumpclap

There is also the GIMP Animated Snowfall Script
made by Fencepost,
that does the same thing.


https://www.deviantart.com/fence-post/a ... -144814233

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 11:59 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 05, 2020
Posts: 41
Hello Wallace, :)

Thanks for your welcome.

I already know the GIMP Animated Snowfall Script made by Fencepost and wasn't happy with it's results.

I have imagined another way to design snow for a very smooth animation or dynamic rain.

You'll try the script i propose and tell me what you think about.

Have fun. ;)
@+++

_________________


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 12:18 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
Nice to meet you JimmyMarco. I'm going to have fun playing with this. :)


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 12:22 pm  (#5) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
JimmyMarco wrote:
Hello Wallace, :)

Thanks for your welcome.

I already know the GIMP Animated Snowfall Script made by Fencepost and wasn't happy with it's results.

I have imagined another way to design snow for a very smooth animation or dynamic rain.

You'll try the script i propose and tell me what you think about.

Have fun. ;)
@+++

Sounds good.
Thanks for putting this together and offering it to us.

:bigthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 12:29 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Apr 05, 2020
Posts: 41
Hello, :)

Nice to meet you too Erisian.

Surprise me posting here your animation tests.
I can't do that for now because i'm new subscriber.

See you soon. :)
@+++

_________________


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 12:58 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Hi JimmyMarco.

Welcome to the GimpChat forum.
I thought no one would write a new good script-fu (only python).
It's good to have an expert in this field in this forum.
Many possibilities and it works smoothly.


Attachments:
Diego PalmSunday.gif
Diego PalmSunday.gif [ 3.01 MiB | Viewed 15043 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 1:06 pm  (#8) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
I had an issue with the Animation Play Back.
Apparently it is called for once the script is done running.
This caused a lag in the script dialog,
that went away after clicking on the animation playback dialog.
I feel that having the Animation Playback dialog open, is unnecessary.

Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 1:34 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Apr 05, 2020
Posts: 41
MareroQ... thanks.

Wallace, You are not the first tester having trouble with a blip in the animation.
Caused by the call of Playback Preview in the end of script... no sure.

For me, testing with and without Preview give the same result... no blip and smooth animation.
Of course, it's easy to delete last line in script or add ";" at the beginning of this line to past it in comment.

I remember the tester having blip used Gimp 2.8.14.
With the 2.10.18 version and no problem... difficult to correct a bug i don't have.

I will change the version to test if it's the Gimp version the problem.
@+++

_________________


Last edited by JimmyMarco on Sun Apr 05, 2020 2:13 pm, edited 2 times in total.

Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 1:55 pm  (#10) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
JimmyMarco wrote:
MareroQ... thanks.

Wallace, You are not the first tester having trouble with a blip in the animation.
Caused by the call of Playback Preview in the end of script... no sure.

For me, testing with and without Preview give the same result... no blip and smooth animation.
Of course, it's easy to delete last line in script or add ";" at the beginning of this line to past it in comment.

I remember the tester having blip used Gimp 2.8.14.
With the 2.10.18 version and no problem... difficult to correct a bug i don't have.

I will change the version to test if it's the Gimp version the problem.
@+++

I installed and ran the script in Gimp-2.10.14 Portable.
If that makes any difference,
I don't know.
Other then the Playback preview,
everything else seems to work great.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 2:11 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Apr 05, 2020
Posts: 41
There are a lot of possibilities to test.

Just try the rainy effect with 5 layers of little flakes, wind -2, rainy blur 15 and 8 frames... lol... :coolthup


Attachments:
rainyWeather.gif
rainyWeather.gif [ 929.25 KiB | Viewed 5375 times ]

_________________
Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 2:15 pm  (#12) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
JimmyMarco wrote:
I made a mistake choosing the animation set in attachments in previous post.
It's run slowly because has 100 ms each layer.

Is it possible to ""unattach" the picture ?

Just try the rainy effect with 5 layers of little flakes, wind -2, rainy blur 15 and 8 frames... lol... :coolthup

You can edit your post and delete the attachment,
if you feel it necessary.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 2:32 pm  (#13) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
I tried the rain using Gimp-2.10.14 Portable,
but it just kept running as seen in the gif image below.

Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 2:36 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Apr 05, 2020
Posts: 41
:gaah

First size of flakes is too small and not seen... try higher 9 or 10.
Script has too much flakes to draw... it's very loooong.......


Attachments:
MontBlanc02.gif
MontBlanc02.gif [ 2.81 MiB | Viewed 5361 times ]

_________________


Last edited by JimmyMarco on Sun Apr 05, 2020 3:15 pm, edited 1 time in total.
Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 2:54 pm  (#15) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
JimmyMarco wrote:
:gaah

First size of flakes is too small and not seen... try higher 9 or 10.
Script has too much flakes to draw... it's very loooong.......

To be honest...
It's seems easier to do it manually.
However here's my result,
which isn't bad.

Image

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 3:21 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Apr 05, 2020
Posts: 41
It's true... snow effect looks better than rain rendering.
Snow was my first goal with this script, and it's its name.

Rain effect was consequence of last update with 5 frames allowing very very little flakes.

As your picture is large, perhaps it needs longer rainy blur ? ... 20 ?
And setting Difference level 2 ?

Good test. :)
@+++


Attachments:
MontBlanc03.gif
MontBlanc03.gif [ 4.94 MiB | Viewed 5361 times ]

_________________
Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 4:09 pm  (#17) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13071
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
JimmyMarco wrote:
It's true... snow effect looks better than rain rendering.
Snow was my first goal with this script, and it's its name.

Rain effect was consequence of last update with 5 frames allowing very very little flakes.

As your picture is large, perhaps it needs longer rainy blur ? ... 20 ?
And setting Difference level 2 ?

Good test. :)
@+++

:bigthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Sun Apr 05, 2020 5:10 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1826
This is a well written script and works pretty good. I like the varying sized flakes as well as the blur. It would be great to use other objects such as leaves, maybe a leaf brush?

Attachment:
snow.gif
snow.gif [ 1.02 MiB | Viewed 5349 times ]


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Mon Apr 06, 2020 12:35 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
JimmyMarco wrote:
:gaah

First size of flakes is too small and not seen... try higher 9 or 10.
Script has too much flakes to draw... it's very loooong.......

This is very nice effect...we call em footwraps here. But last winter was the worst during my entire time, practically snowless.
Thank you for the script and welcome, will play when I have time.


Top
 Post subject: Re: Falling snow animated Scheme Script for Gimp
PostPosted: Mon Apr 06, 2020 3:57 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Apr 05, 2020
Posts: 41
Hello, :)

Happy to please you designers.

A lot of work today on the script to propose you more features :

- frames number in the animation : 5 to 50
- delay between two frames : 40 to 100 ms
- number of flakes layers : 1 to 15
- first size of snow flakes : 1 to 15
- size difference between two layers : 1 or 2
- brush name : Enter name text
- brush color : Color box
- brush rotation : left...no...right
- direction and force of wind : -3 to 3
- blur level applied on snow layer : 0 to 5
- rainy blur effect level : 0 to 30
- rainy blur effect angle : -90...vertical...90
- opacity of snow flakes : 1 to 100
- snow flakes layer display mode : 28 modes
- harden the layers of flakes : TRUE or FALSE
- check animation window open at end : TRUE or FALSE

Yes... now you can choose if the animation window open at end :

Attachment:
FallingSnowWindow.jpg
FallingSnowWindow.jpg [ 130.24 KiB | Viewed 5319 times ]


And the color of what is falling :

Attachment:
fallingLeaves.gif
fallingLeaves.gif [ 5.26 MiB | Viewed 5319 times ]


As the script use the brush tool to draw, you can also play with the dynamics setting in tool...
"Perpective" is used in the previous animation.

The rainy blur is longer than previous and you can adapt the angle of blur.
For example :
- wind force 1 set 45°... or -45° for wind -1
- wind force 2 set 63°... or -63° for wind -2
- wind force 3 set 71° ... or -71° for wind -3

The little bug called "I don't want to be saved like that" is now fixed strongly... ;)

Good game. ;)
@+++


Attachments:
falling-snow-anim.scm [11.67 KiB]
Downloaded 119 times

_________________
Top
Post new topic Reply to topic  [ 122 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Made An Animated GIF With An Ofnuts Script

35

No new posts Attachment(s) Did something change in scheme in 2-10-20[Solved]

5

No new posts Attachment(s) Snow animation

6

No new posts Frolicking in the snow

2

No new posts GIMP 2.10.34 snow.gdyn file

2



* Login  



Powered by phpBB3 © phpBB Group