It is currently 07 Mar 2021, 12:46

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Parallax Animation Script for GIMP

Share your Python Fu Scripts/plug-ins for GIMP here
tim
GL Blogger

Parallax Animation Script for GIMP

Post#1 by tim » 08 Feb 2017, 21:38


Instruction:
1) create 3 layers (background will scroll at 1x speed, next layer above will scroll at 2x speed, 3rd layer (top most) will scroll at 4x speed). Ideally your layers should be horizontally seamless so that when they move you don't detect their boundaries on left/right so that they look like you're moving forever.
2) run script
3) delete original 3 layers at very bottom.
4) Optionally rename layers using with help of this script -> viewtopic.php?t=72
5) Save as animation.

Script location: Python-Fu->Parallax...
parallax.zip #
Zipped .py file (Unzip, put in your GIMP's /plug-ins/ folder)
(1.37 KiB) Downloaded 269 times
Sample results:
gimp_learn_forum_parallax.gif
gimp_learn_forum_parallax.gif # (72.25 KiB) Viewed 7366 times (Thumbnail | Recognize | Sq Tile)
parallax_scrolling_sample.gif
parallax_scrolling_sample.gif # (811.99 KiB) Viewed 7366 times (Thumbnail | Recognize | Sq Tile)
----------------------------------------------------
Version 2 of script takes 4 layers (bottommost layer is stationary background) and the other 3 layers on top just like version 1
Download
parallax (2).zip #
Zipped .py file (Unzip, put in your GIMP's /plug-ins/ folder)
(1.41 KiB) Downloaded 165 times
Sample result:
parallax_scrolling_sample_3.gif
parallax_scrolling_sample_3.gif # (87.93 KiB) Viewed 7343 times (Thumbnail | Recognize | Sq Tile)
---------------------------------------------------
Version 3 of script (speed improvements) and creates a new image of animation frames instead of adding them to working image.
Download
parallax (3).zip #
Zipped .py file (Unzip, put in your GIMP's /plug-ins/ folder)
(1.5 KiB) Downloaded 192 times
aka Tin

         

tim
GL Blogger

Post#2 by tim » 08 Feb 2017, 22:25


If you want to create animations larger than image size...just create the whole image as wide as you like then after you run script.
narrow your canvas, when you export as animated .gif, it'll prompt you to Crop all layers...so that you have a view smaller than your scrolling layers.
parallax_scrolling_sample_2.gif
parallax_scrolling_sample_2.gif # (445.64 KiB) Viewed 7355 times (Thumbnail | Recognize | Sq Tile)
aka Tin

         

Pat625
Tutorial Creator

Post#3 by Pat625 » 08 Feb 2017, 23:35


Tin, as usual I am having some trouble again. How do you set a background if you want 3 scrolling layers and not be transparent. I was trying to do 3 scrolling layers over a stationary background but it is not working. I just get the text jumbling up over each other. What am I doing wrong?

tim
GL Blogger

Post#4 by tim » 08 Feb 2017, 23:38


The script only apply scrolling to 3 layers. so it expects 3 layers.
If you want stationary background. You might have to do scrolling 3 layers animation first then add that stationary background in using one of Graechan's script but i don't know which script though. I know he has some script that adds in a back ground for animation.
aka Tin

         

Pat625
Tutorial Creator

Post#5 by Pat625 » 08 Feb 2017, 23:40


Thanks Tin, I have that script. Do I add that after I run Parallax, or before?

tim
GL Blogger

Post#6 by tim » 08 Feb 2017, 23:50


After running parallax, you add your background and run Graechan's script.
Or you can use version 2 (that i just added to post #1). Which allows you to have a 4th layer (bottom most) as stationary background.
aka Tin

         

Pat625
Tutorial Creator

Post#7 by Pat625 » 09 Feb 2017, 05:30


Tin, I have been playing with parallax, I like it but would like to make it much slower. These old folk eyes can't read it fast enough. I have increased and decreased numbers but not a good outcome. Any suggestions? Thanks for adding the 4th layer for a stationary background.

tim
GL Blogger

Post#8 by tim » 09 Feb 2017, 05:38


You can set scrollx to 1 or -1 that's the slowest.
If you want slower you'll have to use the rename layer script and rename them specifying number of miliseconds to be larger so that it shows each frame longer.
aka Tin

         

Pat625
Tutorial Creator

Post#9 by Pat625 » 09 Feb 2017, 05:45


Thanks Tin, I'll try that and see what happens.

tim
GL Blogger

Post#10 by tim » 10 Feb 2017, 17:38


Version 3 is up with speed improvements and creates new image that contains animation frames instead of adding frames to working image.
aka Tin

         


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 23 guests